mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2026-02-11 02:39:59 +01:00
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:
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user