36 lines
1.1 KiB
TeX
36 lines
1.1 KiB
TeX
[Initial]
|
|
Message=Installiere MDG Visual Studio Code...
|
|
DefVar $ExitCode$
|
|
DefVar $CreateContextMenuEntry$
|
|
|
|
[Aktionen]
|
|
ShowBitmap "%ScriptPath%\logo.png" "MDG Visual Studio Code"
|
|
Sub_GetProperties
|
|
WinBatch_Setup
|
|
Sub_HandleExitCode
|
|
|
|
[Sub_GetProperties]
|
|
Set $CreateContextMenuEntry$ = GetProductProperty("contextmenuentry", false)
|
|
|
|
[WinBatch_Setup]
|
|
if ($CreateContextMenuEntry$)
|
|
comment "Installing with contextmenu entries..."
|
|
VSCodeSetup-1.10.1.exe /VERYSILENT /SUPPRESSMSGBOXES /MERGETASKS="!runcode" /LOG="%opsiTmpDir%\install.log"
|
|
else
|
|
comment "Installing without contextmenu entries..."
|
|
VSCodeSetup-1.10.1.exe /VERYSILENT /SUPPRESSMSGBOXES /MERGETASKS="!runcode, !addcontextmenufiles, !addcontextmenufolders" /LOG="%opsiTmpDir%\install.log"
|
|
endif
|
|
|
|
; VERYSILENT unterdrückt das Installationsfenster
|
|
; SUPPRESSMSGBOXES unterdrückt Benachrichtigungsfenster
|
|
; MERGETASKS verhindert das automatische Starten des Programms nach der Installation
|
|
|
|
[Sub_HandleExitCode]
|
|
; check return code
|
|
Set $ExitCode$ = GetLastExitCode
|
|
comment "GetLastExitCode: " + $ExitCode$
|
|
if not($ExitCode$ = "0")
|
|
LogError "Fatal: setup returned exit code " + $ExitCode$
|
|
IsFatalError
|
|
endif
|