patchWebDAV.bat 575 B

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