From 3c9953bfe2308332597a30466a0fd3811457d948 Mon Sep 17 00:00:00 2001 From: scorpio810 Date: Tue, 11 Aug 2015 02:46:21 +0000 Subject: [PATCH] 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 --- packaging/windows/QET.nsi | 16 ++++++++-------- packaging/windows/QET64.nsi | 6 +++--- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/packaging/windows/QET.nsi b/packaging/windows/QET.nsi index 351cd4a48..320ce3387 100644 --- a/packaging/windows/QET.nsi +++ b/packaging/windows/QET.nsi @@ -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 diff --git a/packaging/windows/QET64.nsi b/packaging/windows/QET64.nsi index bbe5c4dd2..1ce26e7e4 100644 --- a/packaging/windows/QET64.nsi +++ b/packaging/windows/QET64.nsi @@ -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