changeset 381:73bfc9cc22e7

Improved NSIS installer MUI script. Added sample images and icons.
author Emanuel Schuetze <emanuel@intevation.de>
date Tue, 15 Apr 2014 14:15:21 +0200
parents 1220b741cd51
children 124f08a85532
files packaging/renameme.nsi packaging/renameme_installer.ico packaging/resources/certificate.ico packaging/resources/header-install.bmp packaging/resources/header-uninstall.bmp packaging/resources/install.ico packaging/resources/uninstall.ico packaging/resources/wizard-install.bmp packaging/resources/wizard-uninstall.bmp
diffstat 9 files changed, 43 insertions(+), 14 deletions(-) [+]
line wrap: on
line diff
--- a/packaging/renameme.nsi	Tue Apr 15 12:45:20 2014 +0200
+++ b/packaging/renameme.nsi	Tue Apr 15 14:15:21 2014 +0200
@@ -46,43 +46,72 @@
 Name "${productname}"
 OutFile "${setupname}"
 InstallDir "$PROGRAMFILES\${productname_short}"
-InstType "Standard"
+BrandingText "${company} - ${productname}"
 
 ;--------------------------------
-;Interface Settings
+; Interface Settings
 
-BrandingText "${company} - ${productname}"
-; MUI Settings / Header
-!define MUI_WELCOMEPAGE_TITLE  "Willkommen bei der Installation von ${productname_short}."
-!define MUI_WELCOMEPAGE_TEXT "Sie sind im Begriff ${productname} \r\n\
-zu installieren. ${productname} ist eine Anwendung um Zertifikate TODO \r\n\
-auf ihrem System zu installieren und aktualisieren."
-;!define MUI_HEADERIMAGE_BITMAP "" ;TODO
-;!define MUI_WELCOMEFINISHPAGE_BITMAP "ressources\welcome_left.bmp" ;TODO
-!define MUI_ICON "renameme_installer.ico"
+; MUI Images / Icons
+!define MUI_HEADERIMAGE
+!define MUI_HEADERIMAGE_BITMAP "resources\header-install.bmp"
+!define MUI_HEADERIMAGE_UNBITMAP "resources\header-uninstall.bmp"
+!define MUI_WELCOMEFINISHPAGE_BITMAP "resources\wizard-install.bmp"
+!define MUI_UNWELCOMEFINISHPAGE_BITMAP "resources\wizard-uninstall.bmp"
+!define MUI_ICON "resources\install.ico"
+!define MUI_UNICON "resources\uninstall.ico"
+
+; MUI welcome page text
+!define MUI_WELCOMEPAGE_TITLE  "Willkommen bei der Installation des ${productname}"
+!define MUI_WELCOMEPAGE_TEXT "Dieser Assistent wird Sie durch die Installation von \
+${productname} begleiten. $\r$\n$\r$\n\
+Der ${productname} ist eine Anwendung um Wurzelzertifikate auf ihrem System \
+zu installieren und aktuell zu halten. $\r$\n$\r$\n\
+Klicken Sie auf Weiter, um fortzufahren."
+
+!define MUI_FINISHPAGE_NOAUTOCLOSE
+!define MUI_UNFINISHPAGE_NOAUTOCLOSE
 
 !define MUI_STARTMENUPAGE_REGISTRY_ROOT "SHCTX"
 !define MUI_STARTMENUPAGE_REGISTRY_KEY "Software\${productname_short}"
 !define MUI_STARTMENUPAGE_REGISTRY_VALUENAME "Start Menu Folder"
 
 
-!insertmacro MUI_PAGE_STARTMENU Application $StartMenuFolder
+;--------------------------------
+; Pages
 
+!define MUI_FINISHPAGE_TITLE  "Die Installation war erfolgreich"
+!define MUI_FINISHPAGE_TEXT  "Der ${productname} wurde auf Ihrem \
+Computer installliert. $\r$\n$\r$\n\
+Klicken Sie auf 'Fertig stellen', um den Installations-Assistenten\
+zu schließen."
 !define MUI_FINISHPAGE_RUN $INSTDIR\m13ui.exe
+!define MUI_FINISHPAGE_RUN_TEXT "Anwendung starten"
+!define MUI_FINISHPAGE_LINK "Mehr unter http://www.bsi.bund.de" 
+!define MUI_FINISHPAGE_LINK_LOCATION "http://www.bsi.bund.de"
 
 !insertmacro MUI_PAGE_WELCOME
+!insertmacro MUI_PAGE_STARTMENU Application $StartMenuFolder
 !insertmacro MUI_PAGE_DIRECTORY
 !insertmacro MUI_PAGE_INSTFILES
 !insertmacro MUI_PAGE_FINISH
 
+!insertmacro MUI_UNPAGE_CONFIRM
+!insertmacro MUI_UNPAGE_INSTFILES
+
+
+!insertmacro MUI_LANGUAGE "German"
+
+
 ;--------------------------------
-;Install Functions
+; Install Functions
+
 Function ".onInit"
   !insertmacro MULTIUSER_INIT
 FunctionEnd
 
 ;--------------------------------
-;UnInstall Functions
+; UnInstall Functions
+
 Function "un.onInit"
   !insertmacro MULTIUSER_UNINIT
 FunctionEnd
Binary file packaging/renameme_installer.ico has changed
Binary file packaging/resources/certificate.ico has changed
Binary file packaging/resources/header-install.bmp has changed
Binary file packaging/resources/header-uninstall.bmp has changed
Binary file packaging/resources/install.ico has changed
Binary file packaging/resources/uninstall.ico has changed
Binary file packaging/resources/wizard-install.bmp has changed
Binary file packaging/resources/wizard-uninstall.bmp has changed

http://wald.intevation.org/projects/trustbridge/