Files
management-scripts/Install-Enscape.ps1
T
2024-01-11 14:06:04 -05:00

16 lines
621 B
PowerShell

## Path to the MSI installer
$MSIURL = 'https://enscape-installer.chaosgroup.com/installer.enscape.io/Enscape-3.5.6%2B204048.msi'
## Run the installer
$INSTALLER = Download-File -URL $MSIURL
Write-Output "Installing Enscape from ""${INSTALLER}"""
Try { Start-Process "msiexec.exe" -ArgumentList "/i ${INSTALLER} /qn /norestart ACCEPTEULA=1 ALLUSERS=1" -Wait -ErrorAction Stop }
Catch { Write-Error $_.Exception.Message }
## Delete installer
Try {
Write-Output "Deleting downloaded installation package"
Remove-Item $INSTALLER -Force -ErrorAction SilentlyContinue
}
Catch { Write-Error $_.Exception.Message }