2023-10-05 13:11:38 -04:00
|
|
|
If ( Test-Path "${Env:ProgramFiles}\simpleinout-desktop\Simple In Out.exe" ) { Write-Output "Simple In/Out is already installed." ; Exit }
|
2022-09-26 17:24:06 -04:00
|
|
|
|
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
|
2023-10-05 13:11:38 -04:00
|
|
|
Write-Output "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 }
|
2023-10-05 13:17:18 -04:00
|
|
|
Catch { Write-Error $_.Exception.Message }
|
2022-07-14 13:25:54 -04:00
|
|
|
|
|
|
|
|
# Delete the installer
|
2023-10-05 13:11:38 -04:00
|
|
|
Write-Output "Deleting downloaded installer from ""${INSTALLER}"""
|
2022-07-14 13:25:54 -04:00
|
|
|
Try { Remove-Item -Path $INSTALLER -Force -ErrorAction SilentlyContinue }
|
2023-10-05 13:17:18 -04:00
|
|
|
Catch { Write-Error $_.Exception.Message }
|