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