Add missing declaration

This commit is contained in:
Mario Fetka 2019-09-25 05:09:56 +02:00
parent a3b08acceb
commit a561404a63
4 changed files with 4 additions and 6 deletions

View File

@ -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

View File

@ -7,7 +7,6 @@
requiredWinstVersion >= "4.11.4.6"
ScriptErrorMessages=off
DefVar $UninstallExec$
DefVar $UninstallProgramOld$
DefVar $IniFile$
DefVar $IniCfgFile$

View File

@ -7,7 +7,6 @@
requiredWinstVersion >= "4.11.4.6"
ScriptErrorMessages=off
DefVar $UninstallExec$
DefVar $UninstallProgramOld$
DefVar $IniFile$
DefVar $IniCfgFile$

View File

@ -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"