Mercurial > trustbridge
annotate packaging/trustbridge.nsi @ 1388:6ca035ea02ca
Added tag 0.9.8 for changeset c64b6c56ce96
author | Andre Heinecke <andre.heinecke@intevation.de> |
---|---|
date | Thu, 15 Jan 2015 16:48:54 +0100 |
parents | ce46e3453ea4 |
children |
rev | line source |
---|---|
588
a4e75d90d3f6
Use latin1 in NSIS (fixes encoding errors) Fix command line installation dir.
Andre Heinecke <aheinecke@intevation.de>
parents:
506
diff
changeset
|
1 ; Copyright (C) 2014 by Bundesamt f�r Sicherheit in der Informationstechnik |
406
5ee694fa3da7
Add license header for NSIS scripts
Andre Heinecke <aheinecke@intevation.de>
parents:
381
diff
changeset
|
2 ; Software engineering by Intevation GmbH |
5ee694fa3da7
Add license header for NSIS scripts
Andre Heinecke <aheinecke@intevation.de>
parents:
381
diff
changeset
|
3 ; |
5ee694fa3da7
Add license header for NSIS scripts
Andre Heinecke <aheinecke@intevation.de>
parents:
381
diff
changeset
|
4 ; This file is Free Software under the GNU GPL (v>=2) |
5ee694fa3da7
Add license header for NSIS scripts
Andre Heinecke <aheinecke@intevation.de>
parents:
381
diff
changeset
|
5 ; and comes with ABSOLUTELY NO WARRANTY! |
5ee694fa3da7
Add license header for NSIS scripts
Andre Heinecke <aheinecke@intevation.de>
parents:
381
diff
changeset
|
6 ; See LICENSE.txt for details. |
5ee694fa3da7
Add license header for NSIS scripts
Andre Heinecke <aheinecke@intevation.de>
parents:
381
diff
changeset
|
7 |
340
9001eaa55549
Add first draft of packaging to build upon
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
8 ; This script creates the installer for renameme it needs the |
9001eaa55549
Add first draft of packaging to build upon
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
9 ; following definitions to be set when calling makensis: |
9001eaa55549
Add first draft of packaging to build upon
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
10 ; |
9001eaa55549
Add first draft of packaging to build upon
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
11 ; productname: Name of the Software as it will show up under installed |
9001eaa55549
Add first draft of packaging to build upon
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
12 ; Software |
9001eaa55549
Add first draft of packaging to build upon
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
13 ; company: The publisher of this software. (Windows needs this) |
9001eaa55549
Add first draft of packaging to build upon
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
14 ; version_number: The version of the software |
9001eaa55549
Add first draft of packaging to build upon
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
15 ; setupname: The name for the result created by this |
9001eaa55549
Add first draft of packaging to build upon
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
16 ; productname_short: Used for the default folder name and such |
9001eaa55549
Add first draft of packaging to build upon
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
17 ; files_dir: the path to the files |
9001eaa55549
Add first draft of packaging to build upon
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
18 |
9001eaa55549
Add first draft of packaging to build upon
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
19 ;-------------------------------- |
9001eaa55549
Add first draft of packaging to build upon
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
20 ; Includes |
1325
303de3160a83
(issue163) Move all uninstaller specifics into IFDEF WRITE_UNINSTALLER sections
Andre Heinecke <andre.heinecke@intevation.de>
parents:
1248
diff
changeset
|
21 !ifndef WRITE_UNINSTALLER |
303de3160a83
(issue163) Move all uninstaller specifics into IFDEF WRITE_UNINSTALLER sections
Andre Heinecke <andre.heinecke@intevation.de>
parents:
1248
diff
changeset
|
22 !define MULTIUSER_NOUNINSTALL |
303de3160a83
(issue163) Move all uninstaller specifics into IFDEF WRITE_UNINSTALLER sections
Andre Heinecke <andre.heinecke@intevation.de>
parents:
1248
diff
changeset
|
23 !endif |
303de3160a83
(issue163) Move all uninstaller specifics into IFDEF WRITE_UNINSTALLER sections
Andre Heinecke <andre.heinecke@intevation.de>
parents:
1248
diff
changeset
|
24 |
340
9001eaa55549
Add first draft of packaging to build upon
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
25 !define MULTIUSER_EXECUTIONLEVEL Highest |
9001eaa55549
Add first draft of packaging to build upon
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
26 !define MULTIUSER_MUI |
9001eaa55549
Add first draft of packaging to build upon
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
27 !define MULTIUSER_INSTALLMODE_COMMANDLINE |
1350
00ba9a4c422d
Fix some paths where \BSI subdirectory was forgotten.
Andre Heinecke <andre.heinecke@intevation.de>
parents:
1343
diff
changeset
|
28 !define MULTIUSER_INSTALLMODE_DEFAULT_REGISTRY_KEY "Software\BSI\${productname_short}" |
340
9001eaa55549
Add first draft of packaging to build upon
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
29 !define MULTIUSER_INSTALLMODE_DEFAULT_REGISTRY_VALUENAME "" |
1350
00ba9a4c422d
Fix some paths where \BSI subdirectory was forgotten.
Andre Heinecke <andre.heinecke@intevation.de>
parents:
1343
diff
changeset
|
30 !define MULTIUSER_INSTALLMODE_INSTDIR_REGISTRY_KEY "Software\BSI\${productname_short}" |
340
9001eaa55549
Add first draft of packaging to build upon
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
31 !define MULTIUSER_INSTALLMODE_INSTDIR_REGISTRY_VALUENAME "" |
1350
00ba9a4c422d
Fix some paths where \BSI subdirectory was forgotten.
Andre Heinecke <andre.heinecke@intevation.de>
parents:
1343
diff
changeset
|
32 !define MULTIUSER_INSTALLMODE_INSTDIR "BSI\${productname_short}" |
340
9001eaa55549
Add first draft of packaging to build upon
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
33 |
1010
1c1964c27b39
(issue54) commit work in progress on start after installation
Andre Heinecke <andre.heinecke@intevation.de>
parents:
925
diff
changeset
|
34 !addplugindir "${plugin_dir}" |
1188
eb77ddd7e1ab
(issue137) Generate and include install / uninstall file lists
Andre Heinecke <andre.heinecke@intevation.de>
parents:
1176
diff
changeset
|
35 !addincludedir "${plugin_dir}" |
1010
1c1964c27b39
(issue54) commit work in progress on start after installation
Andre Heinecke <andre.heinecke@intevation.de>
parents:
925
diff
changeset
|
36 |
340
9001eaa55549
Add first draft of packaging to build upon
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
37 !include "MultiUser.nsh" |
9001eaa55549
Add first draft of packaging to build upon
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
38 !include "MUI2.nsh" |
588
a4e75d90d3f6
Use latin1 in NSIS (fixes encoding errors) Fix command line installation dir.
Andre Heinecke <aheinecke@intevation.de>
parents:
506
diff
changeset
|
39 !include "FileFunc.nsh" |
828
95e14add5c50
(issue11) Check minium supported windows version
Andre Heinecke <andre.heinecke@intevation.de>
parents:
798
diff
changeset
|
40 !include "WinVer.nsh" |
340
9001eaa55549
Add first draft of packaging to build upon
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
41 |
9001eaa55549
Add first draft of packaging to build upon
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
42 ;-------------------------------- |
9001eaa55549
Add first draft of packaging to build upon
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
43 ;Version Information (for installer file properties) |
9001eaa55549
Add first draft of packaging to build upon
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
44 |
500
4f972b1f4996
Fix packaging information generation
Andre Heinecke <aheinecke@intevation.de>
parents:
494
diff
changeset
|
45 ;VIProductVersion "${version_number}" ;needs integer format: x.x.x.x |
4f972b1f4996
Fix packaging information generation
Andre Heinecke <aheinecke@intevation.de>
parents:
494
diff
changeset
|
46 VIProductVersion 1.0.0.0 |
340
9001eaa55549
Add first draft of packaging to build upon
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
47 VIAddVersionKey "ProductName" "${productname_short}" |
9001eaa55549
Add first draft of packaging to build upon
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
48 VIAddVersionKey "Comments" "${productname_short} ist Freie Software" |
9001eaa55549
Add first draft of packaging to build upon
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
49 VIAddVersionKey "CompanyName" "${company}" |
9001eaa55549
Add first draft of packaging to build upon
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
50 VIAddVersionKey "LegalTrademarks" "" |
9001eaa55549
Add first draft of packaging to build upon
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
51 VIAddVersionKey "LegalCopyright" "${copyright}" |
9001eaa55549
Add first draft of packaging to build upon
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
52 VIAddVersionKey "FileDescription" "${description}" |
9001eaa55549
Add first draft of packaging to build upon
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
53 VIAddVersionKey "FileVersion" "${version_number}" |
9001eaa55549
Add first draft of packaging to build upon
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
54 |
9001eaa55549
Add first draft of packaging to build upon
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
55 Var StartMenuFolder |
9001eaa55549
Add first draft of packaging to build upon
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
56 ;-------------------------------- |
9001eaa55549
Add first draft of packaging to build upon
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
57 ; General |
9001eaa55549
Add first draft of packaging to build upon
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
58 |
9001eaa55549
Add first draft of packaging to build upon
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
59 ; Define Name, File and Installdir of Installer |
9001eaa55549
Add first draft of packaging to build upon
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
60 Name "${productname}" |
9001eaa55549
Add first draft of packaging to build upon
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
61 OutFile "${setupname}" |
1343
0971c7214e79
(issue160) Change install prefix to include BSI directory
Andre Heinecke <andre.heinecke@intevation.de>
parents:
1330
diff
changeset
|
62 InstallDir "$PROGRAMFILES\BSI\${productname_short}" |
381
73bfc9cc22e7
Improved NSIS installer MUI script. Added sample images and icons.
Emanuel Schuetze <emanuel@intevation.de>
parents:
340
diff
changeset
|
63 BrandingText "${company} - ${productname}" |
340
9001eaa55549
Add first draft of packaging to build upon
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
64 |
9001eaa55549
Add first draft of packaging to build upon
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
65 ;-------------------------------- |
381
73bfc9cc22e7
Improved NSIS installer MUI script. Added sample images and icons.
Emanuel Schuetze <emanuel@intevation.de>
parents:
340
diff
changeset
|
66 ; Interface Settings |
340
9001eaa55549
Add first draft of packaging to build upon
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
67 |
381
73bfc9cc22e7
Improved NSIS installer MUI script. Added sample images and icons.
Emanuel Schuetze <emanuel@intevation.de>
parents:
340
diff
changeset
|
68 ; MUI Images / Icons |
73bfc9cc22e7
Improved NSIS installer MUI script. Added sample images and icons.
Emanuel Schuetze <emanuel@intevation.de>
parents:
340
diff
changeset
|
69 !define MUI_HEADERIMAGE |
73bfc9cc22e7
Improved NSIS installer MUI script. Added sample images and icons.
Emanuel Schuetze <emanuel@intevation.de>
parents:
340
diff
changeset
|
70 !define MUI_HEADERIMAGE_BITMAP "resources\header-install.bmp" |
73bfc9cc22e7
Improved NSIS installer MUI script. Added sample images and icons.
Emanuel Schuetze <emanuel@intevation.de>
parents:
340
diff
changeset
|
71 !define MUI_WELCOMEFINISHPAGE_BITMAP "resources\wizard-install.bmp" |
1325
303de3160a83
(issue163) Move all uninstaller specifics into IFDEF WRITE_UNINSTALLER sections
Andre Heinecke <andre.heinecke@intevation.de>
parents:
1248
diff
changeset
|
72 !define MUI_ICON "resources\install.ico" |
303de3160a83
(issue163) Move all uninstaller specifics into IFDEF WRITE_UNINSTALLER sections
Andre Heinecke <andre.heinecke@intevation.de>
parents:
1248
diff
changeset
|
73 |
303de3160a83
(issue163) Move all uninstaller specifics into IFDEF WRITE_UNINSTALLER sections
Andre Heinecke <andre.heinecke@intevation.de>
parents:
1248
diff
changeset
|
74 !ifdef WRITE_UNINSTALLER |
303de3160a83
(issue163) Move all uninstaller specifics into IFDEF WRITE_UNINSTALLER sections
Andre Heinecke <andre.heinecke@intevation.de>
parents:
1248
diff
changeset
|
75 !define MUI_HEADERIMAGE_UNBITMAP "resources\header-uninstall.bmp" |
381
73bfc9cc22e7
Improved NSIS installer MUI script. Added sample images and icons.
Emanuel Schuetze <emanuel@intevation.de>
parents:
340
diff
changeset
|
76 !define MUI_UNWELCOMEFINISHPAGE_BITMAP "resources\wizard-uninstall.bmp" |
73bfc9cc22e7
Improved NSIS installer MUI script. Added sample images and icons.
Emanuel Schuetze <emanuel@intevation.de>
parents:
340
diff
changeset
|
77 !define MUI_UNICON "resources\uninstall.ico" |
1325
303de3160a83
(issue163) Move all uninstaller specifics into IFDEF WRITE_UNINSTALLER sections
Andre Heinecke <andre.heinecke@intevation.de>
parents:
1248
diff
changeset
|
78 !define MUI_UNFINISHPAGE_NOAUTOCLOSE |
303de3160a83
(issue163) Move all uninstaller specifics into IFDEF WRITE_UNINSTALLER sections
Andre Heinecke <andre.heinecke@intevation.de>
parents:
1248
diff
changeset
|
79 !endif |
381
73bfc9cc22e7
Improved NSIS installer MUI script. Added sample images and icons.
Emanuel Schuetze <emanuel@intevation.de>
parents:
340
diff
changeset
|
80 |
73bfc9cc22e7
Improved NSIS installer MUI script. Added sample images and icons.
Emanuel Schuetze <emanuel@intevation.de>
parents:
340
diff
changeset
|
81 ; MUI welcome page text |
862
eee419ad81b8
(Packaging) Added version number and development version note to nsis welcome page.
Emanuel Schuetze <emanuel@intevation.de>
parents:
859
diff
changeset
|
82 !define MUI_WELCOMEPAGE_TITLE "Willkommen zur Installation von TrustBridge ${version_number}" |
798
8fad91c654e2
Installer, Welcomepage, another variant.
Bernhard Reiter <bernhard@intevation.de>
parents:
797
diff
changeset
|
83 ;!define MUI_WELCOMEPAGE_TITLE_3LINES |
8fad91c654e2
Installer, Welcomepage, another variant.
Bernhard Reiter <bernhard@intevation.de>
parents:
797
diff
changeset
|
84 !define MUI_WELCOMEPAGE_TEXT "${productname} ist eine Anwendung \ |
862
eee419ad81b8
(Packaging) Added version number and development version note to nsis welcome page.
Emanuel Schuetze <emanuel@intevation.de>
parents:
859
diff
changeset
|
85 um Wurzelzertifikate auf ihrem System zu installieren und aktuell zu halten. \ |
1383
ce46e3453ea4
Fix syntax error
Andre Heinecke <andre.heinecke@intevation.de>
parents:
1380
diff
changeset
|
86 $\r$\n$\r$\n$\r$\n$\r$\n" |
381
73bfc9cc22e7
Improved NSIS installer MUI script. Added sample images and icons.
Emanuel Schuetze <emanuel@intevation.de>
parents:
340
diff
changeset
|
87 |
73bfc9cc22e7
Improved NSIS installer MUI script. Added sample images and icons.
Emanuel Schuetze <emanuel@intevation.de>
parents:
340
diff
changeset
|
88 !define MUI_FINISHPAGE_NOAUTOCLOSE |
340
9001eaa55549
Add first draft of packaging to build upon
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
89 |
915
715d41aac9c8
(Issue85) Really move start menu entry to user context
Andre Heinecke <andre.heinecke@intevation.de>
parents:
901
diff
changeset
|
90 !define MUI_STARTMENUPAGE_REGISTRY_ROOT "SHCTX" |
1343
0971c7214e79
(issue160) Change install prefix to include BSI directory
Andre Heinecke <andre.heinecke@intevation.de>
parents:
1330
diff
changeset
|
91 !define MUI_STARTMENUPAGE_REGISTRY_KEY "Software\BSI\${productname_short}" |
340
9001eaa55549
Add first draft of packaging to build upon
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
92 !define MUI_STARTMENUPAGE_REGISTRY_VALUENAME "Start Menu Folder" |
9001eaa55549
Add first draft of packaging to build upon
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
93 |
9001eaa55549
Add first draft of packaging to build upon
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
94 |
381
73bfc9cc22e7
Improved NSIS installer MUI script. Added sample images and icons.
Emanuel Schuetze <emanuel@intevation.de>
parents:
340
diff
changeset
|
95 ;-------------------------------- |
73bfc9cc22e7
Improved NSIS installer MUI script. Added sample images and icons.
Emanuel Schuetze <emanuel@intevation.de>
parents:
340
diff
changeset
|
96 ; Pages |
340
9001eaa55549
Add first draft of packaging to build upon
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
97 |
381
73bfc9cc22e7
Improved NSIS installer MUI script. Added sample images and icons.
Emanuel Schuetze <emanuel@intevation.de>
parents:
340
diff
changeset
|
98 !define MUI_FINISHPAGE_TITLE "Die Installation war erfolgreich" |
506
bfcfbae151ab
Some packaging changes. Add dummy runAsUser (not working) Update Application icon
Andre Heinecke <aheinecke@intevation.de>
parents:
500
diff
changeset
|
99 !define MUI_FINISHPAGE_TEXT "${productname} wurde auf Ihrem \ |
381
73bfc9cc22e7
Improved NSIS installer MUI script. Added sample images and icons.
Emanuel Schuetze <emanuel@intevation.de>
parents:
340
diff
changeset
|
100 Computer installliert. $\r$\n$\r$\n\ |
73bfc9cc22e7
Improved NSIS installer MUI script. Added sample images and icons.
Emanuel Schuetze <emanuel@intevation.de>
parents:
340
diff
changeset
|
101 Klicken Sie auf 'Fertig stellen', um den Installations-Assistenten\ |
588
a4e75d90d3f6
Use latin1 in NSIS (fixes encoding errors) Fix command line installation dir.
Andre Heinecke <aheinecke@intevation.de>
parents:
506
diff
changeset
|
102 zu schlie�en." |
1010
1c1964c27b39
(issue54) commit work in progress on start after installation
Andre Heinecke <andre.heinecke@intevation.de>
parents:
925
diff
changeset
|
103 !define MUI_FINISHPAGE_RUN $INSTDIR\trustbridge.exe |
1c1964c27b39
(issue54) commit work in progress on start after installation
Andre Heinecke <andre.heinecke@intevation.de>
parents:
925
diff
changeset
|
104 !define MUI_FINISHPAGE_RUN_TEXT "Anwendung starten" |
1c1964c27b39
(issue54) commit work in progress on start after installation
Andre Heinecke <andre.heinecke@intevation.de>
parents:
925
diff
changeset
|
105 !define MUI_FINISHPAGE_RUN_FUNCTION RunAsUser |
794
fdc15f0cfdd8
(issue61) NSIS Write uninstall information and make URL configurable.
Andre Heinecke <andre.heinecke@intevation.de>
parents:
793
diff
changeset
|
106 !define MUI_FINISHPAGE_LINK "Mehr unter ${info_url}" |
fdc15f0cfdd8
(issue61) NSIS Write uninstall information and make URL configurable.
Andre Heinecke <andre.heinecke@intevation.de>
parents:
793
diff
changeset
|
107 !define MUI_FINISHPAGE_LINK_LOCATION "${info_url}" |
340
9001eaa55549
Add first draft of packaging to build upon
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
108 |
9001eaa55549
Add first draft of packaging to build upon
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
109 !insertmacro MUI_PAGE_WELCOME |
381
73bfc9cc22e7
Improved NSIS installer MUI script. Added sample images and icons.
Emanuel Schuetze <emanuel@intevation.de>
parents:
340
diff
changeset
|
110 !insertmacro MUI_PAGE_STARTMENU Application $StartMenuFolder |
340
9001eaa55549
Add first draft of packaging to build upon
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
111 !insertmacro MUI_PAGE_DIRECTORY |
9001eaa55549
Add first draft of packaging to build upon
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
112 !insertmacro MUI_PAGE_INSTFILES |
9001eaa55549
Add first draft of packaging to build upon
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
113 !insertmacro MUI_PAGE_FINISH |
9001eaa55549
Add first draft of packaging to build upon
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
114 |
831
747a48996c1f
(Issue13) Precompile uninstaller
Andre Heinecke <andre.heinecke@intevation.de>
parents:
828
diff
changeset
|
115 !ifdef WRITE_UNINSTALLER |
1325
303de3160a83
(issue163) Move all uninstaller specifics into IFDEF WRITE_UNINSTALLER sections
Andre Heinecke <andre.heinecke@intevation.de>
parents:
1248
diff
changeset
|
116 Var douninstcertificates |
303de3160a83
(issue163) Move all uninstaller specifics into IFDEF WRITE_UNINSTALLER sections
Andre Heinecke <andre.heinecke@intevation.de>
parents:
1248
diff
changeset
|
117 Var uninstCertificates |
859
df6f3b1cc41c
(issue53) Uninstall list-installed if requested.
Andre Heinecke <andre.heinecke@intevation.de>
parents:
835
diff
changeset
|
118 !define MUI_PAGE_CUSTOMFUNCTION_SHOW un.ModifyUnWelcome |
df6f3b1cc41c
(issue53) Uninstall list-installed if requested.
Andre Heinecke <andre.heinecke@intevation.de>
parents:
835
diff
changeset
|
119 !define MUI_PAGE_CUSTOMFUNCTION_LEAVE un.LeaveUnWelcome |
835
bd9d07c301fd
Add framework to uninstall certificates
Andre Heinecke <andre.heinecke@intevation.de>
parents:
831
diff
changeset
|
120 |
859
df6f3b1cc41c
(issue53) Uninstall list-installed if requested.
Andre Heinecke <andre.heinecke@intevation.de>
parents:
835
diff
changeset
|
121 !insertmacro MUI_UNPAGE_WELCOME |
831
747a48996c1f
(Issue13) Precompile uninstaller
Andre Heinecke <andre.heinecke@intevation.de>
parents:
828
diff
changeset
|
122 !insertmacro MUI_UNPAGE_CONFIRM |
747a48996c1f
(Issue13) Precompile uninstaller
Andre Heinecke <andre.heinecke@intevation.de>
parents:
828
diff
changeset
|
123 !insertmacro MUI_UNPAGE_INSTFILES |
835
bd9d07c301fd
Add framework to uninstall certificates
Andre Heinecke <andre.heinecke@intevation.de>
parents:
831
diff
changeset
|
124 |
859
df6f3b1cc41c
(issue53) Uninstall list-installed if requested.
Andre Heinecke <andre.heinecke@intevation.de>
parents:
835
diff
changeset
|
125 Function un.ModifyUnWelcome |
835
bd9d07c301fd
Add framework to uninstall certificates
Andre Heinecke <andre.heinecke@intevation.de>
parents:
831
diff
changeset
|
126 ${NSD_CreateCheckbox} 120u -18u 50% 12u "Verwaltete Zertifikate entfernen." |
bd9d07c301fd
Add framework to uninstall certificates
Andre Heinecke <andre.heinecke@intevation.de>
parents:
831
diff
changeset
|
127 Pop $uninstCertificates |
bd9d07c301fd
Add framework to uninstall certificates
Andre Heinecke <andre.heinecke@intevation.de>
parents:
831
diff
changeset
|
128 SetCtlColors $uninstCertificates "" ${MUI_BGCOLOR} |
859
df6f3b1cc41c
(issue53) Uninstall list-installed if requested.
Andre Heinecke <andre.heinecke@intevation.de>
parents:
835
diff
changeset
|
129 ${NSD_Check} $uninstCertificates ; Check it by default |
835
bd9d07c301fd
Add framework to uninstall certificates
Andre Heinecke <andre.heinecke@intevation.de>
parents:
831
diff
changeset
|
130 FunctionEnd |
bd9d07c301fd
Add framework to uninstall certificates
Andre Heinecke <andre.heinecke@intevation.de>
parents:
831
diff
changeset
|
131 |
859
df6f3b1cc41c
(issue53) Uninstall list-installed if requested.
Andre Heinecke <andre.heinecke@intevation.de>
parents:
835
diff
changeset
|
132 Function un.LeaveUnWelcome |
835
bd9d07c301fd
Add framework to uninstall certificates
Andre Heinecke <andre.heinecke@intevation.de>
parents:
831
diff
changeset
|
133 ${NSD_GetState} $uninstCertificates $0 |
859
df6f3b1cc41c
(issue53) Uninstall list-installed if requested.
Andre Heinecke <andre.heinecke@intevation.de>
parents:
835
diff
changeset
|
134 StrCpy $douninstcertificates "FALSE" |
835
bd9d07c301fd
Add framework to uninstall certificates
Andre Heinecke <andre.heinecke@intevation.de>
parents:
831
diff
changeset
|
135 ${If} $0 <> 0 |
859
df6f3b1cc41c
(issue53) Uninstall list-installed if requested.
Andre Heinecke <andre.heinecke@intevation.de>
parents:
835
diff
changeset
|
136 StrCpy $douninstcertificates "TRUE" |
835
bd9d07c301fd
Add framework to uninstall certificates
Andre Heinecke <andre.heinecke@intevation.de>
parents:
831
diff
changeset
|
137 ${EndIf} |
bd9d07c301fd
Add framework to uninstall certificates
Andre Heinecke <andre.heinecke@intevation.de>
parents:
831
diff
changeset
|
138 FunctionEnd |
831
747a48996c1f
(Issue13) Precompile uninstaller
Andre Heinecke <andre.heinecke@intevation.de>
parents:
828
diff
changeset
|
139 !endif |
381
73bfc9cc22e7
Improved NSIS installer MUI script. Added sample images and icons.
Emanuel Schuetze <emanuel@intevation.de>
parents:
340
diff
changeset
|
140 |
73bfc9cc22e7
Improved NSIS installer MUI script. Added sample images and icons.
Emanuel Schuetze <emanuel@intevation.de>
parents:
340
diff
changeset
|
141 !insertmacro MUI_LANGUAGE "German" |
73bfc9cc22e7
Improved NSIS installer MUI script. Added sample images and icons.
Emanuel Schuetze <emanuel@intevation.de>
parents:
340
diff
changeset
|
142 |
73bfc9cc22e7
Improved NSIS installer MUI script. Added sample images and icons.
Emanuel Schuetze <emanuel@intevation.de>
parents:
340
diff
changeset
|
143 |
340
9001eaa55549
Add first draft of packaging to build upon
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
144 ;-------------------------------- |
381
73bfc9cc22e7
Improved NSIS installer MUI script. Added sample images and icons.
Emanuel Schuetze <emanuel@intevation.de>
parents:
340
diff
changeset
|
145 ; Install Functions |
73bfc9cc22e7
Improved NSIS installer MUI script. Added sample images and icons.
Emanuel Schuetze <emanuel@intevation.de>
parents:
340
diff
changeset
|
146 |
340
9001eaa55549
Add first draft of packaging to build upon
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
147 Function ".onInit" |
831
747a48996c1f
(Issue13) Precompile uninstaller
Andre Heinecke <andre.heinecke@intevation.de>
parents:
828
diff
changeset
|
148 !ifdef WRITE_UNINSTALLER |
747a48996c1f
(Issue13) Precompile uninstaller
Andre Heinecke <andre.heinecke@intevation.de>
parents:
828
diff
changeset
|
149 SetOutPath "c:\tmp-uninstaller" |
747a48996c1f
(Issue13) Precompile uninstaller
Andre Heinecke <andre.heinecke@intevation.de>
parents:
828
diff
changeset
|
150 WriteUninstaller "c:\tmp-uninstaller\Uninstall.exe" |
747a48996c1f
(Issue13) Precompile uninstaller
Andre Heinecke <andre.heinecke@intevation.de>
parents:
828
diff
changeset
|
151 Quit |
747a48996c1f
(Issue13) Precompile uninstaller
Andre Heinecke <andre.heinecke@intevation.de>
parents:
828
diff
changeset
|
152 !endif |
747a48996c1f
(Issue13) Precompile uninstaller
Andre Heinecke <andre.heinecke@intevation.de>
parents:
828
diff
changeset
|
153 |
828
95e14add5c50
(issue11) Check minium supported windows version
Andre Heinecke <andre.heinecke@intevation.de>
parents:
798
diff
changeset
|
154 ${IfNot} ${AtLeastWinVista} |
917
6978381671eb
(issue62) Show warning when installation as normal user is attempted
Andre Heinecke <andre.heinecke@intevation.de>
parents:
915
diff
changeset
|
155 MessageBox MB_ICONSTOP "Windows XP und �ltere Windows Versionen werden von dieser Anwendung nicht unterst�tzt." |
828
95e14add5c50
(issue11) Check minium supported windows version
Andre Heinecke <andre.heinecke@intevation.de>
parents:
798
diff
changeset
|
156 Quit |
95e14add5c50
(issue11) Check minium supported windows version
Andre Heinecke <andre.heinecke@intevation.de>
parents:
798
diff
changeset
|
157 ${Endif} |
95e14add5c50
(issue11) Check minium supported windows version
Andre Heinecke <andre.heinecke@intevation.de>
parents:
798
diff
changeset
|
158 |
917
6978381671eb
(issue62) Show warning when installation as normal user is attempted
Andre Heinecke <andre.heinecke@intevation.de>
parents:
915
diff
changeset
|
159 UserInfo::GetAccountType |
6978381671eb
(issue62) Show warning when installation as normal user is attempted
Andre Heinecke <andre.heinecke@intevation.de>
parents:
915
diff
changeset
|
160 pop $0 |
6978381671eb
(issue62) Show warning when installation as normal user is attempted
Andre Heinecke <andre.heinecke@intevation.de>
parents:
915
diff
changeset
|
161 ${If} $0 != "admin" |
6978381671eb
(issue62) Show warning when installation as normal user is attempted
Andre Heinecke <andre.heinecke@intevation.de>
parents:
915
diff
changeset
|
162 MessageBox MB_ICONINFORMATION|MB_YESNO "\ |
6978381671eb
(issue62) Show warning when installation as normal user is attempted
Andre Heinecke <andre.heinecke@intevation.de>
parents:
915
diff
changeset
|
163 Sie sind im Begriff ${productname} ohne Administratorrechte zu installieren. $\r$\n\ |
6978381671eb
(issue62) Show warning when installation as normal user is attempted
Andre Heinecke <andre.heinecke@intevation.de>
parents:
915
diff
changeset
|
164 $\r$\n\ |
6978381671eb
(issue62) Show warning when installation as normal user is attempted
Andre Heinecke <andre.heinecke@intevation.de>
parents:
915
diff
changeset
|
165 Ohne Administratorrechte werden Sie von Windows zur Best�tigung jeder Zertifikats�nderung einzeln aufgefordert. $\r$\n$\r$\n\ |
925
1b77124aea4d
(issue62) Updated no-admin warning message.
Emanuel Schuetze <emanuel@intevation.de>
parents:
917
diff
changeset
|
166 Wenn Sie die M�glichkeit besitzen Administratorrechte auf diesem System zu erlangen, starten Sie diesen Installer \ |
1b77124aea4d
(issue62) Updated no-admin warning message.
Emanuel Schuetze <emanuel@intevation.de>
parents:
917
diff
changeset
|
167 erneut mit der Funktion 'Als Administrator ausf�hren'. $\r$\n$\r$\n\ |
917
6978381671eb
(issue62) Show warning when installation as normal user is attempted
Andre Heinecke <andre.heinecke@intevation.de>
parents:
915
diff
changeset
|
168 M�chten Sie die Installation ohne Administratorrechte fortsetzen?" /SD IDYES IDYES goOn IDNO stopNow |
6978381671eb
(issue62) Show warning when installation as normal user is attempted
Andre Heinecke <andre.heinecke@intevation.de>
parents:
915
diff
changeset
|
169 stopNow: |
6978381671eb
(issue62) Show warning when installation as normal user is attempted
Andre Heinecke <andre.heinecke@intevation.de>
parents:
915
diff
changeset
|
170 Quit |
6978381671eb
(issue62) Show warning when installation as normal user is attempted
Andre Heinecke <andre.heinecke@intevation.de>
parents:
915
diff
changeset
|
171 goOn: |
6978381671eb
(issue62) Show warning when installation as normal user is attempted
Andre Heinecke <andre.heinecke@intevation.de>
parents:
915
diff
changeset
|
172 ${EndIf} |
6978381671eb
(issue62) Show warning when installation as normal user is attempted
Andre Heinecke <andre.heinecke@intevation.de>
parents:
915
diff
changeset
|
173 |
588
a4e75d90d3f6
Use latin1 in NSIS (fixes encoding errors) Fix command line installation dir.
Andre Heinecke <aheinecke@intevation.de>
parents:
506
diff
changeset
|
174 Var /GLOBAL is_update |
a4e75d90d3f6
Use latin1 in NSIS (fixes encoding errors) Fix command line installation dir.
Andre Heinecke <aheinecke@intevation.de>
parents:
506
diff
changeset
|
175 Var /GLOBAL changed_dir |
a4e75d90d3f6
Use latin1 in NSIS (fixes encoding errors) Fix command line installation dir.
Andre Heinecke <aheinecke@intevation.de>
parents:
506
diff
changeset
|
176 ${GetParameters} $R0 |
a4e75d90d3f6
Use latin1 in NSIS (fixes encoding errors) Fix command line installation dir.
Andre Heinecke <aheinecke@intevation.de>
parents:
506
diff
changeset
|
177 ClearErrors |
a4e75d90d3f6
Use latin1 in NSIS (fixes encoding errors) Fix command line installation dir.
Andre Heinecke <aheinecke@intevation.de>
parents:
506
diff
changeset
|
178 ${GetOptions} $R0 /UPDATE= $is_update |
a4e75d90d3f6
Use latin1 in NSIS (fixes encoding errors) Fix command line installation dir.
Andre Heinecke <aheinecke@intevation.de>
parents:
506
diff
changeset
|
179 |
a4e75d90d3f6
Use latin1 in NSIS (fixes encoding errors) Fix command line installation dir.
Andre Heinecke <aheinecke@intevation.de>
parents:
506
diff
changeset
|
180 ; Check if the install directory was modified on the command line |
1350
00ba9a4c422d
Fix some paths where \BSI subdirectory was forgotten.
Andre Heinecke <andre.heinecke@intevation.de>
parents:
1343
diff
changeset
|
181 StrCmp "$INSTDIR" "$PROGRAMFILES\BSI\${productname_short}" unmodified 0 |
588
a4e75d90d3f6
Use latin1 in NSIS (fixes encoding errors) Fix command line installation dir.
Andre Heinecke <aheinecke@intevation.de>
parents:
506
diff
changeset
|
182 ; It is modified. Save that value. |
a4e75d90d3f6
Use latin1 in NSIS (fixes encoding errors) Fix command line installation dir.
Andre Heinecke <aheinecke@intevation.de>
parents:
506
diff
changeset
|
183 StrCpy $changed_dir "$INSTDIR" |
a4e75d90d3f6
Use latin1 in NSIS (fixes encoding errors) Fix command line installation dir.
Andre Heinecke <aheinecke@intevation.de>
parents:
506
diff
changeset
|
184 |
a4e75d90d3f6
Use latin1 in NSIS (fixes encoding errors) Fix command line installation dir.
Andre Heinecke <aheinecke@intevation.de>
parents:
506
diff
changeset
|
185 ; MULITUSER_INIT overwrites directory setting from command line |
340
9001eaa55549
Add first draft of packaging to build upon
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
186 !insertmacro MULTIUSER_INIT |
588
a4e75d90d3f6
Use latin1 in NSIS (fixes encoding errors) Fix command line installation dir.
Andre Heinecke <aheinecke@intevation.de>
parents:
506
diff
changeset
|
187 StrCpy $INSTDIR "$changed_dir" |
a4e75d90d3f6
Use latin1 in NSIS (fixes encoding errors) Fix command line installation dir.
Andre Heinecke <aheinecke@intevation.de>
parents:
506
diff
changeset
|
188 goto initDone |
a4e75d90d3f6
Use latin1 in NSIS (fixes encoding errors) Fix command line installation dir.
Andre Heinecke <aheinecke@intevation.de>
parents:
506
diff
changeset
|
189 unmodified: |
a4e75d90d3f6
Use latin1 in NSIS (fixes encoding errors) Fix command line installation dir.
Andre Heinecke <aheinecke@intevation.de>
parents:
506
diff
changeset
|
190 !insertmacro MULTIUSER_INIT |
a4e75d90d3f6
Use latin1 in NSIS (fixes encoding errors) Fix command line installation dir.
Andre Heinecke <aheinecke@intevation.de>
parents:
506
diff
changeset
|
191 initDone: |
340
9001eaa55549
Add first draft of packaging to build upon
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
192 FunctionEnd |
9001eaa55549
Add first draft of packaging to build upon
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
193 |
506
bfcfbae151ab
Some packaging changes. Add dummy runAsUser (not working) Update Application icon
Andre Heinecke <aheinecke@intevation.de>
parents:
500
diff
changeset
|
194 ; If we run elevated we do not want to run |
bfcfbae151ab
Some packaging changes. Add dummy runAsUser (not working) Update Application icon
Andre Heinecke <aheinecke@intevation.de>
parents:
500
diff
changeset
|
195 ; the UI elevated as this could be a security |
bfcfbae151ab
Some packaging changes. Add dummy runAsUser (not working) Update Application icon
Andre Heinecke <aheinecke@intevation.de>
parents:
500
diff
changeset
|
196 ; problem. |
bfcfbae151ab
Some packaging changes. Add dummy runAsUser (not working) Update Application icon
Andre Heinecke <aheinecke@intevation.de>
parents:
500
diff
changeset
|
197 Function RunAsUser |
1118
fd85a02d771d
(issue54) Implement a privilege drop to execute the program after installation.
Andre Heinecke <andre.heinecke@intevation.de>
parents:
1010
diff
changeset
|
198 DesktopShellRun::Exec "$INSTDIR\trustbridge.exe" |
506
bfcfbae151ab
Some packaging changes. Add dummy runAsUser (not working) Update Application icon
Andre Heinecke <aheinecke@intevation.de>
parents:
500
diff
changeset
|
199 FunctionEnd |
bfcfbae151ab
Some packaging changes. Add dummy runAsUser (not working) Update Application icon
Andre Heinecke <aheinecke@intevation.de>
parents:
500
diff
changeset
|
200 |
340
9001eaa55549
Add first draft of packaging to build upon
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
201 ;-------------------------------- |
381
73bfc9cc22e7
Improved NSIS installer MUI script. Added sample images and icons.
Emanuel Schuetze <emanuel@intevation.de>
parents:
340
diff
changeset
|
202 ; UnInstall Functions |
1325
303de3160a83
(issue163) Move all uninstaller specifics into IFDEF WRITE_UNINSTALLER sections
Andre Heinecke <andre.heinecke@intevation.de>
parents:
1248
diff
changeset
|
203 !ifdef WRITE_UNINSTALLER |
303de3160a83
(issue163) Move all uninstaller specifics into IFDEF WRITE_UNINSTALLER sections
Andre Heinecke <andre.heinecke@intevation.de>
parents:
1248
diff
changeset
|
204 Function "un.onInit" |
303de3160a83
(issue163) Move all uninstaller specifics into IFDEF WRITE_UNINSTALLER sections
Andre Heinecke <andre.heinecke@intevation.de>
parents:
1248
diff
changeset
|
205 !insertmacro MULTIUSER_UNINIT |
303de3160a83
(issue163) Move all uninstaller specifics into IFDEF WRITE_UNINSTALLER sections
Andre Heinecke <andre.heinecke@intevation.de>
parents:
1248
diff
changeset
|
206 FunctionEnd |
303de3160a83
(issue163) Move all uninstaller specifics into IFDEF WRITE_UNINSTALLER sections
Andre Heinecke <andre.heinecke@intevation.de>
parents:
1248
diff
changeset
|
207 !endif |
340
9001eaa55549
Add first draft of packaging to build upon
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
208 |
9001eaa55549
Add first draft of packaging to build upon
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
209 Section "" |
895
8ac2d9b0668d
Add sleep in installer on update
Andre Heinecke <andre.heinecke@intevation.de>
parents:
870
diff
changeset
|
210 StrCmp $is_update '1' wait_a_bit continue |
8ac2d9b0668d
Add sleep in installer on update
Andre Heinecke <andre.heinecke@intevation.de>
parents:
870
diff
changeset
|
211 wait_a_bit: |
8ac2d9b0668d
Add sleep in installer on update
Andre Heinecke <andre.heinecke@intevation.de>
parents:
870
diff
changeset
|
212 ; The trustbridge.exe might need some time to close |
8ac2d9b0668d
Add sleep in installer on update
Andre Heinecke <andre.heinecke@intevation.de>
parents:
870
diff
changeset
|
213 ; lets give it a chance to avoid failing to overwrite it |
8ac2d9b0668d
Add sleep in installer on update
Andre Heinecke <andre.heinecke@intevation.de>
parents:
870
diff
changeset
|
214 Sleep 1000 |
8ac2d9b0668d
Add sleep in installer on update
Andre Heinecke <andre.heinecke@intevation.de>
parents:
870
diff
changeset
|
215 continue: |
340
9001eaa55549
Add first draft of packaging to build upon
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
216 ; The actual installation |
9001eaa55549
Add first draft of packaging to build upon
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
217 SetOutPath "$INSTDIR" |
1188
eb77ddd7e1ab
(issue137) Generate and include install / uninstall file lists
Andre Heinecke <andre.heinecke@intevation.de>
parents:
1176
diff
changeset
|
218 !include "filelist_in.nsh" |
eb77ddd7e1ab
(issue137) Generate and include install / uninstall file lists
Andre Heinecke <andre.heinecke@intevation.de>
parents:
1176
diff
changeset
|
219 SetOutPath "$INSTDIR" |
340
9001eaa55549
Add first draft of packaging to build upon
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
220 |
588
a4e75d90d3f6
Use latin1 in NSIS (fixes encoding errors) Fix command line installation dir.
Andre Heinecke <aheinecke@intevation.de>
parents:
506
diff
changeset
|
221 ;Create uninstaller |
831
747a48996c1f
(Issue13) Precompile uninstaller
Andre Heinecke <andre.heinecke@intevation.de>
parents:
828
diff
changeset
|
222 !ifndef WRITE_UNINSTALLER |
747a48996c1f
(Issue13) Precompile uninstaller
Andre Heinecke <andre.heinecke@intevation.de>
parents:
828
diff
changeset
|
223 File "${files_dir}${path_sep}Uninstall.exe" |
747a48996c1f
(Issue13) Precompile uninstaller
Andre Heinecke <andre.heinecke@intevation.de>
parents:
828
diff
changeset
|
224 !endif |
588
a4e75d90d3f6
Use latin1 in NSIS (fixes encoding errors) Fix command line installation dir.
Andre Heinecke <aheinecke@intevation.de>
parents:
506
diff
changeset
|
225 |
a4e75d90d3f6
Use latin1 in NSIS (fixes encoding errors) Fix command line installation dir.
Andre Heinecke <aheinecke@intevation.de>
parents:
506
diff
changeset
|
226 ; Code below is not run on updates |
a4e75d90d3f6
Use latin1 in NSIS (fixes encoding errors) Fix command line installation dir.
Andre Heinecke <aheinecke@intevation.de>
parents:
506
diff
changeset
|
227 StrCmp $is_update '1' done |
a4e75d90d3f6
Use latin1 in NSIS (fixes encoding errors) Fix command line installation dir.
Andre Heinecke <aheinecke@intevation.de>
parents:
506
diff
changeset
|
228 |
1343
0971c7214e79
(issue160) Change install prefix to include BSI directory
Andre Heinecke <andre.heinecke@intevation.de>
parents:
1330
diff
changeset
|
229 WriteRegStr SHCTX "Software\BSI\${productname_short}" "" $INSTDIR |
340
9001eaa55549
Add first draft of packaging to build upon
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
230 |
870
e93ae5233217
Readd autostart
Andre Heinecke <andre.heinecke@intevation.de>
parents:
862
diff
changeset
|
231 ; Set up autostart |
901
a10eae8ca290
(issue85) Always install autostart and startmenu only for the installing user.
Andre Heinecke <andre.heinecke@intevation.de>
parents:
895
diff
changeset
|
232 WriteRegStr HKCU "Software\Microsoft\Windows\CurrentVersion\Run" "TrustBridge" "$INSTDIR\trustbridge.exe --tray" |
632
9a18f096129d
Add registry entries for logging.
Andre Heinecke <andre.heinecke@intevation.de>
parents:
588
diff
changeset
|
233 |
9a18f096129d
Add registry entries for logging.
Andre Heinecke <andre.heinecke@intevation.de>
parents:
588
diff
changeset
|
234 ; Register logging |
9a18f096129d
Add registry entries for logging.
Andre Heinecke <andre.heinecke@intevation.de>
parents:
588
diff
changeset
|
235 WriteRegStr SHCTX "System\CurrentControlSet\services\eventlog\Application\${productname_short}" "CategoryMessageFile" "$INSTDIR\trustbridge.exe" |
9a18f096129d
Add registry entries for logging.
Andre Heinecke <andre.heinecke@intevation.de>
parents:
588
diff
changeset
|
236 WriteRegStr SHCTX "System\CurrentControlSet\services\eventlog\Application\${productname_short}" "EventMessageFile" "$INSTDIR\trustbridge.exe" |
9a18f096129d
Add registry entries for logging.
Andre Heinecke <andre.heinecke@intevation.de>
parents:
588
diff
changeset
|
237 WriteRegStr SHCTX "System\CurrentControlSet\services\eventlog\Application\${productname_short}" "ParameterMessageFile" "$INSTDIR\trustbridge.exe" |
9a18f096129d
Add registry entries for logging.
Andre Heinecke <andre.heinecke@intevation.de>
parents:
588
diff
changeset
|
238 WriteRegDword SHCTX "System\CurrentControlSet\services\eventlog\Application\${productname_short}" "TypesSupported" 5 |
9a18f096129d
Add registry entries for logging.
Andre Heinecke <andre.heinecke@intevation.de>
parents:
588
diff
changeset
|
239 WriteRegDword SHCTX "System\CurrentControlSet\services\eventlog\Application\${productname_short}" "CategoryCount" 3 |
494
613fbcb5df0c
Add autostart entry and finish renaming
Andre Heinecke <aheinecke@intevation.de>
parents:
410
diff
changeset
|
240 |
794
fdc15f0cfdd8
(issue61) NSIS Write uninstall information and make URL configurable.
Andre Heinecke <andre.heinecke@intevation.de>
parents:
793
diff
changeset
|
241 ; Register Uninstaller |
fdc15f0cfdd8
(issue61) NSIS Write uninstall information and make URL configurable.
Andre Heinecke <andre.heinecke@intevation.de>
parents:
793
diff
changeset
|
242 |
fdc15f0cfdd8
(issue61) NSIS Write uninstall information and make URL configurable.
Andre Heinecke <andre.heinecke@intevation.de>
parents:
793
diff
changeset
|
243 WriteRegStr SHCTX "Software\Microsoft\Windows\CurrentVersion\Uninstall\${productname_short}" \ |
fdc15f0cfdd8
(issue61) NSIS Write uninstall information and make URL configurable.
Andre Heinecke <andre.heinecke@intevation.de>
parents:
793
diff
changeset
|
244 "DisplayName" "${productname}" |
fdc15f0cfdd8
(issue61) NSIS Write uninstall information and make URL configurable.
Andre Heinecke <andre.heinecke@intevation.de>
parents:
793
diff
changeset
|
245 WriteRegStr SHCTX "Software\Microsoft\Windows\CurrentVersion\Uninstall\${productname_short}" \ |
fdc15f0cfdd8
(issue61) NSIS Write uninstall information and make URL configurable.
Andre Heinecke <andre.heinecke@intevation.de>
parents:
793
diff
changeset
|
246 "DisplayIcon" "$\"$INSTDIR\trustbridge.exe$\"" |
fdc15f0cfdd8
(issue61) NSIS Write uninstall information and make URL configurable.
Andre Heinecke <andre.heinecke@intevation.de>
parents:
793
diff
changeset
|
247 WriteRegStr SHCTX "Software\Microsoft\Windows\CurrentVersion\Uninstall\${productname_short}" \ |
fdc15f0cfdd8
(issue61) NSIS Write uninstall information and make URL configurable.
Andre Heinecke <andre.heinecke@intevation.de>
parents:
793
diff
changeset
|
248 "DisplayVersion" "${version_number}" |
fdc15f0cfdd8
(issue61) NSIS Write uninstall information and make URL configurable.
Andre Heinecke <andre.heinecke@intevation.de>
parents:
793
diff
changeset
|
249 WriteRegStr SHCTX "Software\Microsoft\Windows\CurrentVersion\Uninstall\${productname_short}" \ |
fdc15f0cfdd8
(issue61) NSIS Write uninstall information and make URL configurable.
Andre Heinecke <andre.heinecke@intevation.de>
parents:
793
diff
changeset
|
250 "Publisher" "${company}" |
fdc15f0cfdd8
(issue61) NSIS Write uninstall information and make URL configurable.
Andre Heinecke <andre.heinecke@intevation.de>
parents:
793
diff
changeset
|
251 WriteRegStr SHCTX "Software\Microsoft\Windows\CurrentVersion\Uninstall\${productname_short}" \ |
fdc15f0cfdd8
(issue61) NSIS Write uninstall information and make URL configurable.
Andre Heinecke <andre.heinecke@intevation.de>
parents:
793
diff
changeset
|
252 "URLInfoAbout" "${info_url}" |
fdc15f0cfdd8
(issue61) NSIS Write uninstall information and make URL configurable.
Andre Heinecke <andre.heinecke@intevation.de>
parents:
793
diff
changeset
|
253 WriteRegDword SHCTX "Software\Microsoft\Windows\CurrentVersion\Uninstall\${productname_short}" \ |
fdc15f0cfdd8
(issue61) NSIS Write uninstall information and make URL configurable.
Andre Heinecke <andre.heinecke@intevation.de>
parents:
793
diff
changeset
|
254 "EstimatedSize" "${size}" |
fdc15f0cfdd8
(issue61) NSIS Write uninstall information and make URL configurable.
Andre Heinecke <andre.heinecke@intevation.de>
parents:
793
diff
changeset
|
255 |
fdc15f0cfdd8
(issue61) NSIS Write uninstall information and make URL configurable.
Andre Heinecke <andre.heinecke@intevation.de>
parents:
793
diff
changeset
|
256 |
fdc15f0cfdd8
(issue61) NSIS Write uninstall information and make URL configurable.
Andre Heinecke <andre.heinecke@intevation.de>
parents:
793
diff
changeset
|
257 WriteRegStr SHCTX "Software\Microsoft\Windows\CurrentVersion\Uninstall\${productname_short}" \ |
fdc15f0cfdd8
(issue61) NSIS Write uninstall information and make URL configurable.
Andre Heinecke <andre.heinecke@intevation.de>
parents:
793
diff
changeset
|
258 "UninstallString" "$\"$INSTDIR\uninstall.exe$\"" |
fdc15f0cfdd8
(issue61) NSIS Write uninstall information and make URL configurable.
Andre Heinecke <andre.heinecke@intevation.de>
parents:
793
diff
changeset
|
259 WriteRegStr SHCTX "Software\Microsoft\Windows\CurrentVersion\Uninstall\${productname_short}" \ |
fdc15f0cfdd8
(issue61) NSIS Write uninstall information and make URL configurable.
Andre Heinecke <andre.heinecke@intevation.de>
parents:
793
diff
changeset
|
260 "QuietUninstallString" "$\"$INSTDIR\uninstall.exe$\" /S" |
fdc15f0cfdd8
(issue61) NSIS Write uninstall information and make URL configurable.
Andre Heinecke <andre.heinecke@intevation.de>
parents:
793
diff
changeset
|
261 |
915
715d41aac9c8
(Issue85) Really move start menu entry to user context
Andre Heinecke <andre.heinecke@intevation.de>
parents:
901
diff
changeset
|
262 ; Below this is HKCU only! |
715d41aac9c8
(Issue85) Really move start menu entry to user context
Andre Heinecke <andre.heinecke@intevation.de>
parents:
901
diff
changeset
|
263 SetShellVarContext current |
340
9001eaa55549
Add first draft of packaging to build upon
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
264 !insertmacro MUI_STARTMENU_WRITE_BEGIN Application |
9001eaa55549
Add first draft of packaging to build upon
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
265 |
9001eaa55549
Add first draft of packaging to build upon
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
266 ;Create shortcuts |
9001eaa55549
Add first draft of packaging to build upon
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
267 CreateDirectory "$SMPROGRAMS\$StartMenuFolder" |
494
613fbcb5df0c
Add autostart entry and finish renaming
Andre Heinecke <aheinecke@intevation.de>
parents:
410
diff
changeset
|
268 CreateShortCut "$SMPROGRAMS\$StartMenuFolder\${productname}.lnk" "$INSTDIR\trustbridge.exe" |
340
9001eaa55549
Add first draft of packaging to build upon
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
269 |
9001eaa55549
Add first draft of packaging to build upon
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
270 !insertmacro MUI_STARTMENU_WRITE_END |
588
a4e75d90d3f6
Use latin1 in NSIS (fixes encoding errors) Fix command line installation dir.
Andre Heinecke <aheinecke@intevation.de>
parents:
506
diff
changeset
|
271 done: |
1010
1c1964c27b39
(issue54) commit work in progress on start after installation
Andre Heinecke <andre.heinecke@intevation.de>
parents:
925
diff
changeset
|
272 StrCmp $is_update '1' run_silent dont_run |
1c1964c27b39
(issue54) commit work in progress on start after installation
Andre Heinecke <andre.heinecke@intevation.de>
parents:
925
diff
changeset
|
273 run_silent: |
1124
fd2194295218
(issue54) Start application after update in tray mode
Andre Heinecke <andre.heinecke@intevation.de>
parents:
1118
diff
changeset
|
274 DesktopShellRun::Exec "$INSTDIR\trustbridge.exe" "--tray" |
1010
1c1964c27b39
(issue54) commit work in progress on start after installation
Andre Heinecke <andre.heinecke@intevation.de>
parents:
925
diff
changeset
|
275 dont_run: |
340
9001eaa55549
Add first draft of packaging to build upon
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
276 |
9001eaa55549
Add first draft of packaging to build upon
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
277 SectionEnd |
9001eaa55549
Add first draft of packaging to build upon
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
278 |
831
747a48996c1f
(Issue13) Precompile uninstaller
Andre Heinecke <andre.heinecke@intevation.de>
parents:
828
diff
changeset
|
279 !ifdef WRITE_UNINSTALLER |
1248
9f5893faa60b
(issue143) Only show warning when multiple users exist.
Andre Heinecke <andre.heinecke@intevation.de>
parents:
1245
diff
changeset
|
280 |
9f5893faa60b
(issue143) Only show warning when multiple users exist.
Andre Heinecke <andre.heinecke@intevation.de>
parents:
1245
diff
changeset
|
281 !include "StrFunc.nsh" |
9f5893faa60b
(issue143) Only show warning when multiple users exist.
Andre Heinecke <andre.heinecke@intevation.de>
parents:
1245
diff
changeset
|
282 |
340
9001eaa55549
Add first draft of packaging to build upon
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
283 Section "Uninstall" |
1330
c7349696d812
(issue44) Be more agressive deleting old installers
Andre Heinecke <andre.heinecke@intevation.de>
parents:
1325
diff
changeset
|
284 ExpandEnvStrings $0 %LOCALAPPDATA% |
c7349696d812
(issue44) Be more agressive deleting old installers
Andre Heinecke <andre.heinecke@intevation.de>
parents:
1325
diff
changeset
|
285 Delete "$0\BSI\TrustBridge\SW*.exe" |
859
df6f3b1cc41c
(issue53) Uninstall list-installed if requested.
Andre Heinecke <andre.heinecke@intevation.de>
parents:
835
diff
changeset
|
286 StrCmp "$douninstcertificates" "TRUE" 0 skip_certs |
1242
e4aff35ef8fd
(issue143) Make uninstallation of nss-installer conditional on Windows
Andre Heinecke <andre.heinecke@intevation.de>
parents:
1198
diff
changeset
|
287 nsExec::ExecToLog '"$INSTDIR\trustbridge-certificate-installer.exe" "list=$0\BSI\TrustBridge\list-installed.txt" "choices=uninstall"' |
e4aff35ef8fd
(issue143) Make uninstallation of nss-installer conditional on Windows
Andre Heinecke <andre.heinecke@intevation.de>
parents:
1198
diff
changeset
|
288 Delete "$0\BSI\TrustBridge\list*.txt" |
e4aff35ef8fd
(issue143) Make uninstallation of nss-installer conditional on Windows
Andre Heinecke <andre.heinecke@intevation.de>
parents:
1198
diff
changeset
|
289 ExpandEnvStrings $0 %APPDATA% |
e4aff35ef8fd
(issue143) Make uninstallation of nss-installer conditional on Windows
Andre Heinecke <andre.heinecke@intevation.de>
parents:
1198
diff
changeset
|
290 Delete "$0\BSI\TrustBridge.ini" |
1248
9f5893faa60b
(issue143) Only show warning when multiple users exist.
Andre Heinecke <andre.heinecke@intevation.de>
parents:
1245
diff
changeset
|
291 var /GLOBAL user_count |
9f5893faa60b
(issue143) Only show warning when multiple users exist.
Andre Heinecke <andre.heinecke@intevation.de>
parents:
1245
diff
changeset
|
292 StrCpy $user_count 0 |
1198
c072dda0b541
(issue133) Delete APPDATA local / roaming when certificates are also remvoed
Andre Heinecke <andre.heinecke@intevation.de>
parents:
1188
diff
changeset
|
293 |
1242
e4aff35ef8fd
(issue143) Make uninstallation of nss-installer conditional on Windows
Andre Heinecke <andre.heinecke@intevation.de>
parents:
1198
diff
changeset
|
294 UserInfo::GetAccountType |
e4aff35ef8fd
(issue143) Make uninstallation of nss-installer conditional on Windows
Andre Heinecke <andre.heinecke@intevation.de>
parents:
1198
diff
changeset
|
295 pop $0 |
e4aff35ef8fd
(issue143) Make uninstallation of nss-installer conditional on Windows
Andre Heinecke <andre.heinecke@intevation.de>
parents:
1198
diff
changeset
|
296 ${If} $0 == "admin" |
1248
9f5893faa60b
(issue143) Only show warning when multiple users exist.
Andre Heinecke <andre.heinecke@intevation.de>
parents:
1245
diff
changeset
|
297 ${Do} |
9f5893faa60b
(issue143) Only show warning when multiple users exist.
Andre Heinecke <andre.heinecke@intevation.de>
parents:
1245
diff
changeset
|
298 ; Loop over profile keys |
9f5893faa60b
(issue143) Only show warning when multiple users exist.
Andre Heinecke <andre.heinecke@intevation.de>
parents:
1245
diff
changeset
|
299 EnumRegKey $R1 HKLM "SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList" $R0 |
9f5893faa60b
(issue143) Only show warning when multiple users exist.
Andre Heinecke <andre.heinecke@intevation.de>
parents:
1245
diff
changeset
|
300 ${If} $R1 != "" |
9f5893faa60b
(issue143) Only show warning when multiple users exist.
Andre Heinecke <andre.heinecke@intevation.de>
parents:
1245
diff
changeset
|
301 ${UnStrStr} $R2 $R1 "S-1-5-21-" ;Search for S-1-5-21- |
9f5893faa60b
(issue143) Only show warning when multiple users exist.
Andre Heinecke <andre.heinecke@intevation.de>
parents:
1245
diff
changeset
|
302 ${If} $R2 != "" |
9f5893faa60b
(issue143) Only show warning when multiple users exist.
Andre Heinecke <andre.heinecke@intevation.de>
parents:
1245
diff
changeset
|
303 IntOp $user_count $user_count + 1 |
9f5893faa60b
(issue143) Only show warning when multiple users exist.
Andre Heinecke <andre.heinecke@intevation.de>
parents:
1245
diff
changeset
|
304 ${EndIf} |
9f5893faa60b
(issue143) Only show warning when multiple users exist.
Andre Heinecke <andre.heinecke@intevation.de>
parents:
1245
diff
changeset
|
305 IntOp $R0 $R0 + 1 |
9f5893faa60b
(issue143) Only show warning when multiple users exist.
Andre Heinecke <andre.heinecke@intevation.de>
parents:
1245
diff
changeset
|
306 ${EndIf} |
9f5893faa60b
(issue143) Only show warning when multiple users exist.
Andre Heinecke <andre.heinecke@intevation.de>
parents:
1245
diff
changeset
|
307 ${LoopUntil} $R1 == "" |
9f5893faa60b
(issue143) Only show warning when multiple users exist.
Andre Heinecke <andre.heinecke@intevation.de>
parents:
1245
diff
changeset
|
308 |
9f5893faa60b
(issue143) Only show warning when multiple users exist.
Andre Heinecke <andre.heinecke@intevation.de>
parents:
1245
diff
changeset
|
309 ${if} $user_count > 1 |
1242
e4aff35ef8fd
(issue143) Make uninstallation of nss-installer conditional on Windows
Andre Heinecke <andre.heinecke@intevation.de>
parents:
1198
diff
changeset
|
310 MessageBox MB_ICONINFORMATION|MB_YESNO "\ |
1245
1c77c4c6aff4
(issue143): "Login" -> "anmelden"
Bernhard Reiter <bernhard@intevation.de>
parents:
1244
diff
changeset
|
311 Zertifikate, die f�r andere Nutzer im Zertifikatsspeicher von Firefox und Thunderbird installiert wurden, k�nnen erst beim der n�chsten \ |
1c77c4c6aff4
(issue143): "Login" -> "anmelden"
Bernhard Reiter <bernhard@intevation.de>
parents:
1244
diff
changeset
|
312 Anmeldung dieser Nutzer deinstalliert werden. \ |
1242
e4aff35ef8fd
(issue143) Make uninstallation of nss-installer conditional on Windows
Andre Heinecke <andre.heinecke@intevation.de>
parents:
1198
diff
changeset
|
313 $\r$\n$\r$\n\ |
1244
94685a66950a
(issue143) Updated NSIS uninstall message for multiuser.
Emanuel Schuetze <emanuel@intevation.de>
parents:
1242
diff
changeset
|
314 Die Deinstallation der Zertifikate wird von der folgenden Anwendung durchgef�hrt: $\r$\n '$INSTDIR\trustbridge-nss-installer.exe' $\r$\n$\r$\n\ |
94685a66950a
(issue143) Updated NSIS uninstall message for multiuser.
Emanuel Schuetze <emanuel@intevation.de>
parents:
1242
diff
changeset
|
315 Wenn Zertifikate auch aus den Thunderbird- und Firefox-Speichern anderer Nutzer deinstalliert werden sollen, w�hlen \ |
1245
1c77c4c6aff4
(issue143): "Login" -> "anmelden"
Bernhard Reiter <bernhard@intevation.de>
parents:
1244
diff
changeset
|
316 Sie bitte 'Nein' und l�schen Sie 'trustbridge-nss-installer.exe' manuell nachdem die anderen Nutzer sich einmal angemeldet hatten.$\r$\n \ |
1242
e4aff35ef8fd
(issue143) Make uninstallation of nss-installer conditional on Windows
Andre Heinecke <andre.heinecke@intevation.de>
parents:
1198
diff
changeset
|
317 $\r$\n\ |
e4aff35ef8fd
(issue143) Make uninstallation of nss-installer conditional on Windows
Andre Heinecke <andre.heinecke@intevation.de>
parents:
1198
diff
changeset
|
318 Soll '$INSTDIR\trustbridge-nss-installer.exe' jetzt entfernt werden?" /SD IDYES IDYES deleteNSSInstaller IDNO dontDeleteNSS |
1248
9f5893faa60b
(issue143) Only show warning when multiple users exist.
Andre Heinecke <andre.heinecke@intevation.de>
parents:
1245
diff
changeset
|
319 ${Else} |
9f5893faa60b
(issue143) Only show warning when multiple users exist.
Andre Heinecke <andre.heinecke@intevation.de>
parents:
1245
diff
changeset
|
320 goto deleteNSSInstaller |
9f5893faa60b
(issue143) Only show warning when multiple users exist.
Andre Heinecke <andre.heinecke@intevation.de>
parents:
1245
diff
changeset
|
321 ${Endif} |
1242
e4aff35ef8fd
(issue143) Make uninstallation of nss-installer conditional on Windows
Andre Heinecke <andre.heinecke@intevation.de>
parents:
1198
diff
changeset
|
322 ${Else} |
e4aff35ef8fd
(issue143) Make uninstallation of nss-installer conditional on Windows
Andre Heinecke <andre.heinecke@intevation.de>
parents:
1198
diff
changeset
|
323 Delete "$INSTDIR\trustbridge-nss-installer.exe" |
e4aff35ef8fd
(issue143) Make uninstallation of nss-installer conditional on Windows
Andre Heinecke <andre.heinecke@intevation.de>
parents:
1198
diff
changeset
|
324 ${EndIf} |
859
df6f3b1cc41c
(issue53) Uninstall list-installed if requested.
Andre Heinecke <andre.heinecke@intevation.de>
parents:
835
diff
changeset
|
325 skip_certs: |
1242
e4aff35ef8fd
(issue143) Make uninstallation of nss-installer conditional on Windows
Andre Heinecke <andre.heinecke@intevation.de>
parents:
1198
diff
changeset
|
326 deleteNSSInstaller: |
e4aff35ef8fd
(issue143) Make uninstallation of nss-installer conditional on Windows
Andre Heinecke <andre.heinecke@intevation.de>
parents:
1198
diff
changeset
|
327 Delete "$INSTDIR\trustbridge-nss-installer.exe" |
e4aff35ef8fd
(issue143) Make uninstallation of nss-installer conditional on Windows
Andre Heinecke <andre.heinecke@intevation.de>
parents:
1198
diff
changeset
|
328 dontDeleteNSS: |
1188
eb77ddd7e1ab
(issue137) Generate and include install / uninstall file lists
Andre Heinecke <andre.heinecke@intevation.de>
parents:
1176
diff
changeset
|
329 !include "filelist_un.nsh" |
1330
c7349696d812
(issue44) Be more agressive deleting old installers
Andre Heinecke <andre.heinecke@intevation.de>
parents:
1325
diff
changeset
|
330 ExpandEnvStrings $0 %LOCALAPPDATA% |
c7349696d812
(issue44) Be more agressive deleting old installers
Andre Heinecke <andre.heinecke@intevation.de>
parents:
1325
diff
changeset
|
331 RmDir "$0\BSI\TrustBridge" |
c7349696d812
(issue44) Be more agressive deleting old installers
Andre Heinecke <andre.heinecke@intevation.de>
parents:
1325
diff
changeset
|
332 RmDir "$0\BSI" |
1351
4503af8f6ce4
Delete empty appdata roaming directory and not just local appdata
Andre Heinecke <andre.heinecke@intevation.de>
parents:
1350
diff
changeset
|
333 ExpandEnvStrings $0 %APPDATA% |
4503af8f6ce4
Delete empty appdata roaming directory and not just local appdata
Andre Heinecke <andre.heinecke@intevation.de>
parents:
1350
diff
changeset
|
334 RmDir "$0\BSI" |
1188
eb77ddd7e1ab
(issue137) Generate and include install / uninstall file lists
Andre Heinecke <andre.heinecke@intevation.de>
parents:
1176
diff
changeset
|
335 Delete "$INSTDIR\Uninstall.exe" |
eb77ddd7e1ab
(issue137) Generate and include install / uninstall file lists
Andre Heinecke <andre.heinecke@intevation.de>
parents:
1176
diff
changeset
|
336 RMDir "$INSTDIR" |
1355
1dbe849fd0bf
Remove empty parent directory of installation direcotry.
Andre Heinecke <andre.heinecke@intevation.de>
parents:
1351
diff
changeset
|
337 RMDir "$INSTDIR\.." # The instdir is \trustbridge usually \BSI\TrustBridge we delete the parent directory only if it is empty. So no harm |
1dbe849fd0bf
Remove empty parent directory of installation direcotry.
Andre Heinecke <andre.heinecke@intevation.de>
parents:
1351
diff
changeset
|
338 # done if that is not the case. |
340
9001eaa55549
Add first draft of packaging to build upon
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
339 |
9001eaa55549
Add first draft of packaging to build upon
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
340 !insertmacro MUI_STARTMENU_GETFOLDER Application $StartMenuFolder |
9001eaa55549
Add first draft of packaging to build upon
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
341 |
1343
0971c7214e79
(issue160) Change install prefix to include BSI directory
Andre Heinecke <andre.heinecke@intevation.de>
parents:
1330
diff
changeset
|
342 DeleteRegValue SHCTX "Software\BSI\${productname_short}" "Start Menu Folder" |
340
9001eaa55549
Add first draft of packaging to build upon
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
343 |
1343
0971c7214e79
(issue160) Change install prefix to include BSI directory
Andre Heinecke <andre.heinecke@intevation.de>
parents:
1330
diff
changeset
|
344 DeleteRegKey /ifempty SHCTX "Software\BSI\${productname_short}" |
340
9001eaa55549
Add first draft of packaging to build upon
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
345 |
870
e93ae5233217
Readd autostart
Andre Heinecke <andre.heinecke@intevation.de>
parents:
862
diff
changeset
|
346 ; Unregister autostart |
e93ae5233217
Readd autostart
Andre Heinecke <andre.heinecke@intevation.de>
parents:
862
diff
changeset
|
347 DeleteRegValue SHCTX "Software\Microsoft\Windows\CurrentVersion\Run" "TrustBridge" |
e93ae5233217
Readd autostart
Andre Heinecke <andre.heinecke@intevation.de>
parents:
862
diff
changeset
|
348 |
794
fdc15f0cfdd8
(issue61) NSIS Write uninstall information and make URL configurable.
Andre Heinecke <andre.heinecke@intevation.de>
parents:
793
diff
changeset
|
349 ; Unregister logging |
fdc15f0cfdd8
(issue61) NSIS Write uninstall information and make URL configurable.
Andre Heinecke <andre.heinecke@intevation.de>
parents:
793
diff
changeset
|
350 DeleteRegKey SHCTX "System\CurrentControlSet\services\eventlog\Application\${productname_short}" |
fdc15f0cfdd8
(issue61) NSIS Write uninstall information and make URL configurable.
Andre Heinecke <andre.heinecke@intevation.de>
parents:
793
diff
changeset
|
351 |
fdc15f0cfdd8
(issue61) NSIS Write uninstall information and make URL configurable.
Andre Heinecke <andre.heinecke@intevation.de>
parents:
793
diff
changeset
|
352 ; Remove uninstaller |
fdc15f0cfdd8
(issue61) NSIS Write uninstall information and make URL configurable.
Andre Heinecke <andre.heinecke@intevation.de>
parents:
793
diff
changeset
|
353 DeleteRegKey SHCTX "Software\Microsoft\Windows\CurrentVersion\Uninstall\${productname_short}" |
915
715d41aac9c8
(Issue85) Really move start menu entry to user context
Andre Heinecke <andre.heinecke@intevation.de>
parents:
901
diff
changeset
|
354 |
715d41aac9c8
(Issue85) Really move start menu entry to user context
Andre Heinecke <andre.heinecke@intevation.de>
parents:
901
diff
changeset
|
355 ; Below this is HKCU only! |
715d41aac9c8
(Issue85) Really move start menu entry to user context
Andre Heinecke <andre.heinecke@intevation.de>
parents:
901
diff
changeset
|
356 SetShellVarContext current |
715d41aac9c8
(Issue85) Really move start menu entry to user context
Andre Heinecke <andre.heinecke@intevation.de>
parents:
901
diff
changeset
|
357 |
715d41aac9c8
(Issue85) Really move start menu entry to user context
Andre Heinecke <andre.heinecke@intevation.de>
parents:
901
diff
changeset
|
358 Delete "$SMPROGRAMS\$StartMenuFolder\${productname}.lnk" |
715d41aac9c8
(Issue85) Really move start menu entry to user context
Andre Heinecke <andre.heinecke@intevation.de>
parents:
901
diff
changeset
|
359 RMDir "$SMPROGRAMS\$StartMenuFolder" |
715d41aac9c8
(Issue85) Really move start menu entry to user context
Andre Heinecke <andre.heinecke@intevation.de>
parents:
901
diff
changeset
|
360 |
340
9001eaa55549
Add first draft of packaging to build upon
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
361 SectionEnd |
831
747a48996c1f
(Issue13) Precompile uninstaller
Andre Heinecke <andre.heinecke@intevation.de>
parents:
828
diff
changeset
|
362 !endif |