installer: fix support for MiKTeX 2.8

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@31937 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Uwe Stöhr 2009-11-10 22:12:45 +00:00
parent 27402a1559
commit 7656824e6e

View File

@ -218,9 +218,15 @@ Function UpdateMiKTeX
UpdateNow:
StrCpy $0 $LaTeXPath -4 # remove "\bin"
# the update wizard is either started by the copystart.exe or the copystart_admin.exe
# the latter replaces copystart.exe since miktex-2.6.2742
# (the latter replaces copystart.exe since miktex-2.6.2742) or the miktex-update.exe
# (since MiKTeX 2.8)
ExecWait '"$LaTeXPath\copystart.exe" "$0\config\update.dat"' # run MiKTeX's update wizard
ExecWait '"$LaTeXPath\copystart_admin.exe" "$0\config\update.dat"' # run MiKTeX's update wizard
${if} $MiKTeXUser != "HKCU" # call the admin version when the user is admin
ExecWait '"$LaTeXPath\internal\miktex-update_admin.exe"' # run MiKTeX's update wizard
${else}
ExecWait '"$LaTeXPath\internal\miktex-update.exe"' # run MiKTeX's update wizard
${endif}
UpdateLater:
${endif}