]> git.lyx.org Git - features.git/commitdiff
installer: 3 fixes
authorUwe Stöhr <uwestoehr@lyx.org>
Mon, 2 Jul 2012 23:42:30 +0000 (01:42 +0200)
committerUwe Stöhr <uwestoehr@lyx.org>
Mon, 2 Jul 2012 23:42:30 +0000 (01:42 +0200)
- uninstall.nsh: don't uninstall the user preferences by default
- configure.nsh:
 - set also the .lyx file association when the user is not admin
 - fix the path in which the LyX start menu shortcut is executed

development/Win32/packaging/installer/setup/configure.nsh
development/Win32/packaging/installer/setup/install.nsh
development/Win32/packaging/installer/setup/uninstall.nsh

index 2a8093b6165870f09163f8cf34a98e2f8e388403..6d90669e31d0b1d82b9494ea267a75fc84a23a59 100644 (file)
@@ -23,6 +23,7 @@ Section -InstallData
   
   # Start Menu shortcut
   # There is only one shortcut to the application, so it should be in the main group
+  SetOutPath "$INSTDIR\bin" # this is the folder in which the shortcut is executed
   CreateDirectory "$SMPROGRAMS\$StartmenuFolder"
   CreateShortCut "$SMPROGRAMS\$StartmenuFolder\${APP_NAME}.lnk" "$INSTDIR\${APP_RUN}" "" "$INSTDIR\${APP_RUN}" "" "" "" "${APP_INFO}"
   # create desktop icon
@@ -59,7 +60,7 @@ Section -Configure
   # Associate .lyx files with LyX for current user of all users
 
   ${if} $CreateFileAssociations == "true"
-   WriteRegStr HKLM "${APP_DIR_REGKEY}" "" "$INSTDIR\${APP_RUN}"
+   WriteRegStr SHCTX "${APP_DIR_REGKEY}" "" "$INSTDIR\${APP_RUN}"
   ${endif}
 
   # Write information about file type
index 4c5b9203176945ca04958bcc0c2ec1f0a66b4463..5b3562b39c9bb25d4b4cc8adf609839159372f73 100644 (file)
@@ -176,7 +176,7 @@ SectionEnd
 !macroend
 
 #--------------------------------
-# Extenral components
+# External components
 
 #Var PathAllUsers
 #Var PathCurrentUser
index 57cd999b3e9bbd59e283ab2f307b8ab38b65a990..2eeaa07d487c40cdcb30ce537951faa96772ff5e 100644 (file)
@@ -107,7 +107,7 @@ SectionEnd
 
 #---------------------------------
 # user preferences
-Section "un.$(UnLyXPreferencesTitle)" un.SecUnPreferences
+Section /o "un.$(UnLyXPreferencesTitle)" un.SecUnPreferences
 
  # remove LyX's config files
  StrCpy $AppSubfolder ${APP_DIR_USERDATA}
@@ -117,7 +117,7 @@ SectionEnd
 
 #---------------------------------
 # MiKTeX
-Section "un.MiKTeX" un.SecUnMiKTeX
+Section /o "un.MiKTeX" un.SecUnMiKTeX
 
  ${if} $LaTeXInstalled == "MiKTeX" # only uninstall MiKTeX when it was installed together with LyX 
   ReadRegStr $1 HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\MiKTeX ${MiKTeXDeliveredVersion}" "UninstallString"