the really really initial commit
This commit is contained in:
		
							
								
								
									
										2
									
								
								.gitignore
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										2
									
								
								.gitignore
									
									
									
									
										vendored
									
									
										Normal file
									
								
							@@ -0,0 +1,2 @@
 | 
				
			|||||||
 | 
					*.exe
 | 
				
			||||||
 | 
					/data/
 | 
				
			||||||
							
								
								
									
										21
									
								
								control
									
									
									
									
									
								
							
							
						
						
									
										21
									
								
								control
									
									
									
									
									
								
							@@ -1,26 +1,13 @@
 | 
				
			|||||||
[Product]
 | 
					[Product]
 | 
				
			||||||
type: localboot
 | 
					type: localboot
 | 
				
			||||||
id: mdg-visual-studio-code
 | 
					id: mdg-git-client
 | 
				
			||||||
name: MDG Visual Studio Code
 | 
					name: MDG Git Client
 | 
				
			||||||
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. 
 | 
					description: Git ist ein kostenloses und quelloffenes Versionskontrollsystem. Git ist unter der GPL v2 lizensiert. 
 | 
				
			||||||
advice: Erweiterungen werden im Verzeichnes %USERPROFILE%\.vscode\extensions und somit im Windows-Profil des Nutzers installiert. 
 | 
					version: 2.29.1
 | 
				
			||||||
version: 1.50.1
 | 
					 | 
				
			||||||
packageVersion: 1.0
 | 
					packageVersion: 1.0
 | 
				
			||||||
setupScript: install.ins
 | 
					setupScript: install.ins
 | 
				
			||||||
uninstallScript: remove.ins
 | 
					uninstallScript: remove.ins
 | 
				
			||||||
 | 
					
 | 
				
			||||||
[ProductDependency]
 | 
					 | 
				
			||||||
action: setup
 | 
					 | 
				
			||||||
requiredProduct: microsoft-dot-net-framework
 | 
					 | 
				
			||||||
requiredStatus: installed
 | 
					 | 
				
			||||||
requirementType: before
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
[ProductProperty]
 | 
					 | 
				
			||||||
name: desktopshortcut
 | 
					 | 
				
			||||||
type: bool
 | 
					 | 
				
			||||||
description: Verknüpfung auf dem Windows Desktop erstellen 
 | 
					 | 
				
			||||||
default: False
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
[ProductProperty]
 | 
					[ProductProperty]
 | 
				
			||||||
name: contextmenuentry
 | 
					name: contextmenuentry
 | 
				
			||||||
type: bool
 | 
					type: bool
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										41
									
								
								install.ins
									
									
									
									
									
								
							
							
						
						
									
										41
									
								
								install.ins
									
									
									
									
									
								
							@@ -1,14 +1,12 @@
 | 
				
			|||||||
[Initial]
 | 
					[Initial]
 | 
				
			||||||
Message=Installiere MDG Visual Studio Code...
 | 
					Message=Installiere MDG Git Client...
 | 
				
			||||||
DefVar $Version$
 | 
					DefVar $Version$
 | 
				
			||||||
DefVar $ExitCode$
 | 
					DefVar $ExitCode$
 | 
				
			||||||
DefVar $CreateContextMenuEntry$
 | 
					DefVar $CreateContextMenuEntry$
 | 
				
			||||||
DefVar $ContextMenuArguments$
 | 
					DefVar $ContextMenuArguments$
 | 
				
			||||||
DefVar $CreateDesktopShortcut$
 | 
					 | 
				
			||||||
DefVar $DesktopShortcutArgument$
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
[Aktionen]
 | 
					[Aktionen]
 | 
				
			||||||
ShowBitmap "%ScriptPath%\logo.png" "MDG Visual Studio Code"
 | 
					ShowBitmap "%ScriptPath%\logo.png" "MDG Git Client"
 | 
				
			||||||
Sub_GetProperties
 | 
					Sub_GetProperties
 | 
				
			||||||
Sub_ConfigureProperties
 | 
					Sub_ConfigureProperties
 | 
				
			||||||
Sub_PrepareInstall
 | 
					Sub_PrepareInstall
 | 
				
			||||||
@@ -18,34 +16,35 @@ Sub_HandleExitCode
 | 
				
			|||||||
[Sub_GetProperties]
 | 
					[Sub_GetProperties]
 | 
				
			||||||
Set $Version$ = GetValue("productversion", GetProductMap)
 | 
					Set $Version$ = GetValue("productversion", GetProductMap)
 | 
				
			||||||
Set $CreateContextMenuEntry$ = GetProductProperty("contextmenuentry", "false")
 | 
					Set $CreateContextMenuEntry$ = GetProductProperty("contextmenuentry", "false")
 | 
				
			||||||
Set $CreateDesktopShortcut$ = GetProductProperty("desktopshortcut", "false")
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
[Sub_ConfigureProperties]
 | 
					[Sub_ConfigureProperties]
 | 
				
			||||||
if ($CreateContextMenuEntry$ = "true")
 | 
					if ($CreateContextMenuEntry$ = "true")
 | 
				
			||||||
  Set $ContextMenuArguments$ = ", addcontextmenufiles, addcontextmenufolders"
 | 
					  Set $ContextMenuArguments$ = ",ext,ext\shellhere,ext\guihere"
 | 
				
			||||||
else
 | 
					else
 | 
				
			||||||
  Set $ContextMenuArguments$ = ", !addcontextmenufiles, !addcontextmenufolders"
 | 
					  Set $ContextMenuArguments$ = ""
 | 
				
			||||||
