Skip to content

Commit 3e2fbd3

Browse files
committed
flip from start-bits to webclient. remove unused param
1 parent 128789e commit 3e2fbd3

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

UnitySetup/UnitySetup.psm1

Lines changed: 2 additions & 6 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 {
@@ -471,7 +467,7 @@ function Install-UnitySetupInstance {
471467
}
472468
}
473469

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

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

0 commit comments

Comments
 (0)