2022-09-30 11:48:18 -04:00
|
|
|
## Path to the MSI installer
|
2024-04-16 12:06:44 -04:00
|
|
|
$MSIURL = 'https://enscape-installer.chaosgroup.com/installer.enscape.io/Enscape-4.0.0.579.exe'
|
2022-09-30 11:48:18 -04:00
|
|
|
|
|
|
|
|
## Run the installer
|
|
|
|
|
$INSTALLER = Download-File -URL $MSIURL
|
2023-10-05 13:11:38 -04:00
|
|
|
Write-Output "Installing Enscape from ""${INSTALLER}"""
|
2023-07-13 11:26:48 -04:00
|
|
|
Try { Start-Process "msiexec.exe" -ArgumentList "/i ${INSTALLER} /qn /norestart ACCEPTEULA=1 ALLUSERS=1" -Wait -ErrorAction Stop }
|
2023-10-05 13:17:18 -04:00
|
|
|
Catch { Write-Error $_.Exception.Message }
|
2022-09-30 11:48:18 -04:00
|
|
|
|
|
|
|
|
## Delete installer
|
|
|
|
|
Try {
|
2023-10-05 13:11:38 -04:00
|
|
|
Write-Output "Deleting downloaded installation package"
|
2022-09-30 11:48:18 -04:00
|
|
|
Remove-Item $INSTALLER -Force -ErrorAction SilentlyContinue
|
|
|
|
|
}
|
2023-10-05 13:17:18 -04:00
|
|
|
Catch { Write-Error $_.Exception.Message }
|