endif
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
if ($CreateDesktopShortcut$ = "true")
 | 
					 | 
				
			||||||
  Set $DesktopShortcutArgument$ = ", desktopicon"
 | 
					 | 
				
			||||||
else
 | 
					 | 
				
			||||||
  Set $DesktopShortcutArgument$ = ", !desktopicon"
 | 
					 | 
				
			||||||
endif
 | 
					endif
 | 
				
			||||||
 | 
					
 | 
				
			||||||
[Sub_PrepareInstall]
 | 
					[Sub_PrepareInstall]
 | 
				
			||||||
if (processIsRunning("Code.exe"))
 | 
					; Kill gpg-agent
 | 
				
			||||||
  comment "Killing Process..."
 | 
					if (processIsRunning("gpg-agent.exe"))
 | 
				
			||||||
  Killtask "Code.exe"
 | 
					  comment "Killing gpg-agent..."
 | 
				
			||||||
 | 
					  Killtask "gpg-agent.exe"
 | 
				
			||||||
  sleepSeconds 3
 | 
					  sleepSeconds 3
 | 
				
			||||||
endif
 | 
					endif
 | 
				
			||||||
 | 
					
 | 
				
			||||||
[WinBatch_Setup]
 | 
					; Kill ssh-agent
 | 
				
			||||||
%ScriptPath%\data\VSCodeSetup-x64-$Version$.exe /VERYSILENT /SUPPRESSMSGBOXES /MERGETASKS="!runcode$ContextMenuArguments$$DesktopShortcutArgument$" /LOG="%opsiLogDir%\vscode-install.log"
 | 
					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]
 | 
					[Sub_HandleExitCode]
 | 
				
			||||||
; check return code
 | 
					; check return code
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										33
									
								
								remove.ins
									
									
									
									
									
								
							
							
						
						
									
										33
									
								
								remove.ins
									
									
									
									
									
								
							@@ -1,25 +1,42 @@
 | 
				
			|||||||
[Initial]
 | 
					[Initial]
 | 
				
			||||||
Message=Deinstalliere MDG Visual Studio Code...
 | 
					Message=Deinstalliere MDG Git Client...
 | 
				
			||||||
DefVar $ExitCode$
 | 
					DefVar $ExitCode$
 | 
				
			||||||
 | 
					DefVar $UninstallExecutablePath$
 | 
				
			||||||
 | 
					
 | 
				
			||||||
[Aktionen]
 | 
					[Aktionen]
 | 
				
			||||||
ShowBitmap "%ScriptPath%\logo.png" "MDG Visual Studio Code"
 | 
					ShowBitmap "%ScriptPath%\logo.png" "MDG Git Client"
 | 
				
			||||||
Sub_PrepareRemove
 | 
					Sub_PrepareRemove
 | 
				
			||||||
WinBatch_Setup
 | 
					WinBatch_Setup
 | 
				
			||||||
 | 
					Files_Cleanup
 | 
				
			||||||
Sub_HandleExitCode
 | 
					Sub_HandleExitCode
 | 
				
			||||||
 | 
					
 | 
				
			||||||
[Sub_PrepareRemove]
 | 
					[Sub_PrepareRemove]
 | 
				
			||||||
if (processIsRunning("Code.exe"))
 | 
					; Kill gpg-agent
 | 
				
			||||||
  comment "Killing Process..."
 | 
					if (processIsRunning("gpg-agent.exe"))
 | 
				
			||||||
  Killtask "Code.exe"
 | 
					  comment "Killing gpg-agent..."
 | 
				
			||||||
 | 
					  Killtask "gpg-agent.exe"
 | 
				
			||||||
 | 
					  sleepSeconds 3
 | 
				
			||||||
 | 
					endif
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					; Retrieve Uninstall executable Path
 | 
				
			||||||
 | 
					Set $UninstallExecutablePath$ = getRegistryValue("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Git_is1", "UninstallString","64bit")
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					; Kill ssh-agent
 | 
				
			||||||
 | 
					if (processIsRunning("ssh-agent.exe"))
 | 
				
			||||||
 | 
					  comment "Killing ssh-agent..."
 | 
				
			||||||
 | 
					  Killtask "ssh-agent.exe"
 | 
				
			||||||
  sleepSeconds 3
 | 
					  sleepSeconds 3
 | 
				
			||||||
endif
 | 
					endif
 | 
				
			||||||
 | 
					
 | 
				
			||||||
[WinBatch_Setup]
 | 
					[WinBatch_Setup]
 | 
				
			||||||
"%ProgramFiles64Dir%\Microsoft VS Code\unins000.exe" /VERYSILENT /SUPPRESSMSGBOXES /LOG="%opsiLogDir%\vscode-uninstall.log"
 | 
					if not ($UninstallExecutablePath$ = "")
 | 
				
			||||||
 | 
					  if FileExists ($UninstallExecutablePath$)
 | 
				
			||||||
 | 
					    $UninstallExecutablePath$ /VERYSILENT /SUPPRESSMSGBOXES /LOG="%opsiLogDir%\git-client-uninstall.log"
 | 
				
			||||||
 | 
					  endif
 | 
				
			||||||
 | 
					endif
 | 
				
			||||||
 | 
					
 | 
				
			||||||
; VERYSILENT unterdrückt das Installationsfenster
 | 
					[Files_Cleanup]
 | 
				
			||||||
; SUPPRESSMSGBOXES unterdrückt Benachrichtigungsfenster
 | 
					delete -sf "%ProgramFilesDir%\Git\"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
[Sub_HandleExitCode]
 | 
					[Sub_HandleExitCode]
 | 
				
			||||||
; check return code
 | 
					; check return code
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user