commit 57cb919f41d38bdaaf0a351cb6c281c71c6f5be7 Author: UnlimitedCookies Date: Thu Oct 22 07:48:02 2020 +0200 initial commit diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..fa015d5 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +*.exe +/data/ \ No newline at end of file diff --git a/control b/control new file mode 100644 index 0000000..ce45518 --- /dev/null +++ b/control @@ -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 \ No newline at end of file diff --git a/icon.png b/icon.png new file mode 100644 index 0000000..78bd34d Binary files /dev/null and b/icon.png differ diff --git a/install.ins b/install.ins new file mode 100644 index 0000000..6f2c638 --- /dev/null +++ b/install.ins @@ -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 diff --git a/remove.ins b/remove.ins new file mode 100644 index 0000000..14f12d6 --- /dev/null +++ b/remove.ins @@ -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