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 @@ -453,11 +453,7 @@ function Install-UnitySetupInstance {
453
453
[string ]$Destination ,
454
454
455
455
[parameter (Mandatory = $false )]
456
- [string ]$Cache = [io.Path ]::Combine($env: USERPROFILE , " .unitysetup" ),
457
-
458
- [parameter (Mandatory = $false )]
459
- [ValidateSet (' Open' , ' RunAs' )]
460
- [string ]$Verb
456
+ [string ]$Cache = [io.Path ]::Combine($env: USERPROFILE , " .unitysetup" )
461
457
)
462
458
463
459
process {
@@ -501,9 +497,9 @@ function Install-UnitySetupInstance {
501
497
if (! (Test-Path $destDirectory - PathType Container)) {
502
498
New-Item " $destDirectory " - ItemType Directory | Out-Null
503
499
}
504
- }
505
500
506
- Start-BitsTransfer - Source $downloadSource - Destination $downloadDest
501
+ (New-Object System.Net.WebClient).DownloadFile($downloadSource [$i ], $downloadDest [$i ])
502
+ }
507
503
}
508
504
509
505
for ($i = 0 ; $i -lt $localInstallers.Length ; $i ++ ) {
You can’t perform that action at this time.
0 commit comments