Skip to content

Commit 0704262

Browse files
authored
Merge pull request #120 from nickhorvath/nick/change_startbits
flip from start-bits to webclient. remove unused param - resolves #119
2 parents 128789e + 8b86edf commit 0704262

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
@@ -421,11 +421,7 @@ function Install-UnitySetupInstance {
421421
[string]$Destination,
422422

423423
[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")
429425
)
430426

431427
process {
@@ -469,9 +465,9 @@ function Install-UnitySetupInstance {
469465
if (!(Test-Path $destDirectory -PathType Container)) {
470466
New-Item "$destDirectory" -ItemType Directory | Out-Null
471467
}
472-
}
473468

474-
Start-BitsTransfer -Source $downloadSource -Destination $downloadDest
469+
(New-Object System.Net.WebClient).DownloadFile($downloadSource[$i], $downloadDest[$i])
470+
}
475471
}
476472

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

0 commit comments

Comments
 (0)