patchUpdateCheck.bat 584 B

123456789101112131415161718
  1. @echo off
  2. :: Batch wrapper for PowerShell script to modify Cryptomator update check settings
  3. :: This is executed as a Custom Action during MSI installation
  4. :: This file must be located in the INSTALLDIR
  5. set "DISABLEUPDATECHECK=%~1"
  6. :: Log for debugging
  7. echo DISABLEUPDATECHECK=%DISABLEUPDATECHECK%
  8. :: Change to INSTALLDIR
  9. cd %~dp0
  10. :: Execute the PowerShell script
  11. powershell.exe -NoLogo -NoProfile -NonInteractive -ExecutionPolicy RemoteSigned -File ".\patchUpdateCheck.ps1"^
  12. -DisableUpdateCheck "%DISABLEUPDATECHECK%"
  13. :: Return the exit code from PowerShell
  14. exit /b %ERRORLEVEL%