mirror of
https://github.com/cryptomator/cryptomator.git
synced 2026-04-17 08:06:52 -04:00
* decouple patchUpdateCheck script from app name * simplify patchWebdav script and align it with patchUpdate
18 lines
575 B
Batchfile
18 lines
575 B
Batchfile
@echo off
|
|
:: Batch wrapper for PowerShell script to adjust Windows network settings for the Cryptomator WebDAVAdapter
|
|
:: This is executed as a Custom Action during MSI installation
|
|
:: This file must be located in the INSTALLDIR
|
|
|
|
set "LOOPBACK_ALIAS=%1"
|
|
|
|
:: Log for debugging
|
|
echo LOOPBACK_ALIAS=%LOOPBACK_ALIAS%
|
|
|
|
:: Change to INSTALLDIR
|
|
cd %~dp0
|
|
:: Execute the PowerShell script
|
|
powershell -NoLogo -NoProfile -NonInteractive -ExecutionPolicy RemoteSigned -File .\patchWebDAV.ps1^
|
|
-LoopbackAlias %LOOPBACK_ALIAS%
|
|
|
|
:: Return the exit code from PowerShell
|
|
exit /b %ERRORLEVEL% |