use the opsi command to kill the browser window

This commit is contained in:
Mario Fetka 2013-03-20 06:53:18 +01:00
parent 0590998c42
commit 15cd9e4cc6
2 changed files with 5 additions and 6 deletions

View File

@ -29,6 +29,9 @@ if FileExists($UninstallProgram$)
sub_check_exitcode
endif
comment "Close the Uninstall browser window"
killtask "iexplore.exe" "iron.exe" "firefox.exe" "chrome.exe" "opera.exe"
comment "Delete files"
Files_uninstall /32Bit
@ -40,14 +43,10 @@ LinkFolder_uninstall
[Winbatch_uninstall_old]
"$UninstallProgramOld$" /SILENT /NORESTART /SUPPRESSMSGBOXES
sleepSeconds 5
taskkill /F /IM iexplore.exe /IM iron.exe /IM firefox.exe /IM chrome.exe /IM opera.exe
[Winbatch_uninstall]
"$UninstallProgram$" /SILENT /NORESTART /SUPPRESSMSGBOXES
sleepSeconds 5
taskkill /F /IM iexplore.exe /IM iron.exe /IM firefox.exe /IM chrome.exe /IM opera.exe
[Files_uninstall]

View File

@ -63,6 +63,8 @@ else
ChangeDirectory "%SCRIPTPATH%"
Winbatch_install
Sub_check_exitcode
comment "Close the Install Browser Window"
killtask "iexplore.exe" "iron.exe" "firefox.exe" "chrome.exe" "opera.exe"
comment "Copy files"
Files_install /32Bit
@ -77,8 +79,6 @@ endif
[Winbatch_install]
"$InstallExe$" /SILENT /NORESTART
sleepSeconds 5
taskkill /F /IM iexplore.exe /IM iron.exe /IM firefox.exe /IM chrome.exe /IM opera.exe
[Files_install]
; copy the ini file to the InstallDir