File tree Expand file tree Collapse file tree 2 files changed +4
-8
lines changed Expand file tree Collapse file tree 2 files changed +4
-8
lines changed Original file line number Diff line number Diff line change 14
14
RootModule = ' UnitySetup'
15
15
16
16
# Version number of this module.
17
- ModuleVersion = ' 4.1 '
17
+ ModuleVersion = ' 5.0 '
18
18
19
19
# Supported PSEditions
20
20
# CompatiblePSEditions = @()
Original file line number Diff line number Diff line change @@ -421,11 +421,7 @@ function Install-UnitySetupInstance {
421
421
[string ]$Destination ,
422
422
423
423
[parameter (Mandatory = $false )]
424
- [string ]$Cache = [io.Path ]::Combine($env: USERPROFILE , " .unitysetup" ),
425
-
426
- [parameter (Mandatory = $false )]
427
- [ValidateSet (' Open' , ' RunAs' )]
428
- [string ]$Verb
424
+ [string ]$Cache = [io.Path ]::Combine($env: USERPROFILE , " .unitysetup" )
429
425
)
430
426
431
427
process {
@@ -469,9 +465,9 @@ function Install-UnitySetupInstance {
469
465
if (! (Test-Path $destDirectory - PathType Container)) {
470
466
New-Item " $destDirectory " - ItemType Directory | Out-Null
471
467
}
472
- }
473
468
474
- Start-BitsTransfer - Source $downloadSource - Destination $downloadDest
469
+ (New-Object System.Net.WebClient).DownloadFile($downloadSource [$i ], $downloadDest [$i ])
470
+ }
475
471
}
476
472
477
473
for ($i = 0 ; $i -lt $localInstallers.Length ; $i ++ ) {
You can’t perform that action at this time.
0 commit comments