Files
management-scripts/Install-SimpleInOut.ps1
T

17 lines
736 B
PowerShell
Raw Normal View History

2022-09-26 17:24:06 -04:00
If ( Test-Path "${Env:ProgramFiles}\simpleinout-desktop\Simple In Out.exe" ) { LogMsg "Simple In/Out is already installed." ; Exit }
2022-07-14 13:25:54 -04:00
# Specify the URL to download the app from
$URL = 'https://downloads.simpleinout.com/desktop/Simple-In-Out.msi'
# Download the installer
$INSTALLER = Download-File -URL $URL
# Install the app
LogMsg "Installing latest version of Simple In/Out from ""${INSTALLER}"""
2022-09-07 10:07:09 -04:00
Try { Start-Process "msiexec.exe" -ArgumentList "/i ${INSTALLER} /qn /norestart ALLUSERS=1" -Wait }
2022-07-14 13:25:54 -04:00
Catch { LogErr $_.Exception.Message }
# Delete the installer
LogMsg "Deleting downloaded installer from ""${INSTALLER}"""
Try { Remove-Item -Path $INSTALLER -Force -ErrorAction SilentlyContinue }
Catch { LogErr $_.Exception.Message }