Commit c05cc700 authored by Mircea Bardac's avatar Mircea Bardac

transition to variables holding the installer paths


git-svn-id: svn+ssh://svn.psi-im.org/home/psi/svn/win-installer/trunk@14 2d3a5ac0-73f9-4639-b284-2310bd1da355
parent 56508b19
...@@ -108,9 +108,14 @@ var LSTR_ERR_UNINST ...@@ -108,9 +108,14 @@ var LSTR_ERR_UNINST
BrandingText "- ${APPNAMEANDVERSION} installer - build ${INSTALLER_BUILD} / Installer Script Source ver. ${INSTALLER_VERSION} (c) 2004-2005 Mircea Bardac (IceRAM) " BrandingText "- ${APPNAMEANDVERSION} installer - build ${INSTALLER_BUILD} / Installer Script Source ver. ${INSTALLER_VERSION} (c) 2004-2005 Mircea Bardac (IceRAM) "
!define HOME_URL "http://psi.affinix.com/" !define HOME_URL "http://psi.affinix.com/"
!define INSTALLER_SOURCE "C:\dev\psi_installer" !define INSTALLER_HOME "C:\dev\psi_installer"
; Main Install settings ; Main Install settings
!define FILE_SEPARATOR "/"
!define APP_BUILD "${INSTALLER_HOME}${FILE_SEPARATOR}build${FILE_SEPARATOR}"
!define INSTALLER_SRC "${INSTALLER_HOME}${FILE_SEPARATOR}src${FILE_SEPARATOR}"
!define APP_SOURCE "${APP_BUILD}psi_app${FILE_SEPARATOR}"
Name "${APPNAMEANDVERSION}" Name "${APPNAMEANDVERSION}"
InstallDir "$PROGRAMFILES\Psi" InstallDir "$PROGRAMFILES\Psi"
!ifdef LANG_TEST_BUILD !ifdef LANG_TEST_BUILD
...@@ -130,14 +135,14 @@ InstallDirRegKey HKLM "Software\Affinix\${APPNAME}" "" ...@@ -130,14 +135,14 @@ InstallDirRegKey HKLM "Software\Affinix\${APPNAME}" ""
;-------------------------------- ;--------------------------------
;Page settings ;Page settings
!define MUI_ICON "${INSTALLER_SOURCE}\install.ico" !define MUI_ICON "${INSTALLER_HOME}\install.ico"
!define MUI_UNICON "${INSTALLER_SOURCE}\uninstall.ico" !define MUI_UNICON "${INSTALLER_HOME}\uninstall.ico"
!define MUI_HEADERIMAGE !define MUI_HEADERIMAGE
!define MUI_HEADERIMAGE_BITMAP "${INSTALLER_SOURCE}\psi-header-l.bmp" !define MUI_HEADERIMAGE_BITMAP "${INSTALLER_HOME}\psi-header-l.bmp"
!define MUI_HEADERIMAGE_BITMAP_RTL "${INSTALLER_SOURCE}\psi-header-r.bmp" !define MUI_HEADERIMAGE_BITMAP_RTL "${INSTALLER_HOME}\psi-header-r.bmp"
!define MUI_HEADERIMAGE_UNBITMAP "${INSTALLER_SOURCE}\psi-header-l.bmp" !define MUI_HEADERIMAGE_UNBITMAP "${INSTALLER_HOME}\psi-header-l.bmp"
!define MUI_HEADERIMAGE_UNBITMAP_RTL "${INSTALLER_SOURCE}\psi-header-r.bmp" !define MUI_HEADERIMAGE_UNBITMAP_RTL "${INSTALLER_HOME}\psi-header-r.bmp"
!define MUI_ABORTWARNING !define MUI_ABORTWARNING
!define MUI_COMPONENTSPAGE_NODESC !define MUI_COMPONENTSPAGE_NODESC
...@@ -148,8 +153,8 @@ InstallDirRegKey HKLM "Software\Affinix\${APPNAME}" "" ...@@ -148,8 +153,8 @@ InstallDirRegKey HKLM "Software\Affinix\${APPNAME}" ""
!define MUI_FINISHPAGE_LINK "Click here to visit the Psi Homepage" !define MUI_FINISHPAGE_LINK "Click here to visit the Psi Homepage"
!define MUI_FINISHPAGE_LINK_LOCATION "http://psi.affinix.com/" !define MUI_FINISHPAGE_LINK_LOCATION "http://psi.affinix.com/"
!define MUI_WELCOMEFINISHPAGE_BITMAP "${INSTALLER_SOURCE}\psi-l.bmp" !define MUI_WELCOMEFINISHPAGE_BITMAP "${INSTALLER_HOME}\psi-l.bmp"
!define MUI_UNWELCOMEFINISHPAGE_BITMAP "${INSTALLER_SOURCE}\psi-l.bmp" !define MUI_UNWELCOMEFINISHPAGE_BITMAP "${INSTALLER_HOME}\psi-l.bmp"
;!define MUI_LICENSEPAGE_CHECKBOX ;!define MUI_LICENSEPAGE_CHECKBOX
;-------------------------------- ;--------------------------------
...@@ -162,7 +167,7 @@ InstallDirRegKey HKLM "Software\Affinix\${APPNAME}" "" ...@@ -162,7 +167,7 @@ InstallDirRegKey HKLM "Software\Affinix\${APPNAME}" ""
PAGE custom InitRoutines PAGE custom InitRoutines
!insertmacro MUI_PAGE_WELCOME !insertmacro MUI_PAGE_WELCOME
!insertmacro MUI_PAGE_LICENSE "${INSTALLER_SOURCE}\psi_app\COPYING" !insertmacro MUI_PAGE_LICENSE "${INSTALLER_HOME}\psi_app\COPYING"
!insertmacro MUI_PAGE_COMPONENTS !insertmacro MUI_PAGE_COMPONENTS
!insertmacro MUI_PAGE_DIRECTORY !insertmacro MUI_PAGE_DIRECTORY
!insertmacro MUI_PAGE_INSTFILES !insertmacro MUI_PAGE_INSTFILES
...@@ -201,7 +206,7 @@ Section "!$LSTR_PSIBASE" SectionBase ...@@ -201,7 +206,7 @@ Section "!$LSTR_PSIBASE" SectionBase
!include "psi_files_install.nsi" !include "psi_files_install.nsi"
!else !else
SetOutPath "$INSTDIR\" SetOutPath "$INSTDIR\"
File "${INSTALLER_SOURCE}\psi_app\COPYING" ;install only one file when LANG_TEST_BUILD File "${INSTALLER_HOME}\psi_app\COPYING" ;install only one file when LANG_TEST_BUILD
!endif !endif
SetOutPath "$INSTDIR\" SetOutPath "$INSTDIR\"
!insertmacro "CreateURL" "Psi - Home page" "http://psi.affinix.com/" !insertmacro "CreateURL" "Psi - Home page" "http://psi.affinix.com/"
......
...@@ -44,7 +44,7 @@ for lang in sorted(langlist.keys()): ...@@ -44,7 +44,7 @@ for lang in sorted(langlist.keys()):
flanginst.write("Section /o \""+lang+"\" "+sectionid+"\n") flanginst.write("Section /o \""+lang+"\" "+sectionid+"\n")
flanginst.write("\tSetOverwrite on\n") flanginst.write("\tSetOverwrite on\n")
flanginst.write("\tSetOutPath \"$INSTDIR\\\"\n") flanginst.write("\tSetOutPath \"$INSTDIR\\\"\n")
flanginst.write("\tFile \"${INSTALLER_SOURCE}\\psi_lang\\"+filename+"\"\n") flanginst.write("\tFile \"${INSTALLER_HOME}\\psi_lang\\"+filename+"\"\n")
flanginst.write("SectionEnd\n\n") flanginst.write("SectionEnd\n\n")
flanguninst.write("\tDelete \"$INSTDIR\\"+filename+"\"\n") flanguninst.write("\tDelete \"$INSTDIR\\"+filename+"\"\n")
if langid!="": if langid!="":
......
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