the really really initial commit
This commit is contained in:
41
install.ins
41
install.ins
@ -1,14 +1,12 @@
|
||||
[Initial]
|
||||
Message=Installiere MDG Visual Studio Code...
|
||||
Message=Installiere MDG Git Client...
|
||||
DefVar $Version$
|
||||
DefVar $ExitCode$
|
||||
DefVar $CreateContextMenuEntry$
|
||||
DefVar $ContextMenuArguments$
|
||||
DefVar $CreateDesktopShortcut$
|
||||
DefVar $DesktopShortcutArgument$
|
||||
|
||||
[Aktionen]
|
||||
ShowBitmap "%ScriptPath%\logo.png" "MDG Visual Studio Code"
|
||||
ShowBitmap "%ScriptPath%\logo.png" "MDG Git Client"
|
||||
Sub_GetProperties
|
||||
Sub_ConfigureProperties
|
||||
Sub_PrepareInstall
|
||||
@ -18,34 +16,35 @@ Sub_HandleExitCode
|
||||
[Sub_GetProperties]
|
||||
Set $Version$ = GetValue("productversion", GetProductMap)
|
||||
Set $CreateContextMenuEntry$ = GetProductProperty("contextmenuentry", "false")
|
||||
Set $CreateDesktopShortcut$ = GetProductProperty("desktopshortcut", "false")
|
||||
|
||||
[Sub_ConfigureProperties]
|
||||
if ($CreateContextMenuEntry$ = "true")
|
||||
Set $ContextMenuArguments$ = ", addcontextmenufiles, addcontextmenufolders"
|
||||
Set $ContextMenuArguments$ = ",ext,ext\shellhere,ext\guihere"
|
||||
else
|
||||
Set $ContextMenuArguments$ = ", !addcontextmenufiles, !addcontextmenufolders"
|
||||
endif
|
||||
|
||||
if ($CreateDesktopShortcut$ = "true")
|
||||
Set $DesktopShortcutArgument$ = ", desktopicon"
|
||||
else
|
||||
Set $DesktopShortcutArgument$ = ", !desktopicon"
|
||||
Set $ContextMenuArguments$ = ""
|
||||
endif
|
||||
|
||||
[Sub_PrepareInstall]
|
||||
if (processIsRunning("Code.exe"))
|
||||
comment "Killing Process..."
|
||||
Killtask "Code.exe"
|
||||
; Kill gpg-agent
|
||||
if (processIsRunning("gpg-agent.exe"))
|
||||
comment "Killing gpg-agent..."
|
||||
Killtask "gpg-agent.exe"
|
||||
sleepSeconds 3
|
||||
endif
|
||||
|
||||
[WinBatch_Setup]
|
||||
%ScriptPath%\data\VSCodeSetup-x64-$Version$.exe /VERYSILENT /SUPPRESSMSGBOXES /MERGETASKS="!runcode$ContextMenuArguments$$DesktopShortcutArgument$" /LOG="%opsiLogDir%\vscode-install.log"
|
||||
; Kill ssh-agent
|
||||
if (processIsRunning("ssh-agent.exe"))
|
||||
comment "Killing ssh-agent..."
|
||||
Killtask "ssh-agent.exe"
|
||||
sleepSeconds 3
|
||||
endif
|
||||
|
||||
; VERYSILENT unterdrückt das Installationsfenster
|
||||
; SUPPRESSMSGBOXES unterdrückt Benachrichtigungsfenster
|
||||
; MERGETASKS verhindert das automatische Starten des Programms nach der Installation
|
||||
|
||||
|
||||
[WinBatch_Setup]
|
||||
%ScriptPath%\data\Git-$Version$-64-bit.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /NOCANCEL /SP- /COMPONENTS="icons,icons\quicklaunch,assoc,assoc_sh,gitlfs$ContextMenuArguments$" /LOG="%opsiLogDir%\git-client-install.log"
|
||||
|
||||
; See Components under https://github.com/git-for-windows/build-extra/blob/HEAD/installer/install.iss
|
||||
|
||||
[Sub_HandleExitCode]
|
||||
; check return code
|
||||
|
Reference in New Issue
Block a user