move uninstall to dosbatch for cd $installdir$

This commit is contained in:
Mario Fetka 2012-02-20 07:04:08 +01:00
parent 2103436671
commit fb65ec8466
2 changed files with 11 additions and 7 deletions

View File

@ -18,7 +18,7 @@ if (($INST_SystemType$ = "x86 System") and ($INST_architecture$ = "system specif
if FileExists($UninstallProgram32$)
comment "Uninstall program found, starting uninstall"
Winbatch_uninstall_32
Dosbatch_uninstall_32
sub_check_exitcode
endif
@ -42,7 +42,7 @@ if ($INST_SystemType$ = "64 Bit System") and (($INST_architecture$ = "system spe
if FileExists($UninstallProgram64$)
comment "Uninstall program found, starting uninstall"
Winbatch_uninstall_64
Dosbatch_uninstall_64
sub_check_exitcode
endif
@ -66,12 +66,14 @@ LinkFolder_uninstall
net stop immunetprotect
taskkill /IM iptray.exe
[Winbatch_uninstall_32]
[Dosbatch_uninstall_32]
; Choose one of the following examples as basis for program uninstall
;
; === Nullsoft Scriptable Install System ================================================================
;"$UninstallProgram32$" /S
"$UninstallProgram32$"
;"$UninstallProgram32$"
cd $InstallDir32$"\"$uVersion$
immunet-uninstall.exe
[Winbatch_uninstall_msi_32]
@ -82,12 +84,14 @@ msiexec /x $MsiId32$ /qb! REBOOT=ReallySuppress
;
delete -sf "$InstallDir32$\"
[Winbatch_uninstall_64]
[Dosbatch_uninstall_64]
; Choose one of the following examples as basis for program uninstall
;
; === Nullsoft Scriptable Install System ================================================================
;"$UninstallProgram64$" /S
"$UninstallProgram64$"
;"$UninstallProgram64$"
cd $InstallDir32$"\"$uVersion$
immunet-uninstall.exe
[Winbatch_uninstall_msi_64]

View File

@ -538,7 +538,7 @@ copy -s "%ScriptPath%\*.exe" "$InstallDir32$\$uVersion$"
; Example of recursively copying some files into the installation directory:
;
copy -s "%ScriptPath%\*.xml" "$InstallDir64$"
copy -s "%ScriptPath%\*.exe" "$InstallDir64$\$uVersion$"
copy -s "%ScriptPath%\immunet-uninstall.exe" "$InstallDir64$\$uVersion$"
[Registry_install]
; Example of setting some values of an registry key: