add cleanup step
This commit is contained in:
@@ -40,3 +40,8 @@ Download-File -URL $URL -File $Installer
|
||||
If ( !(Test-Path $Installer) ) { Write-Output "Cannot download installer! This script will exit." ; Return }
|
||||
Write-Output "Installing Enscape from ""${Installer}"""
|
||||
Start-Process $Installer -ArgumentList "-gui=0 -acceptEULA -configFile=""${TEMPDIR}\config.xml"" -quiet=1 -ignoreErrors=1" -Wait
|
||||
|
||||
# Delete the installer
|
||||
Write-Output "Deleting temp directory and its contents"
|
||||
Try { Remove-Item -Path $TEMPDIR -Recurse -Force -ErrorAction SilentlyContinue }
|
||||
Catch { Write-Error $_.Exception.Message }
|
||||
|
||||
Reference in New Issue
Block a user