mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2026-05-19 19:29:58 +02: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 "MUI2.nsh"
|
||||||
!include "FileFunc.nsh"
|
!include "FileFunc.nsh"
|
||||||
!insertmacro Locate
|
!insertmacro Locate
|
||||||
|
!include FileFunc.nsh
|
||||||
|
!insertmacro GetParameters
|
||||||
|
!insertmacro GetOptions
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
; MUI Settings
|
; MUI Settings
|
||||||
@@ -67,7 +71,7 @@
|
|||||||
|
|
||||||
!insertmacro MUI_PAGE_WELCOME
|
!insertmacro MUI_PAGE_WELCOME
|
||||||
!insertmacro MUI_PAGE_LICENSE "files\LICENSE"
|
!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_DIRECTORY
|
||||||
!insertmacro MUI_PAGE_INSTFILES
|
!insertmacro MUI_PAGE_INSTFILES
|
||||||
|
|
||||||
@@ -111,13 +115,9 @@
|
|||||||
|
|
||||||
!insertmacro MUI_RESERVEFILE_LANGDLL
|
!insertmacro MUI_RESERVEFILE_LANGDLL
|
||||||
|
|
||||||
|
|
||||||
;--------------------------------
|
|
||||||
;Components
|
|
||||||
|
|
||||||
SetOverwrite on
|
SetOverwrite on
|
||||||
Section "Main Program"
|
Section "Main Program"
|
||||||
;SectionIn RO ; Read only, always installed
|
SectionIn RO ; Read only, always installed
|
||||||
|
|
||||||
Setoutpath "$INSTDIR\bin\"
|
Setoutpath "$INSTDIR\bin\"
|
||||||
File "./files/bin/${SOFT_NAME}.exe"
|
File "./files/bin/${SOFT_NAME}.exe"
|
||||||
@@ -148,7 +148,7 @@ Section "Elements" SEC01
|
|||||||
SectionEnd
|
SectionEnd
|
||||||
|
|
||||||
SetOverwrite on
|
SetOverwrite on
|
||||||
Section "Langs" SEC02
|
Section "Lang" SEC02
|
||||||
SetOutPath "$INSTDIR\lang"
|
SetOutPath "$INSTDIR\lang"
|
||||||
;SetOverwrite try
|
;SetOverwrite try
|
||||||
File "./files/lang/*.qm"
|
File "./files/lang/*.qm"
|
||||||
@@ -271,7 +271,7 @@ Section "Uninstall"
|
|||||||
DeleteRegKey HKEY_CLASSES_ROOT "qet_element_file"
|
DeleteRegKey HKEY_CLASSES_ROOT "qet_element_file"
|
||||||
|
|
||||||
IfFileExists "$INSTDIR" 0 NoErrorMsg
|
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:
|
NoErrorMsg:
|
||||||
SectionEnd
|
SectionEnd
|
||||||
|
|
||||||
|
|||||||
@@ -122,7 +122,7 @@ LangString wrongArch ${LANG_FRENCH} "Ce programme est pour Windows ${PROC} bits
|
|||||||
|
|
||||||
SetOverwrite on
|
SetOverwrite on
|
||||||
Section "Main Program"
|
Section "Main Program"
|
||||||
;SectionIn RO ; Read only, always installed
|
SectionIn RO ; Read only, always installed
|
||||||
|
|
||||||
Setoutpath "$INSTDIR\bin\"
|
Setoutpath "$INSTDIR\bin\"
|
||||||
File "./files/bin/${SOFT_NAME}.exe"
|
File "./files/bin/${SOFT_NAME}.exe"
|
||||||
@@ -153,7 +153,7 @@ Section "Elements" SEC01
|
|||||||
SectionEnd
|
SectionEnd
|
||||||
|
|
||||||
SetOverwrite on
|
SetOverwrite on
|
||||||
Section "Langs" SEC02
|
Section "Lang" SEC02
|
||||||
SetOutPath "$INSTDIR\lang"
|
SetOutPath "$INSTDIR\lang"
|
||||||
;SetOverwrite try
|
;SetOverwrite try
|
||||||
File "./files/lang/*.qm"
|
File "./files/lang/*.qm"
|
||||||
@@ -288,7 +288,7 @@ Section "Uninstall"
|
|||||||
DeleteRegKey HKEY_CLASSES_ROOT "qet_element_file"
|
DeleteRegKey HKEY_CLASSES_ROOT "qet_element_file"
|
||||||
|
|
||||||
IfFileExists "$INSTDIR" 0 NoErrorMsg
|
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:
|
NoErrorMsg:
|
||||||
SectionEnd
|
SectionEnd
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user