undo last change for downloading file locally

This commit is contained in:
2021-06-24 11:48:04 -04:00
parent 8c7cfebc11
commit 4cf19c1599
+4 -1
View File
@@ -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