-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathUpdate.cmd
More file actions
31 lines (27 loc) · 975 Bytes
/
Update.cmd
File metadata and controls
31 lines (27 loc) · 975 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
@echo off
:: sqmSQLTool Updater
:: Startet Update.ps1 mit ExecutionPolicy Bypass
:: Empfohlen wenn das Modul von einem cross-domain Share aktualisiert wird
::
:: Aufruf: Update.cmd
:: Eigener Repository-Pfad: Update.cmd "\\anderer\Share\sqmSQLTool"
:: Update erzwingen: Update.cmd "" Force
setlocal
set "SCRIPT_DIR=%~dp0"
set "REPOSITORY=%~1"
set "FORCE=%~2"
if "%REPOSITORY%"=="" (
if /i "%FORCE%"=="Force" (
powershell.exe -NoProfile -ExecutionPolicy Bypass -File "%SCRIPT_DIR%Update.ps1" -Force
) else (
powershell.exe -NoProfile -ExecutionPolicy Bypass -File "%SCRIPT_DIR%Update.ps1"
)
) else (
if /i "%FORCE%"=="Force" (
powershell.exe -NoProfile -ExecutionPolicy Bypass -File "%SCRIPT_DIR%Update.ps1" -RepositoryPath "%REPOSITORY%" -Force
) else (
powershell.exe -NoProfile -ExecutionPolicy Bypass -File "%SCRIPT_DIR%Update.ps1" -RepositoryPath "%REPOSITORY%"
)
)
endlocal
pause