[qet] [4099] Nsis installers : add Graying out Main program Section

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


Revision: 4099
Author:   scorpio810
Date:     2015-08-11 04:46:21 +0200 (Tue, 11 Aug 2015)
Log Message:
-----------
Nsis installers : add Graying out Main program Section

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-11 01:08:05 UTC (rev 4098)
+++ trunk/packaging/windows/QET.nsi	2015-08-11 02:46:21 UTC (rev 4099)
@@ -9,7 +9,11 @@
 	!include "MUI2.nsh"
 	!include "FileFunc.nsh"
 	!insertmacro Locate
+	!include FileFunc.nsh
+	!insertmacro GetParameters
+	!insertmacro GetOptions
 
+
 	
 ; MUI Settings
 ;--------------------------------
@@ -67,7 +71,7 @@
 
 	!insertmacro MUI_PAGE_WELCOME
 	!insertmacro MUI_PAGE_LICENSE "files\LICENSE"
-	!insertmacro MUI_PAGE_COMPONENTS
+	!insertmacro MUI_PAGE_COMPONENTS  #todo listbox to choice components to install.
 	!insertmacro MUI_PAGE_DIRECTORY
 	!insertmacro MUI_PAGE_INSTFILES
 
@@ -111,13 +115,9 @@
 
 	!insertmacro MUI_RESERVEFILE_LANGDLL
 	
-	
-;--------------------------------
-;Components	
-
 SetOverwrite on	
 Section "Main Program"
-;SectionIn RO ; Read only, always installed
+SectionIn RO ; Read only, always installed
 
 Setoutpath "$INSTDIR\bin\"
 File "./files/bin/${SOFT_NAME}.exe"
@@ -148,7 +148,7 @@
 SectionEnd
 
 SetOverwrite on
-Section "Langs" SEC02
+Section "Lang" SEC02
   SetOutPath "$INSTDIR\lang"
   ;SetOverwrite try
   File "./files/lang/*.qm"
@@ -271,7 +271,7 @@
 	DeleteRegKey HKEY_CLASSES_ROOT "qet_element_file"
 	
 	IfFileExists "$INSTDIR" 0 NoErrorMsg
-	MessageBox MB_OK "Note: $INSTDIR could not be removed!" IDOK 0 ; skipped if file doesn't exist
+	;MessageBox MB_OK "Note: $INSTDIR could not be removed!" IDOK 0 ; skipped if file doesn't exist
 	NoErrorMsg:
 SectionEnd
 

Modified: trunk/packaging/windows/QET64.nsi
===================================================================
--- trunk/packaging/windows/QET64.nsi	2015-08-11 01:08:05 UTC (rev 4098)
+++ trunk/packaging/windows/QET64.nsi	2015-08-11 02:46:21 UTC (rev 4099)
@@ -122,7 +122,7 @@
 
 SetOverwrite on	
 Section "Main Program"
-;SectionIn RO ; Read only, always installed
+SectionIn RO ; Read only, always installed
 
 Setoutpath "$INSTDIR\bin\"
 File "./files/bin/${SOFT_NAME}.exe"
@@ -153,7 +153,7 @@
 SectionEnd
 
 SetOverwrite on
-Section "Langs" SEC02
+Section "Lang" SEC02
   SetOutPath "$INSTDIR\lang"
   ;SetOverwrite try
   File "./files/lang/*.qm"
@@ -288,7 +288,7 @@
 	DeleteRegKey HKEY_CLASSES_ROOT "qet_element_file"
 	
 	IfFileExists "$INSTDIR" 0 NoErrorMsg
-	MessageBox MB_OK "Note: $INSTDIR could not be removed!" IDOK 0 ; skipped if file doesn't exist
+	;MessageBox MB_OK "Note: $INSTDIR could not be removed!" IDOK 0 ; skipped if file doesn't exist
 	NoErrorMsg:
 SectionEnd
 


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