initial commit
This commit is contained in:
commit
57cb919f41
|
@ -0,0 +1,2 @@
|
|||
*.exe
|
||||
/data/
|
|
@ -0,0 +1,17 @@
|
|||
[Product]
|
||||
type: localboot
|
||||
id: mdg-visual-studio-code
|
||||
name: MDG Visual Studio Code
|
||||
description: VSCode ist eine von Microsoft entwickelte, weit verbreitete Entwicklungsumgebung mit Unterstützung für eine Vielzahl an Erweiterungen. Der Großteil des Programms ist quelloffen.
|
||||
advice: Erweiterungen werden im Verzeichnes %USERPROFILE%\.vscode\extensions und somit im Windows-Profil des Nutzers installiert.
|
||||
version: 1.0
|
||||
packageVersion: 1.0
|
||||
setupScript: install.ins
|
||||
uninstallScript: remove.ins
|
||||
|
||||
[ProductProperty]
|
||||
name: contextmenuentry
|
||||
type: bool
|
||||
description: Windows-Explorer Kontextmenüeintrag erstellen
|
||||
helptext: Dieser Kontextmenüeintrag wird für Dateien und Ordner im Windows-Explorer erzeugt.
|
||||
default: false
|
|
@ -0,0 +1,35 @@
|
|||
[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
|
|
@ -0,0 +1,23 @@
|
|||
[Initial]
|
||||
Message=Deinstalliere MDG Visual Studio Code...
|
||||
DefVar $ExitCode$
|
||||
|
||||
[Aktionen]
|
||||
ShowBitmap "%ScriptPath%\logo.png" "MDG Visual Studio Code"
|
||||
WinBatch_Setup
|
||||
Sub_HandleExitCode
|
||||
|
||||
[WinBatch_Setup]
|
||||
"%ProgramFiles%\Microsoft VS Code\unins000.exe" /VERYSILENT /SUPPRESSMSGBOXES /MERGETASKS="!runcode" /LOG="%opsiTmpDir%\uninstall.log"
|
||||
|
||||
; VERYSILENT unterdrückt das Installationsfenster
|
||||
; SUPPRESSMSGBOXES unterdrückt Benachrichtigungsfenster
|
||||
|
||||
[Sub_HandleExitCode]
|
||||
; check return code
|
||||
Set $ExitCode$ = GetLastExitCode
|
||||
comment "GetLastExitCode: " + $ExitCode$
|
||||
if not($ExitCode$ = "0")
|
||||
LogError "Fatal: setup returned exit code " + $ExitCode$
|
||||
IsFatalError
|
||||
endif
|
Loading…
Reference in New Issue