undo last change for downloading file locally
This commit is contained in:
@@ -50,8 +50,11 @@ If ( IsAdmin )
|
|||||||
Catch { LogErr $_.Exception.Message }
|
Catch { LogErr $_.Exception.Message }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
## Set the local file name to download to
|
||||||
|
$FILE = '{0}{1}.exe' -f (GetTempPath),(Split-Path $URL -Leaf)
|
||||||
|
|
||||||
## Download installer
|
## Download installer
|
||||||
$FILE = Download-File -URL $URL
|
$FILE = Download-File -URL $URL -File $FILE
|
||||||
|
|
||||||
## Install package
|
## Install package
|
||||||
Install-Program -Path $FILE -Arguments "/silent" -Delete
|
Install-Program -Path $FILE -Arguments "/silent" -Delete
|
||||||
|
|||||||
Reference in New Issue
Block a user