[qet] [4098] Nsis installer : add components pages

[ Thread Index | Date Index | More lists.tuxfamily.org/qet Archives ]


Revision: 4098
Author:   scorpio810
Date:     2015-08-11 03:08:05 +0200 (Tue, 11 Aug 2015)
Log Message:
-----------
Nsis installer : add components pages

Modified Paths:
--------------
    trunk/packaging/windows/QET.nsi
    trunk/packaging/windows/QET64.nsi

Modified: trunk/packaging/windows/QET.nsi
===================================================================
--- trunk/packaging/windows/QET.nsi	2015-08-10 17:14:51 UTC (rev 4097)
+++ trunk/packaging/windows/QET.nsi	2015-08-11 01:08:05 UTC (rev 4098)
@@ -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

Modified: trunk/packaging/windows/QET64.nsi
===================================================================
--- trunk/packaging/windows/QET64.nsi	2015-08-10 17:14:51 UTC (rev 4097)
+++ trunk/packaging/windows/QET64.nsi	2015-08-11 01:08:05 UTC (rev 4098)
@@ -72,7 +72,7 @@
 
 	!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 @@
 	;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


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/