Files
management-scripts/Install-Enscape.ps1
T

16 lines
599 B
PowerShell
Raw Normal View History

2022-09-30 11:48:18 -04:00
## Path to the MSI installer
2023-06-27 21:32:07 -04:00
$MSIURL = 'https://enscape-installer.chaosgroup.com/installer.enscape.io/Enscape-3.5.1%2B109642.msi'
2022-09-30 11:48:18 -04:00
## Run the installer
$INSTALLER = Download-File -URL $MSIURL
LogMsg "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 }
2022-09-30 11:48:18 -04:00
Catch { LogErr $_.Exception.Message }
## Delete installer
Try {
LogMsg "Deleting downloaded installation package"
Remove-Item $INSTALLER -Force -ErrorAction SilentlyContinue
}
Catch { LogErr $_.Exception.Message }