Added check for running instance of vscode
This commit is contained in:
		@@ -4,9 +4,17 @@ DefVar $ExitCode$
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
[Aktionen]
 | 
					[Aktionen]
 | 
				
			||||||
ShowBitmap "%ScriptPath%\logo.png" "MDG Visual Studio Code"
 | 
					ShowBitmap "%ScriptPath%\logo.png" "MDG Visual Studio Code"
 | 
				
			||||||
 | 
					Sub_PrepareRemove
 | 
				
			||||||
WinBatch_Setup
 | 
					WinBatch_Setup
 | 
				
			||||||
Sub_HandleExitCode
 | 
					Sub_HandleExitCode
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					[Sub_PrepareRemove]
 | 
				
			||||||
 | 
					if (processIsRunning("Code.exe"))
 | 
				
			||||||
 | 
					  comment "Killing Process..."
 | 
				
			||||||
 | 
					  Killtask "Code.exe"
 | 
				
			||||||
 | 
					  sleepSeconds 3
 | 
				
			||||||
 | 
					endif
 | 
				
			||||||
 | 
					
 | 
				
			||||||
[WinBatch_Setup]
 | 
					[WinBatch_Setup]
 | 
				
			||||||
"%ProgramFiles64Dir%\Microsoft VS Code\unins000.exe" /VERYSILENT /SUPPRESSMSGBOXES /LOG="%opsiLogDir%\vscode-uninstall.log"
 | 
					"%ProgramFiles64Dir%\Microsoft VS Code\unins000.exe" /VERYSILENT /SUPPRESSMSGBOXES /LOG="%opsiLogDir%\vscode-uninstall.log"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user