Files
management-scripts/Install-Enscape.ps1
T

16 lines
621 B
PowerShell
Raw Normal View History

2022-09-30 11:48:18 -04:00
## Path to the MSI installer
2024-01-11 14:06:04 -05:00
$MSIURL = 'https://enscape-installer.chaosgroup.com/installer.enscape.io/Enscape-3.5.6%2B204048.msi'
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 }