From 9ae345346d2edd7cc6277ece2afc2f366e6e7651 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Uwe=20St=C3=B6hr?= Date: Sat, 9 Oct 2010 15:39:52 +0000 Subject: [PATCH] installer: - use MiKTeX's update program in admin mode if user is admin - update to Python 2.6.6 git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@35581 a592a061-630c-0410-9148-cb99ea01b6c8 --- development/Win32/packaging/AltInstaller/ChangeLog.txt | 1 + development/Win32/packaging/AltInstaller/LaTeX.nsh | 6 +++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/development/Win32/packaging/AltInstaller/ChangeLog.txt b/development/Win32/packaging/AltInstaller/ChangeLog.txt index 8fdb1d5ffe..ea96fb6a32 100644 --- a/development/Win32/packaging/AltInstaller/ChangeLog.txt +++ b/development/Win32/packaging/AltInstaller/ChangeLog.txt @@ -2,6 +2,7 @@ - LyX 1.6.8 - updated to eLyXer 1.0.2 - updated to ImageMagick 6.6.x-y +- updated to Python 2.6.6 Version 4.25 diff --git a/development/Win32/packaging/AltInstaller/LaTeX.nsh b/development/Win32/packaging/AltInstaller/LaTeX.nsh index da930a192d..991a88170c 100644 --- a/development/Win32/packaging/AltInstaller/LaTeX.nsh +++ b/development/Win32/packaging/AltInstaller/LaTeX.nsh @@ -180,7 +180,11 @@ Function ConfigureMiKTeX File /r "${DVIPostFileDir}" # refresh MiKTeX's file name database - ExecWait "$LaTeXPath\initexmf --update-fndb" + ${if} $MiKTeXUser != "HKCU" # call the admin version when the user is admin + ExecWait "$LaTeXPath\initexmf --admin --update-fndb" + ${else} + ExecWait "$LaTeXPath\initexmf --update-fndb" + ${endif} # enable package installation without asking (1 = Yes, 0 = No, 2 = Ask me first) WriteRegStr HKCU "SOFTWARE\MiKTeX.org\MiKTeX\$MiKTeXVersion\MPM" "AutoInstall" "1" # if only for current user