Skip to content

Commit 9702380

Browse files
committed
Merge branch 'develop' of https://github.com/Microsoft/unitysetup.powershell into develop
2 parents a2d0506 + 0704262 commit 9702380

File tree

2 files changed

+4
-8
lines changed

2 files changed

+4
-8
lines changed

UnitySetup/UnitySetup.psd1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
RootModule = 'UnitySetup'
1515

1616
# Version number of this module.
17-
ModuleVersion = '4.1'
17+
ModuleVersion = '5.0'
1818

1919
# Supported PSEditions
2020
# CompatiblePSEditions = @()

UnitySetup/UnitySetup.psm1

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -453,11 +453,7 @@ function Install-UnitySetupInstance {
453453
[string]$Destination,
454454

455455
[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")
461457
)
462458

463459
process {
@@ -501,9 +497,9 @@ function Install-UnitySetupInstance {
501497
if (!(Test-Path $destDirectory -PathType Container)) {
502498
New-Item "$destDirectory" -ItemType Directory | Out-Null
503499
}
504-
}
505500

506-
Start-BitsTransfer -Source $downloadSource -Destination $downloadDest
501+
(New-Object System.Net.WebClient).DownloadFile($downloadSource[$i], $downloadDest[$i])
502+
}
507503
}
508504

509505
for ($i = 0; $i -lt $localInstallers.Length; $i++) {

0 commit comments

Comments
 (0)