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