comparison packaging/trustbridge.nsi @ 410:3132ba0a305d

Rename installer to trustbridge
author Andre Heinecke <aheinecke@intevation.de>
date Wed, 16 Apr 2014 14:19:49 +0000
parents packaging/renameme.nsi@5ee694fa3da7
children 613fbcb5df0c
comparison
equal deleted inserted replaced
409:09bb19e5e369 410:3132ba0a305d
1 ; Copyright (C) 2014 by Bundesamt für Sicherheit in der Informationstechnik
2 ; Software engineering by Intevation GmbH
3 ;
4 ; This file is Free Software under the GNU GPL (v>=2)
5 ; and comes with ABSOLUTELY NO WARRANTY!
6 ; See LICENSE.txt for details.
7
8 ; renameme.nsi
9 ; TODO Rename it!
10 ;
11 ; This script creates the installer for renameme it needs the
12 ; following definitions to be set when calling makensis:
13 ;
14 ; productname: Name of the Software as it will show up under installed
15 ; Software
16 ; company: The publisher of this software. (Windows needs this)
17 ; version_number: The version of the software
18 ; setupname: The name for the result created by this
19 ; productname_short: Used for the default folder name and such
20 ; files_dir: the path to the files
21
22 ;--------------------------------
23 ; Includes
24 !define MULTIUSER_EXECUTIONLEVEL Highest
25 !define MULTIUSER_MUI
26 !define MULTIUSER_INSTALLMODE_COMMANDLINE
27 !define MULTIUSER_INSTALLMODE_DEFAULT_REGISTRY_KEY "Software\${productname_short}"
28 !define MULTIUSER_INSTALLMODE_DEFAULT_REGISTRY_VALUENAME ""
29 !define MULTIUSER_INSTALLMODE_INSTDIR_REGISTRY_KEY "Software\${productname_short}"
30 !define MULTIUSER_INSTALLMODE_INSTDIR_REGISTRY_VALUENAME ""
31 !define MULTIUSER_INSTALLMODE_INSTDIR "${productname_short}"
32
33 !include "MultiUser.nsh"
34 !include "MUI2.nsh"
35
36 ;--------------------------------
37 ;Version Information (for installer file properties)
38
39 VIProductVersion "${version_number}" ;needs integer format: x.x.x.x
40 VIAddVersionKey "ProductName" "${productname_short}"
41 VIAddVersionKey "Comments" "${productname_short} ist Freie Software"
42 VIAddVersionKey "CompanyName" "${company}"
43 VIAddVersionKey "LegalTrademarks" ""
44 VIAddVersionKey "LegalCopyright" "${copyright}"
45 VIAddVersionKey "FileDescription" "${description}"
46 VIAddVersionKey "FileVersion" "${version_number}"
47
48 Var StartMenuFolder
49 ;--------------------------------
50 ; General
51
52 ; Define Name, File and Installdir of Installer
53 Name "${productname}"
54 OutFile "${setupname}"
55 InstallDir "$PROGRAMFILES\${productname_short}"
56 BrandingText "${company} - ${productname}"
57
58 ;--------------------------------
59 ; Interface Settings
60
61 ; MUI Images / Icons
62 !define MUI_HEADERIMAGE
63 !define MUI_HEADERIMAGE_BITMAP "resources\header-install.bmp"
64 !define MUI_HEADERIMAGE_UNBITMAP "resources\header-uninstall.bmp"
65 !define MUI_WELCOMEFINISHPAGE_BITMAP "resources\wizard-install.bmp"
66 !define MUI_UNWELCOMEFINISHPAGE_BITMAP "resources\wizard-uninstall.bmp"
67 !define MUI_ICON "resources\install.ico"
68 !define MUI_UNICON "resources\uninstall.ico"
69
70 ; MUI welcome page text
71 !define MUI_WELCOMEPAGE_TITLE "Willkommen bei der Installation des ${productname}"
72 !define MUI_WELCOMEPAGE_TEXT "Dieser Assistent wird Sie durch die Installation von \
73 ${productname} begleiten. $\r$\n$\r$\n\
74 Der ${productname} ist eine Anwendung um Wurzelzertifikate auf ihrem System \
75 zu installieren und aktuell zu halten. $\r$\n$\r$\n\
76 Klicken Sie auf Weiter, um fortzufahren."
77
78 !define MUI_FINISHPAGE_NOAUTOCLOSE
79 !define MUI_UNFINISHPAGE_NOAUTOCLOSE
80
81 !define MUI_STARTMENUPAGE_REGISTRY_ROOT "SHCTX"
82 !define MUI_STARTMENUPAGE_REGISTRY_KEY "Software\${productname_short}"
83 !define MUI_STARTMENUPAGE_REGISTRY_VALUENAME "Start Menu Folder"
84
85
86 ;--------------------------------
87 ; Pages
88
89 !define MUI_FINISHPAGE_TITLE "Die Installation war erfolgreich"
90 !define MUI_FINISHPAGE_TEXT "Der ${productname} wurde auf Ihrem \
91 Computer installliert. $\r$\n$\r$\n\
92 Klicken Sie auf 'Fertig stellen', um den Installations-Assistenten\
93 zu schließen."
94 !define MUI_FINISHPAGE_RUN $INSTDIR\m13ui.exe
95 !define MUI_FINISHPAGE_RUN_TEXT "Anwendung starten"
96 !define MUI_FINISHPAGE_LINK "Mehr unter http://www.bsi.bund.de"
97 !define MUI_FINISHPAGE_LINK_LOCATION "http://www.bsi.bund.de"
98
99 !insertmacro MUI_PAGE_WELCOME
100 !insertmacro MUI_PAGE_STARTMENU Application $StartMenuFolder
101 !insertmacro MUI_PAGE_DIRECTORY
102 !insertmacro MUI_PAGE_INSTFILES
103 !insertmacro MUI_PAGE_FINISH
104
105 !insertmacro MUI_UNPAGE_CONFIRM
106 !insertmacro MUI_UNPAGE_INSTFILES
107
108
109 !insertmacro MUI_LANGUAGE "German"
110
111
112 ;--------------------------------
113 ; Install Functions
114
115 Function ".onInit"
116 !insertmacro MULTIUSER_INIT
117 FunctionEnd
118
119 ;--------------------------------
120 ; UnInstall Functions
121
122 Function "un.onInit"
123 !insertmacro MULTIUSER_UNINIT
124 FunctionEnd
125
126 Section ""
127 ; The actual installation
128 SetOutPath "$INSTDIR"
129 !include "filelist.nsh"
130
131 WriteRegStr SHCTX "Software\${productname_short}" "" $INSTDIR
132
133 ;Create uninstaller
134 WriteUninstaller "$INSTDIR\Uninstall.exe"
135
136 !insertmacro MUI_STARTMENU_WRITE_BEGIN Application
137
138 ;Create shortcuts
139 CreateDirectory "$SMPROGRAMS\$StartMenuFolder"
140 CreateShortCut "$SMPROGRAMS\$StartMenuFolder\${productname}.lnk" "$INSTDIR\m13ui.exe"
141
142 !insertmacro MUI_STARTMENU_WRITE_END
143
144 SectionEnd
145
146 Section "Uninstall"
147 RMDir /r "$INSTDIR" ; TODO include uninstall files
148 ; !include "filelist-un.nsh"
149 ; Delete "$INSTDIR\Uninstall.exe"
150 ; RMDir "$INSTDIR"
151
152 !insertmacro MUI_STARTMENU_GETFOLDER Application $StartMenuFolder
153
154 Delete "$SMPROGRAMS\$StartMenuFolder\${productname}.lnk"
155 RMDir "$SMPROGRAMS\$StartMenuFolder"
156
157 DeleteRegKey /ifempty SHCTX "Software\${productname_short}"
158
159 SectionEnd

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