Nsis installers : add Graying out Main program Section

git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@4099 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
scorpio810
2015-08-11 02:46:21 +00:00
parent 6dca3436d2
commit 3c9953bfe2
2 changed files with 11 additions and 11 deletions

View File

@@ -9,6 +9,10 @@
!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 @@ Section "Elements" SEC01
SectionEnd
SetOverwrite on
Section "Langs" SEC02
Section "Lang" SEC02
SetOutPath "$INSTDIR\lang"
;SetOverwrite try
File "./files/lang/*.qm"
@@ -271,7 +271,7 @@ Section "Uninstall"
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

View File

@@ -122,7 +122,7 @@ LangString wrongArch ${LANG_FRENCH} "Ce programme est pour Windows ${PROC} bits
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 @@ Section "Elements" SEC01
SectionEnd
SetOverwrite on
Section "Langs" SEC02
Section "Lang" SEC02
SetOutPath "$INSTDIR\lang"
;SetOverwrite try
File "./files/lang/*.qm"
@@ -288,7 +288,7 @@ Section "Uninstall"
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