2021-06-17 13:00:39 -04:00
|
|
|
## Specify the URL to download the app from
|
|
|
|
|
$URL = 'https://specsintact.ksc.nasa.gov/Software/downloads/SpecsIntact.msi'
|
|
|
|
|
|
|
|
|
|
## Download the installer
|
|
|
|
|
$INSTALLER = Download-File -URL $URL
|
|
|
|
|
|
|
|
|
|
## Install the app
|
2023-10-05 13:11:38 -04:00
|
|
|
Write-Output "Installing latest version of SpecsIntact from ""${INSTALLER}"""
|
2021-06-17 13:00:39 -04:00
|
|
|
Try { Start-Process "msiexec.exe" -ArgumentList "/i ${INSTALLER} /qn /norestart" -Wait }
|
|
|
|
|
Catch { LogErr $_.Exception.Message }
|
|
|
|
|
|
|
|
|
|
## Delete the installer
|
2023-10-05 13:11:38 -04:00
|
|
|
Write-Output "Deleting downloaded installer from ""${INSTALLER}"""
|
2021-06-17 13:00:39 -04:00
|
|
|
Try { Remove-Item -Path $INSTALLER -Force -ErrorAction SilentlyContinue }
|
|
|
|
|
Catch { LogErr $_.Exception.Message }
|