15 lines
626 B
PowerShell
15 lines
626 B
PowerShell
## 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
|
|
Write-Output "Installing latest version of SpecsIntact from ""${INSTALLER}"""
|
|
Try { Start-Process "msiexec.exe" -ArgumentList "/i ${INSTALLER} /qn /norestart" -Wait }
|
|
Catch { Write-Error $_.Exception.Message }
|
|
|
|
## Delete the installer
|
|
Write-Output "Deleting downloaded installer from ""${INSTALLER}"""
|
|
Try { Remove-Item -Path $INSTALLER -Force -ErrorAction SilentlyContinue }
|
|
Catch { Write-Error $_.Exception.Message } |