Add missing declaration
This commit is contained in:
parent
a3b08acceb
commit
a561404a63
@ -3,7 +3,7 @@
|
||||
; and published under the Terms of the General Public License.
|
||||
; credits: http://www.opsi.org/en/credits/
|
||||
|
||||
Set $UninstallProgram$ = $InstallDir$ + "\uninstall.exe"
|
||||
Set $UninstallProgram$ = $InstallDir$ + "\" + $UninstallExecutable$
|
||||
Set $IniFile$ = $InstallDir$ + "\opsi-" + $ProductId$ + ".ini"
|
||||
|
||||
if FileExists($IniFile$)
|
||||
@ -16,8 +16,8 @@ else
|
||||
endif
|
||||
|
||||
if FileExists($IniFile$)
|
||||
Set $UninstallExec$ = GetValueFromInifile($IniFile$,"X86","UninstallExec","XXXXXXXX.exe")
|
||||
Set $UninstallProgramOld$ = $InstallDir$ + $UninstallExec$
|
||||
Set $UninstallExecutable$ = GetValueFromInifile($IniFile$,"X86","UninstallExecutable","XXXXXXXX.exe")
|
||||
Set $UninstallProgramOld$ = $InstallDir$ + "\" + $UninstallExecutable$
|
||||
if FileExists($UninstallProgramOld$)
|
||||
comment "Uninstall program found, starting uninstall"
|
||||
Winbatch_uninstall_old
|
||||
|
@ -7,7 +7,6 @@
|
||||
requiredWinstVersion >= "4.11.4.6"
|
||||
ScriptErrorMessages=off
|
||||
|
||||
DefVar $UninstallExec$
|
||||
DefVar $UninstallProgramOld$
|
||||
DefVar $IniFile$
|
||||
DefVar $IniCfgFile$
|
||||
|
@ -7,7 +7,6 @@
|
||||
requiredWinstVersion >= "4.11.4.6"
|
||||
ScriptErrorMessages=off
|
||||
|
||||
DefVar $UninstallExec$
|
||||
DefVar $UninstallProgramOld$
|
||||
DefVar $IniFile$
|
||||
DefVar $IniCfgFile$
|
||||
|
@ -33,6 +33,6 @@ WINST_NAME[0]="ProgramExecutable"
|
||||
WINST_VALUE[0]="Telegram.exe"
|
||||
|
||||
OPSI_INI_SECTION[0]="X86"
|
||||
OPSI_INI_OPTION[0]="UninstallProgram"
|
||||
OPSI_INI_OPTION[0]="UninstallExecutable"
|
||||
OPSI_INI_VALUE[0]="unins000.exe"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user