mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-24 11:20:52 +01:00
Nsis installer : add components pages
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@4098 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -67,7 +67,7 @@
|
||||
|
||||
!insertmacro MUI_PAGE_WELCOME
|
||||
!insertmacro MUI_PAGE_LICENSE "files\LICENSE"
|
||||
;!insertmacro MUI_PAGE_COMPONENTS #todo listbox to choice components to install.
|
||||
!insertmacro MUI_PAGE_COMPONENTS
|
||||
!insertmacro MUI_PAGE_DIRECTORY
|
||||
!insertmacro MUI_PAGE_INSTFILES
|
||||
|
||||
@@ -110,16 +110,68 @@
|
||||
;because this will make your installer start faster.
|
||||
|
||||
!insertmacro MUI_RESERVEFILE_LANGDLL
|
||||
|
||||
|
||||
;--------------------------------
|
||||
;Components
|
||||
|
||||
SetOverwrite on
|
||||
Section "Main Program"
|
||||
;SectionIn RO ; Read only, always installed
|
||||
|
||||
Setoutpath "$INSTDIR\bin\"
|
||||
File "./files/bin/${SOFT_NAME}.exe"
|
||||
|
||||
Setoutpath "$INSTDIR"
|
||||
File "./files/ChangeLog"
|
||||
File "./files/CREDIT"
|
||||
File "./files/ELEMENTS.LICENSE"
|
||||
File "./files/LICENSE"
|
||||
File "./files/qet_uninstall_file_associations.reg"
|
||||
File "./files/README"
|
||||
File "./files/register_filetypes.bat"
|
||||
File "Lancer QET.bat"
|
||||
|
||||
SetOutPath "$INSTDIR"
|
||||
File /r "./files/ico"
|
||||
|
||||
SetOutPath "$INSTDIR"
|
||||
File /r "./files/conf"
|
||||
|
||||
SectionEnd
|
||||
|
||||
SetOverwrite on
|
||||
Section "Elements" SEC01
|
||||
SetOutPath "$INSTDIR"
|
||||
;SetOverwrite try
|
||||
File /r "./files/elements"
|
||||
SectionEnd
|
||||
|
||||
SetOverwrite on
|
||||
Section "Langs" SEC02
|
||||
SetOutPath "$INSTDIR\lang"
|
||||
;SetOverwrite try
|
||||
File "./files/lang/*.qm"
|
||||
SectionEnd
|
||||
|
||||
SetOverwrite on
|
||||
Section "Titleblocks" SEC03
|
||||
SetOutPath "$INSTDIR"
|
||||
;SetOverwrite try
|
||||
File /r "./files/titleblocks"
|
||||
SectionEnd
|
||||
|
||||
SetOverwrite on
|
||||
Section "Examples" SEC04
|
||||
SetOutPath "$INSTDIR"
|
||||
;SetOverwrite try
|
||||
File /r "./files/examples"
|
||||
SectionEnd
|
||||
;--------------------------------
|
||||
;Installer Sections
|
||||
|
||||
Section ""
|
||||
SetOutPath "$INSTDIR"
|
||||
; copy every files in the "files" directory, except the ready-to-use .bat file
|
||||
File /nonfatal /r /x "files\Lancer QET.bat" /x ".svn" "files\*"
|
||||
; add the use-APPDATA .bat file
|
||||
File "Lancer QET.bat"
|
||||
;Store installation folder
|
||||
WriteRegStr HKCU "Software\${SOFT_NAME}" "" $INSTDIR
|
||||
; write uninstall strings
|
||||
|
||||
@@ -72,7 +72,7 @@ LangString wrongArch ${LANG_FRENCH} "Ce programme est pour Windows ${PROC} bits
|
||||
|
||||
!insertmacro MUI_PAGE_WELCOME
|
||||
!insertmacro MUI_PAGE_LICENSE "files\LICENSE"
|
||||
;!insertmacro MUI_PAGE_COMPONENTS
|
||||
!insertmacro MUI_PAGE_COMPONENTS
|
||||
!insertmacro MUI_PAGE_DIRECTORY
|
||||
!insertmacro MUI_PAGE_INSTFILES
|
||||
|
||||
@@ -115,16 +115,73 @@ LangString wrongArch ${LANG_FRENCH} "Ce programme est pour Windows ${PROC} bits
|
||||
;because this will make your installer start faster.
|
||||
|
||||
!insertmacro MUI_RESERVEFILE_LANGDLL
|
||||
|
||||
|
||||
;--------------------------------
|
||||
;Components
|
||||
|
||||
SetOverwrite on
|
||||
Section "Main Program"
|
||||
;SectionIn RO ; Read only, always installed
|
||||
|
||||
Setoutpath "$INSTDIR\bin\"
|
||||
File "./files/bin/${SOFT_NAME}.exe"
|
||||
|
||||
Setoutpath "$INSTDIR"
|
||||
File "./files/ChangeLog"
|
||||
File "./files/CREDIT"
|
||||
File "./files/ELEMENTS.LICENSE"
|
||||
File "./files/LICENSE"
|
||||
File "./files/qet_uninstall_file_associations.reg"
|
||||
File "./files/README"
|
||||
File "./files/register_filetypes.bat"
|
||||
File "Lancer QET.bat"
|
||||
|
||||
SetOutPath "$INSTDIR"
|
||||
File /r "./files/ico"
|
||||
|
||||
SetOutPath "$INSTDIR"
|
||||
File /r "./files/conf"
|
||||
|
||||
SectionEnd
|
||||
|
||||
SetOverwrite on
|
||||
Section "Elements" SEC01
|
||||
SetOutPath "$INSTDIR"
|
||||
;SetOverwrite try
|
||||
File /r "./files/elements"
|
||||
SectionEnd
|
||||
|
||||
SetOverwrite on
|
||||
Section "Langs" SEC02
|
||||
SetOutPath "$INSTDIR\lang"
|
||||
;SetOverwrite try
|
||||
File "./files/lang/*.qm"
|
||||
SectionEnd
|
||||
|
||||
SetOverwrite on
|
||||
Section "Titleblocks" SEC03
|
||||
SetOutPath "$INSTDIR"
|
||||
;SetOverwrite try
|
||||
File /r "./files/titleblocks"
|
||||
SectionEnd
|
||||
|
||||
SetOverwrite on
|
||||
Section "Examples" SEC04
|
||||
SetOutPath "$INSTDIR"
|
||||
;SetOverwrite try
|
||||
File /r "./files/examples"
|
||||
SectionEnd
|
||||
|
||||
|
||||
;--------------------------------
|
||||
;Installer Sections
|
||||
|
||||
;--------------------------------
|
||||
;Installer Sections
|
||||
|
||||
Section ""
|
||||
SetOutPath "$INSTDIR"
|
||||
; copy every files in the "files" directory, except the ready-to-use .bat file
|
||||
File /nonfatal /r /x "files\Lancer QET.bat" /x ".svn" "files\*"
|
||||
; add the use-APPDATA .bat file
|
||||
File "Lancer QET.bat"
|
||||
;Store installation folder
|
||||
WriteRegStr HKCU "Software\${SOFT_NAME}" "" $INSTDIR
|
||||
; write uninstall strings
|
||||
|
||||
Reference in New Issue
Block a user