]> git.lyx.org Git - features.git/commitdiff
Win installer: several fixes
authorUwe Stöhr <uwestoehr@lyx.org>
Fri, 12 Feb 2016 01:52:36 +0000 (02:52 +0100)
committerUwe Stöhr <uwestoehr@lyx.org>
Fri, 12 Feb 2016 01:52:36 +0000 (02:52 +0100)
- fix broken weblinks
- remove unused includes

development/Win32/packaging/installer/include/declarations.nsh
development/Win32/packaging/installer/include/init.nsh
development/Win32/packaging/installer/include/nsis.nsh
development/Win32/packaging/installer/include/variables.nsh
development/Win32/packaging/installer/setup/configure.nsh

index 9be495351d137bf66cd2b6d84253bde3ece89acf..6657ffc4cbcd40267208616fd05a03bcb59eeb1c 100644 (file)
@@ -57,7 +57,7 @@ Configuration of LyX installer
 !define APP_WEBPAGE_INFO "${APP_NAME} Website"
 !define APP_WIKI "http://wiki.lyx.org"
 !define APP_WIKI_INFO "${APP_NAME} Wiki"
-!define APP_COPYRIGHT "LyX is Copyright © 1995 by Matthias Ettrich, 1995-2014 by the LyX Team"
+!define APP_COPYRIGHT "LyX is Copyright © 1995 by Matthias Ettrich, 1995-2016 by the LyX Team"
 
 !define APP_RUN "bin\lyx.exe"
 !define BIN_LYX "lyx.exe"
@@ -101,8 +101,3 @@ Configuration of LyX installer
 
 !define BIN_LATEX "latex.exe"
 !define BIN_BIBTEXEDITOR "JabRef.exe"
-
-#--------------------------------
-# Custom NSIS plug-ins
-
-!addplugindir "${FILES_NSISPLUGINS}"
index f4ceacbfa22bec0f59c31c912c76333f2b256490..11415db27ca438c3b138b939c40ffc196f685032 100644 (file)
@@ -583,19 +583,6 @@ SectionGroupEnd
 !insertmacro MUI_FUNCTION_DESCRIPTION_END
 
 
-#--------------------------------
-# Installer initialization
-
-!macro PRINTER_INIT
-
-  ${If} ${AtLeastWinVista}
-    StrCpy $PrinterConf "printui.exe"
-  ${Else}
-    StrCpy $PrinterConf "rundll32.exe printui.dll,PrintUIEntry"
-  ${EndIf}
-
-!macroend
-
 # .onInit must be here after the section definition because we have to set
 # the selection states of the dictionary sections
 Function .onInit
@@ -631,10 +618,10 @@ Function .onInit
   # Abort
   #${endif}
   
-  # read the use and computer name
+  # read the user and computer name
   ReadRegStr $ComputerName HKLM "System\CurrentControlSet\Control\ComputerName\ActiveComputerName" "ComputerName"
   System::Call "advapi32::GetUserName(t .r0, *i ${NSIS_MAX_STRLEN} r1) i.r2"
-  StrCpy $UserName $0  
+  StrCpy $UserName $0
   
   !insertmacro MULTIUSER_INIT
   
@@ -702,8 +689,6 @@ Function .onInit
    Abort
   ${endif}
 
-  !insertmacro PRINTER_INIT
-  
   # this can be reset to "true" in section SecDesktop
   StrCpy $CreateDesktopIcon "false"
   StrCpy $CreateFileAssociations "false"
@@ -1412,7 +1397,6 @@ FunctionEnd
 # this function is called at first after starting the uninstaller
 Function un.onInit
 
-  !insertmacro PRINTER_INIT
   !insertmacro MULTIUSER_UNINIT
 
   # Check that LyX is not currently running
index 0a6585d490ebf27b07108408c210cecf4d4b88cb..5e6b513f35126e1b30438af1596c5e03dff823f1 100644 (file)
@@ -26,14 +26,10 @@ Configuration of standard NSIS header files
 
 !include MUI2.nsh
 !include LogicLib.nsh
-!include StrFunc.nsh
-!include FileFunc.nsh
-!include WordFunc.nsh
 !include Sections.nsh
 !include WinVer.nsh
 !include LangFile.nsh
 !include MultiUser.nsh
-!include nsDialogs.nsh
 !include InstallOptions.nsh
 !include x64.nsh
 
@@ -50,9 +46,3 @@ Configuration of standard NSIS header files
 
 # Functions to download spell-checker and thesaurus dictionaries
 !include include\dictionaries.nsh
-
-#--------------------------------
-# Include standard functions
-
-!insertmacro RefreshShellIcons
-!insertmacro WordFind2X
index 4a263c39577186158efd2a128951e16fb381bede..0a9d64b608e8c27fd0d54d9da3fa7a46fc56a90b 100644 (file)
@@ -57,5 +57,3 @@ Var UserList
 Var UserName
 
 Var LangName
-
-Var PrinterConf
index ccf8b3a049df77769e728f684b11b843144aba6a..cd5c4fa81d4689e84e2e69f767b48af544776612 100644 (file)
@@ -47,10 +47,10 @@ Section -InstallData
   WriteRegStr SHCTX ${APP_UNINST_KEY} "UninstallString" '"$INSTDIR\${SETUP_UNINSTALLER}"'
   WriteRegStr SHCTX ${APP_UNINST_KEY} "DisplayVersion" "${APP_VERSION}"
   WriteRegStr SHCTX ${APP_UNINST_KEY} "DisplayIcon" "$INSTDIR\bin\lyx,0"
-  WriteRegStr SHCTX ${APP_UNINST_KEY} "URLUpdateInfo" "http://www.lyx.org/"
-  WriteRegStr SHCTX ${APP_UNINST_KEY} "URLInfoAbout" "http://www.lyx.org/about/"
+  WriteRegStr SHCTX ${APP_UNINST_KEY} "URLUpdateInfo" "${APP_WEBPAGE}"
+  WriteRegStr SHCTX ${APP_UNINST_KEY} "URLInfoAbout" "http://www.lyx.org/AboutLyX"
   WriteRegStr SHCTX ${APP_UNINST_KEY} "Publisher" "LyX Team"
-  WriteRegStr SHCTX ${APP_UNINST_KEY} "HelpLink" "http://www.lyx.org/internet/mailing.php"
+  WriteRegStr SHCTX ${APP_UNINST_KEY} "HelpLink" "http://www.lyx.org/MailingLists"
   WriteRegDWORD SHCTX ${APP_UNINST_KEY} "NoModify" 0x00000001
   WriteRegDWORD SHCTX ${APP_UNINST_KEY} "NoRepair" 0x00000001
   WriteRegStr SHCTX ${APP_UNINST_KEY} "StartMenu" "$SMPROGRAMS\$StartmenuFolder"