installer: fix potential serious bug

This commit is contained in:
Uwe Stöhr 2014-03-09 07:57:47 +01:00
parent d841229fae
commit 00f8bfcae5
2 changed files with 16 additions and 1 deletions

View File

@ -1,4 +1,9 @@
Changelog for LyX-207-2:
Changelog for LyX-207-3:
- fix serious bug that LyX could directly be installed to c:\programs
the uninstaller would then delete the whole c:\programs folder
Changelog for LyX-207-2:
- LyX can now be installed and uninstalled silently
(administrators can start the installer with "LyX-207-Installer-2.exe /S")
- updated to Python 2.7.6

View File

@ -14,6 +14,16 @@ Var PythonCompileReturn
Section -ProgramFiles SecProgramFiles
# if the $INSTDIR does not contain "LyX" we must add a subfolder to avoid that LyX will e.g.
# be installed directly to C:\programs - the uninstaller will then delete the whole
# C:\programs directory
StrCpy $String $INSTDIR
StrCpy $Search "LyX"
Call StrPoint # function from LyXUtils.nsh
${if} $Pointer == "-1"
StrCpy $INSTDIR "$INSTDIR\${APP_DIR}"
${endif}
!if ${SETUPTYPE} != BUNDLE
# abort the installation if no LaTeX was found but should be used
${if} $PathLaTeX == ""