Commit 00ed21b5 authored by Mircea Bardac's avatar Mircea Bardac

make installer compile on latest version of NSIS, port to new API


git-svn-id: svn+ssh://svn.psi-im.org/home/psi/svn/win-installer/trunk@27 2d3a5ac0-73f9-4639-b284-2310bd1da355
parent 2b02e190
...@@ -139,6 +139,7 @@ InstallDirRegKey HKLM "Software\Affinix\${APPNAME}" "" ...@@ -139,6 +139,7 @@ InstallDirRegKey HKLM "Software\Affinix\${APPNAME}" ""
!define MUI_LANGDLL_REGISTRY_VALUENAME "Installer Language" !define MUI_LANGDLL_REGISTRY_VALUENAME "Installer Language"
PAGE custom InitRoutines PAGE custom InitRoutines
!define MUI_PAGE_CUSTOMFUNCTION_SHOW CompNames
!insertmacro MUI_PAGE_WELCOME !insertmacro MUI_PAGE_WELCOME
!insertmacro MUI_PAGE_LICENSE "${APP_SOURCE}\COPYING" !insertmacro MUI_PAGE_LICENSE "${APP_SOURCE}\COPYING"
!insertmacro MUI_PAGE_COMPONENTS !insertmacro MUI_PAGE_COMPONENTS
...@@ -170,7 +171,7 @@ WriteINIStr "$INSTDIR\${URLFile}.url" "InternetShortcut" "URL" "${URLSite}" ...@@ -170,7 +171,7 @@ WriteINIStr "$INSTDIR\${URLFile}.url" "InternetShortcut" "URL" "${URLSite}"
;********************************* ;*********************************
; Sections of the installer ; Sections of the installer
Section "!$LSTR_PSIBASE" SectionBase Section "" SectionBase
; Set Section properties ; Set Section properties
SetOverwrite on SetOverwrite on
SectionIn RO SectionIn RO
...@@ -187,13 +188,13 @@ SectionEnd ...@@ -187,13 +188,13 @@ SectionEnd
; ******************************** ; ********************************
!ifdef BUILD_WITH_LANGPACKS !ifdef BUILD_WITH_LANGPACKS
SubSection "$LSTR_LANGUAGES" SectionLang SectionGroup "_" SectionLang
!include "${APP_BUILD}psi_lang_install.nsh" !include "${APP_BUILD}psi_lang_install.nsh"
; See ReadME.txt for more information ; See ReadME.txt for more information
SubSectionEnd SectionGroupEnd
!endif !endif
Section "$LSTR_STARTMENU_GROUP ($INST_CONTEXT)" SectionSM Section "" SectionSM
StrCmp $RUN_BY_ADMIN "true" sm_admin StrCmp $RUN_BY_ADMIN "true" sm_admin
sm_normal: sm_normal:
SetShellVarContext current SetShellVarContext current
...@@ -213,20 +214,20 @@ Section "$LSTR_STARTMENU_GROUP ($INST_CONTEXT)" SectionSM ...@@ -213,20 +214,20 @@ Section "$LSTR_STARTMENU_GROUP ($INST_CONTEXT)" SectionSM
SectionEnd SectionEnd
; ******************************** ; ********************************
SubSection "$LSTR_SHORTCUTS ($LSTR_CURRENTUSER)" SectionShortcuts SectionGroup "_" SectionShortcuts
Section "$LSTR_DESKTOP_S" SectionSD Section "" SectionSD
SetShellVarContext current SetShellVarContext current
SetOutPath "$INSTDIR\" SetOutPath "$INSTDIR\"
CreateShortCut "$DESKTOP\Psi.lnk" "$INSTDIR\Psi.exe" CreateShortCut "$DESKTOP\Psi.lnk" "$INSTDIR\Psi.exe"
SectionEnd SectionEnd
Section /o "$LSTR_QUICKLAUNCH" SectionQuickLaunch Section /o "" SectionQuickLaunch
SetShellVarContext current SetShellVarContext current
SetOutPath "$INSTDIR\" SetOutPath "$INSTDIR\"
CreateShortCut "$QUICKLAUNCH\Psi.lnk" "$INSTDIR\Psi.exe" CreateShortCut "$QUICKLAUNCH\Psi.lnk" "$INSTDIR\Psi.exe"
SectionEnd SectionEnd
SubSectionEnd SectionGroupEnd
Section "$LSTR_AUTOSTART ($LSTR_CURRENTUSER)" SectionAutomaticStartup Section "" SectionAutomaticStartup
SetShellVarContext current SetShellVarContext current
SetOutPath "$INSTDIR\" SetOutPath "$INSTDIR\"
CreateShortCut "$SMSTARTUP\Psi.lnk" "$INSTDIR\Psi.exe" CreateShortCut "$SMSTARTUP\Psi.lnk" "$INSTDIR\Psi.exe"
...@@ -251,6 +252,19 @@ Section -FinishSection ...@@ -251,6 +252,19 @@ Section -FinishSection
WriteUninstaller "$INSTDIR\uninstall.exe" WriteUninstaller "$INSTDIR\uninstall.exe"
SectionEnd SectionEnd
Function CompNames
SectionSetText ${SectionBase} "$LSTR_PSIBASE"
!ifdef BUILD_WITH_LANGPACKS
SectionSetText ${SectionLang} "$LSTR_LANGUAGES"
!endif
SectionSetText ${SectionSM} "$LSTR_STARTMENU_GROUP ($INST_CONTEXT)"
SectionSetText ${SectionShortcuts} "$LSTR_SHORTCUTS ($LSTR_CURRENTUSER)"
SectionSetText ${SectionSD} "$LSTR_DESKTOP_S"
SectionSetText ${SectionQuickLaunch} "$LSTR_QUICKLAUNCH"
SectionSetText ${SectionAutomaticStartup} "$LSTR_AUTOSTART ($LSTR_CURRENTUSER)"
FunctionEnd
; *************************************** ; ***************************************
; installer initialization ; installer initialization
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment