diff --git a/Install-SimpleInOut.ps1 b/Install-SimpleInOut.ps1 new file mode 100644 index 0000000..d865f34 --- /dev/null +++ b/Install-SimpleInOut.ps1 @@ -0,0 +1,15 @@ +# 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}""" +Try { Start-Process "msiexec.exe" -ArgumentList "/i ${INSTALLER} /qn /norestart" -Wait } +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 } \ No newline at end of file