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