installer:

- fix bug that LyX's LaTeX files were tried to install although the user denied to use LaTeX.nsh
- propose to add a desktop item for LyX (can be switched off by the user)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39584 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Uwe Stöhr 2011-09-05 07:20:53 +00:00
parent 857ae16318
commit ad0ebcdb1d
2 changed files with 4 additions and 1 deletions

View File

@ -146,6 +146,8 @@ Function ConfigureMiKTeX
# installs the LaTeX class files that are delivered with LyX
# and enable MiKTeX's automatic package installation
# install LyX's LaTeX class and style files
${if} $PathLaTeX != ""
${if} $MultiUser.Privileges != "Admin"
${orif} $MultiUser.Privileges != "Power"
StrCpy $PathLaTeXLocal "$PathLaTeX" -11 # delete "\miktex\bin"
@ -170,6 +172,7 @@ Function ConfigureMiKTeX
${endif}
Pop $UpdateFNDBReturn # Return value
${endif}
${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

View File

@ -199,7 +199,7 @@ SectionEnd
Section "$(SecFileAssocTitle)" SecFileAssoc
StrCpy $CreateFileAssociations "true"
SectionEnd
Section /o "$(SecDesktopTitle)" SecDesktop
Section "$(SecDesktopTitle)" SecDesktop
StrCpy $CreateDesktopIcon "true"
SectionEnd