Mercurial > trustbridge
comparison packaging/renameme.nsi @ 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 | 9001eaa55549 |
children | 5ee694fa3da7 |
comparison
equal
deleted
inserted
replaced
380:1220b741cd51 | 381:73bfc9cc22e7 |
---|---|
44 | 44 |
45 ; Define Name, File and Installdir of Installer | 45 ; Define Name, File and Installdir of Installer |
46 Name "${productname}" | 46 Name "${productname}" |
47 OutFile "${setupname}" | 47 OutFile "${setupname}" |
48 InstallDir "$PROGRAMFILES\${productname_short}" | 48 InstallDir "$PROGRAMFILES\${productname_short}" |
49 InstType "Standard" | 49 BrandingText "${company} - ${productname}" |
50 | 50 |
51 ;-------------------------------- | 51 ;-------------------------------- |
52 ;Interface Settings | 52 ; Interface Settings |
53 | 53 |
54 BrandingText "${company} - ${productname}" | 54 ; MUI Images / Icons |
55 ; MUI Settings / Header | 55 !define MUI_HEADERIMAGE |
56 !define MUI_WELCOMEPAGE_TITLE "Willkommen bei der Installation von ${productname_short}." | 56 !define MUI_HEADERIMAGE_BITMAP "resources\header-install.bmp" |
57 !define MUI_WELCOMEPAGE_TEXT "Sie sind im Begriff ${productname} \r\n\ | 57 !define MUI_HEADERIMAGE_UNBITMAP "resources\header-uninstall.bmp" |
58 zu installieren. ${productname} ist eine Anwendung um Zertifikate TODO \r\n\ | 58 !define MUI_WELCOMEFINISHPAGE_BITMAP "resources\wizard-install.bmp" |
59 auf ihrem System zu installieren und aktualisieren." | 59 !define MUI_UNWELCOMEFINISHPAGE_BITMAP "resources\wizard-uninstall.bmp" |
60 ;!define MUI_HEADERIMAGE_BITMAP "" ;TODO | 60 !define MUI_ICON "resources\install.ico" |
61 ;!define MUI_WELCOMEFINISHPAGE_BITMAP "ressources\welcome_left.bmp" ;TODO | 61 !define MUI_UNICON "resources\uninstall.ico" |
62 !define MUI_ICON "renameme_installer.ico" | 62 |
63 ; MUI welcome page text | |
64 !define MUI_WELCOMEPAGE_TITLE "Willkommen bei der Installation des ${productname}" | |
65 !define MUI_WELCOMEPAGE_TEXT "Dieser Assistent wird Sie durch die Installation von \ | |
66 ${productname} begleiten. $\r$\n$\r$\n\ | |
67 Der ${productname} ist eine Anwendung um Wurzelzertifikate auf ihrem System \ | |
68 zu installieren und aktuell zu halten. $\r$\n$\r$\n\ | |
69 Klicken Sie auf Weiter, um fortzufahren." | |
70 | |
71 !define MUI_FINISHPAGE_NOAUTOCLOSE | |
72 !define MUI_UNFINISHPAGE_NOAUTOCLOSE | |
63 | 73 |
64 !define MUI_STARTMENUPAGE_REGISTRY_ROOT "SHCTX" | 74 !define MUI_STARTMENUPAGE_REGISTRY_ROOT "SHCTX" |
65 !define MUI_STARTMENUPAGE_REGISTRY_KEY "Software\${productname_short}" | 75 !define MUI_STARTMENUPAGE_REGISTRY_KEY "Software\${productname_short}" |
66 !define MUI_STARTMENUPAGE_REGISTRY_VALUENAME "Start Menu Folder" | 76 !define MUI_STARTMENUPAGE_REGISTRY_VALUENAME "Start Menu Folder" |
67 | 77 |
68 | 78 |
69 !insertmacro MUI_PAGE_STARTMENU Application $StartMenuFolder | 79 ;-------------------------------- |
80 ; Pages | |
70 | 81 |
82 !define MUI_FINISHPAGE_TITLE "Die Installation war erfolgreich" | |
83 !define MUI_FINISHPAGE_TEXT "Der ${productname} wurde auf Ihrem \ | |
84 Computer installliert. $\r$\n$\r$\n\ | |
85 Klicken Sie auf 'Fertig stellen', um den Installations-Assistenten\ | |
86 zu schließen." | |
71 !define MUI_FINISHPAGE_RUN $INSTDIR\m13ui.exe | 87 !define MUI_FINISHPAGE_RUN $INSTDIR\m13ui.exe |
88 !define MUI_FINISHPAGE_RUN_TEXT "Anwendung starten" | |
89 !define MUI_FINISHPAGE_LINK "Mehr unter http://www.bsi.bund.de" | |
90 !define MUI_FINISHPAGE_LINK_LOCATION "http://www.bsi.bund.de" | |
72 | 91 |
73 !insertmacro MUI_PAGE_WELCOME | 92 !insertmacro MUI_PAGE_WELCOME |
93 !insertmacro MUI_PAGE_STARTMENU Application $StartMenuFolder | |
74 !insertmacro MUI_PAGE_DIRECTORY | 94 !insertmacro MUI_PAGE_DIRECTORY |
75 !insertmacro MUI_PAGE_INSTFILES | 95 !insertmacro MUI_PAGE_INSTFILES |
76 !insertmacro MUI_PAGE_FINISH | 96 !insertmacro MUI_PAGE_FINISH |
77 | 97 |
98 !insertmacro MUI_UNPAGE_CONFIRM | |
99 !insertmacro MUI_UNPAGE_INSTFILES | |
100 | |
101 | |
102 !insertmacro MUI_LANGUAGE "German" | |
103 | |
104 | |
78 ;-------------------------------- | 105 ;-------------------------------- |
79 ;Install Functions | 106 ; Install Functions |
107 | |
80 Function ".onInit" | 108 Function ".onInit" |
81 !insertmacro MULTIUSER_INIT | 109 !insertmacro MULTIUSER_INIT |
82 FunctionEnd | 110 FunctionEnd |
83 | 111 |
84 ;-------------------------------- | 112 ;-------------------------------- |
85 ;UnInstall Functions | 113 ; UnInstall Functions |
114 | |
86 Function "un.onInit" | 115 Function "un.onInit" |
87 !insertmacro MULTIUSER_UNINIT | 116 !insertmacro MULTIUSER_UNINIT |
88 FunctionEnd | 117 FunctionEnd |
89 | 118 |
90 Section "" | 119 Section "" |