readd workarounds for uninstall
This commit is contained in:
parent
0b5f764d60
commit
bbb05ebfb8
BIN
CLIENT_DATA/X86/immunet-uninstall32.exe
Normal file
BIN
CLIENT_DATA/X86/immunet-uninstall32.exe
Normal file
Binary file not shown.
BIN
CLIENT_DATA/X86_64/immunet-uninstall64.exe
Normal file
BIN
CLIENT_DATA/X86_64/immunet-uninstall64.exe
Normal file
Binary file not shown.
@ -24,21 +24,21 @@ if (($INST_SystemType$ = "x86 System") and ($INST_architecture$ = "system specif
|
|||||||
Set $UninstallProgramOld32$ = $InstallDir32$ + "\" + $UninstallProg32$
|
Set $UninstallProgramOld32$ = $InstallDir32$ + "\" + $UninstallProg32$
|
||||||
if FileExists($UninstallProgramOld32$)
|
if FileExists($UninstallProgramOld32$)
|
||||||
comment "Uninstall program found, starting uninstall"
|
comment "Uninstall program found, starting uninstall"
|
||||||
Winbatch_uninstall_old_32 /WaitforProcessending "Au_.exe" /Timeoutseconds 10
|
Winbatch_uninstall_old_32
|
||||||
sub_check_exitcode
|
sub_check_exitcode
|
||||||
ExitWindows /ImmediateReboot
|
ExitWindows /ImmediateReboot
|
||||||
endif
|
endif
|
||||||
Set $UninstallProgramOld32$ = $InstallDir32$ + "\" + $OlduVersion32$ + "\uninstall.exe"
|
Set $UninstallProgramOld32$ = $InstallDir32$ + "\" + $OlduVersion32$ + "\uninstall.exe"
|
||||||
if FileExists($UninstallProgramOld32$)
|
if FileExists($UninstallProgramOld32$)
|
||||||
comment "Uninstall program found, starting uninstall"
|
comment "Uninstall program found, starting uninstall"
|
||||||
Winbatch_uninstall_old_32 /WaitforProcessending "Au_.exe" /Timeoutseconds 10
|
Winbatch_uninstall_old_32
|
||||||
sub_check_exitcode
|
sub_check_exitcode
|
||||||
ExitWindows /ImmediateReboot
|
ExitWindows /ImmediateReboot
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
if FileExists($UninstallProgram32$)
|
if FileExists($UninstallProgram32$)
|
||||||
comment "Uninstall program found, starting uninstall"
|
comment "Uninstall program found, starting uninstall"
|
||||||
Winbatch_uninstall_32 /WaitforProcessending "Au_.exe" /Timeoutseconds 10
|
Winbatch_uninstall_32
|
||||||
sub_check_exitcode
|
sub_check_exitcode
|
||||||
ExitWindows /ImmediateReboot
|
ExitWindows /ImmediateReboot
|
||||||
endif
|
endif
|
||||||
@ -58,26 +58,26 @@ if ($INST_SystemType$ = "64 Bit System") and (($INST_architecture$ = "system spe
|
|||||||
Message "Uninstalling " + $ProductId$ + " "+ $OLD_VERSION$ + "-" + $OLD_CREATOR_TAG$ + $OLD_RELEASE$ + " 64 Bit..."
|
Message "Uninstalling " + $ProductId$ + " "+ $OLD_VERSION$ + "-" + $OLD_CREATOR_TAG$ + $OLD_RELEASE$ + " 64 Bit..."
|
||||||
|
|
||||||
if FileExists($IniFile64$)
|
if FileExists($IniFile64$)
|
||||||
Set $UninstallProgr64$ = GetValueFromInifile($IniFile64$,"X86_64","UninstallProg64","XXXXXXXX.exe")
|
Set $UninstallProg64$ = GetValueFromInifile($IniFile64$,"X86_64","UninstallProg64","XXXXXXXX.exe")
|
||||||
Set $OlduVersion64$ = GetValueFromInifile($IniFile64$,"COMMON","uVersion","0.0.0")
|
Set $OlduVersion64$ = GetValueFromInifile($IniFile64$,"COMMON","uVersion","0.0.0")
|
||||||
Set $UninstallProgramOld64$ = $InstallDir64$ + "\" + $UninstallProg64$
|
Set $UninstallProgramOld64$ = $InstallDir64$ + "\" + $UninstallProg64$
|
||||||
if FileExists($UninstallProgramOld64$)
|
if FileExists($UninstallProgramOld64$)
|
||||||
comment "Uninstall program found, starting uninstall"
|
comment "Uninstall program found, starting uninstall"
|
||||||
Winbatch_uninstall_old_64 /WaitforProcessending "Au_.exe" /Timeoutseconds 10
|
Winbatch_uninstall_old_64
|
||||||
sub_check_exitcode
|
sub_check_exitcode
|
||||||
ExitWindows /ImmediateReboot
|
ExitWindows /ImmediateReboot
|
||||||
endif
|
endif
|
||||||
Set $UninstallProgramOld64$ = $InstallDir64$ + "\" + $OlduVersion64$ + "\uninstall.exe"
|
Set $UninstallProgramOld64$ = $InstallDir64$ + "\" + $OlduVersion64$ + "\uninstall.exe"
|
||||||
if FileExists($UninstallProgramOld64$)
|
if FileExists($UninstallProgramOld64$)
|
||||||
comment "Uninstall program found, starting uninstall"
|
comment "Uninstall program found, starting uninstall"
|
||||||
Winbatch_uninstall_old_64 /WaitforProcessending "Au_.exe" /Timeoutseconds 10
|
Winbatch_uninstall_old_64
|
||||||
sub_check_exitcode
|
sub_check_exitcode
|
||||||
ExitWindows /ImmediateReboot
|
ExitWindows /ImmediateReboot
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
if FileExists($UninstallProgram64$)
|
if FileExists($UninstallProgram64$)
|
||||||
comment "Uninstall program found, starting uninstall"
|
comment "Uninstall program found, starting uninstall"
|
||||||
Winbatch_uninstall_64 /WaitforProcessending "Au_.exe" /Timeoutseconds 10
|
Winbatch_uninstall_64
|
||||||
sub_check_exitcode
|
sub_check_exitcode
|
||||||
ExitWindows /ImmediateReboot
|
ExitWindows /ImmediateReboot
|
||||||
endif
|
endif
|
||||||
@ -92,10 +92,10 @@ comment "Delete program shortcuts"
|
|||||||
LinkFolder_uninstall
|
LinkFolder_uninstall
|
||||||
|
|
||||||
[Winbatch_uninstall_old_32]
|
[Winbatch_uninstall_old_32]
|
||||||
"$UninstallProgramOld32$" /S
|
"$RealUninstallProgramm32$" "$UninstallProgramOld32$"
|
||||||
|
|
||||||
[Winbatch_uninstall_32]
|
[Winbatch_uninstall_32]
|
||||||
"$UninstallProgram32$" /S
|
"$RealUninstallProgramm32$" "$UninstallProgram32$"
|
||||||
|
|
||||||
[Files_uninstall_32]
|
[Files_uninstall_32]
|
||||||
; Example for recursively deleting the installation directory (don't forget the trailing backslash):
|
; Example for recursively deleting the installation directory (don't forget the trailing backslash):
|
||||||
@ -103,10 +103,10 @@ LinkFolder_uninstall
|
|||||||
delete -sf "$InstallDir32$\"
|
delete -sf "$InstallDir32$\"
|
||||||
|
|
||||||
[Winbatch_uninstall_old_64]
|
[Winbatch_uninstall_old_64]
|
||||||
"$UninstallProgramOld64$" /S
|
"$RealUninstallProgramm64$" "$UninstallProgramOld64$"
|
||||||
|
|
||||||
[Winbatch_uninstall_64]
|
[Winbatch_uninstall_64]
|
||||||
"$UninstallProgram64$" /S
|
"$RealUninstallProgramm64$" "$UninstallProgram64$"
|
||||||
|
|
||||||
[Files_uninstall_64]
|
[Files_uninstall_64]
|
||||||
; Example for recursively deleting the installation directory:
|
; Example for recursively deleting the installation directory:
|
||||||
|
@ -47,7 +47,7 @@ type: unicode
|
|||||||
name: immunet_license_required
|
name: immunet_license_required
|
||||||
multivalue: False
|
multivalue: False
|
||||||
editable: False
|
editable: False
|
||||||
description: Activate ClamAV Devs
|
description: Use License or Free Verison
|
||||||
values: ["false", "true"]
|
values: ["false", "true"]
|
||||||
default: ["true"]
|
default: ["true"]
|
||||||
|
|
||||||
|
@ -47,3 +47,9 @@ OPSI_INI_VALUE[1]="${a[0]}.${a[1]}.${a[2]}\uninstall.exe"
|
|||||||
OPSI_INI_SECTION[2]="X86_64"
|
OPSI_INI_SECTION[2]="X86_64"
|
||||||
OPSI_INI_OPTION[2]="UninstallProg64"
|
OPSI_INI_OPTION[2]="UninstallProg64"
|
||||||
OPSI_INI_VALUE[2]="${a[0]}.${a[1]}.${a[2]}\uninstall.exe"
|
OPSI_INI_VALUE[2]="${a[0]}.${a[1]}.${a[2]}\uninstall.exe"
|
||||||
|
|
||||||
|
WINST_NAME[0]="RealUninstallProgramm32"
|
||||||
|
WINST_VALUE[0]="@DL_EXTRACT_WINST_PATH[1]@\\immunet-uninstall32.exe"
|
||||||
|
|
||||||
|
WINST_NAME[1]="RealUninstallProgramm64"
|
||||||
|
WINST_VALUE[1]="@DL_EXTRACT_WINST_PATH[2]@\\immunet-uninstall64.exe"
|
||||||
|
Loading…
Reference in New Issue
Block a user