~ubuntu-branches/ubuntu/maverick/poedit/maverick

« back to all changes in this revision

Viewing changes to win32/poedit.iss

  • Committer: Bazaar Package Importer
  • Author(s): Daniel Baumann
  • Date: 2007-11-26 21:58:00 UTC
  • mfrom: (0.2.7 upstream)
  • Revision ID: james.westby@ubuntu.com-20071126215800-x4p16ysb2la158fu
Tags: 1.3.8~pre1-1
New upstream release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
;
2
 
;   This file is part of Poedit (http://www.poedit.net)
3
 
;
4
 
;   Copyright (C) 1999-2007 Vaclav Slavik
5
 
;
6
 
;   Permission is hereby granted, free of charge, to any person obtaining a
7
 
;   copy of this software and associated documentation files (the "Software"),
8
 
;   to deal in the Software without restriction, including without limitation
9
 
;   the rights to use, copy, modify, merge, publish, distribute, sublicense,
10
 
;   and/or sell copies of the Software, and to permit persons to whom the
11
 
;   Software is furnished to do so, subject to the following conditions:
12
 
;
13
 
;   The above copyright notice and this permission notice shall be included in
14
 
;   all copies or substantial portions of the Software.
15
 
;
16
 
;   THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17
 
;   IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18
 
;   FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19
 
;   AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20
 
;   LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
21
 
;   FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
22
 
;   DEALINGS IN THE SOFTWARE.
23
 
;
24
 
;   $Id: poedit.iss 1175 2007-10-03 06:38:00Z vaclavslavik $
25
 
;
26
 
;   Inno Setup installer script
27
 
;
28
 
 
29
 
#define VERSION          "1.3.7"
30
 
 
31
 
; FIXME: extract this from manifest file somehow?
32
 
#define CRT_VERSION      "8.0.50727.762"
33
 
#define CRT_HASH1        "1fc8b3b9a1e18e3b"
34
 
#define CRT_HASH2        "6b128700"
35
 
#define ASSEMBLY         "x86_Microsoft.VC80.CRT_" + CRT_HASH1 + "_" + CRT_VERSION + "_x-ww_" + CRT_HASH2
36
 
#define WINDIR           GetEnv("WINDIR")
37
 
 
38
 
[Setup]
39
 
OutputBaseFilename=poedit-{#VERSION}-setup
40
 
AppName=Poedit
41
 
AppVerName=Poedit {#VERSION}
42
 
 
43
 
ChangesAssociations=true
44
 
AlwaysShowComponentsList=true
45
 
SourceDir=..
46
 
DefaultDirName={pf}\Poedit
47
 
 
48
 
DefaultGroupName=Poedit
49
 
AllowNoIcons=true
50
 
LicenseFile=COPYING
51
 
OutputDir=.
52
 
InfoAfterFile=
53
 
Compression=lzma/ultra
54
 
 
55
 
WindowShowCaption=true
56
 
WindowStartMaximized=false
57
 
FlatComponentsList=true
58
 
WindowResizable=true
59
 
 
60
 
 
61
 
 
62
 
SolidCompression=true
63
 
ShowLanguageDialog=no
64
 
AllowUNCPath=true
65
 
InternalCompressLevel=ultra
66
 
AppID={{68EB2C37-083A-4303-B5D8-41FA67E50B8F}
67
 
VersionInfoTextVersion={#VERSION}
68
 
VersionInfoCopyright=� 1999-2007 Vaclav Slavik
69
 
VersionInfoVersion={#VERSION}
70
 
VersionInfoCompany=Vaclav Slavik
71
 
VersionInfoDescription=Installer for Poedit
72
 
AppCopyright=� 1999-2007 Vaclav Slavik
73
 
AppPublisher=Vaclav Slavik
74
 
AppSupportURL=http://www.poedit.net/support.php
75
 
AppUpdatesURL=http://www.poedit.net/download.php
76
 
AppVersion={#VERSION}
77
 
AppContact=poedit-users@lists.sourceforge.net
78
 
UninstallDisplayIcon={app}\bin\poedit.exe
79
 
UninstallDisplayName=Poedit
80
 
MinVersion=0,4.0.1381
81
 
 
82
 
[Files]
83
 
Source: win32\poedit.exe; DestDir: {app}\bin; DestName: poedit.exe; Components: core
84
 
Source: deps\gettext\COPYING; DestDir: {app}\doc; Components: docs; DestName: GNU_Gettext_COPYING.txt
85
 
Source: deps\gettext\xgettext.exe; DestDir: {app}\bin; Components: core
86
 
Source: deps\gettext\msgmerge.exe; DestDir: {app}\bin; Components: core
87
 
Source: deps\gettext\msgunfmt.exe; DestDir: {app}\bin; Components: core
88
 
Source: deps\gettext\msgfmt.exe; DestDir: {app}\bin; Components: core
89
 
Source: README; DestDir: {app}\doc; DestName: readme.txt; Components: docs
90
 
Source: docs\chm\poedit.chm; DestDir: {app}\share\poedit\help\en; Components: docs
91
 
Source: docs\chm\gettext.chm; DestDir: {app}\share\poedit\help\en\gettext; Components: docs
92
 
Source: docs\chm\poedit-hr.chm; DestDir: {app}\share\poedit\help\hr; Components: i18n
93
 
Source: COPYING; DestDir: {app}\doc; DestName: copying.txt; Components: docs
94
 
Source: NEWS; DestDir: {app}\doc; DestName: news.txt; Components: docs
95
 
Source: src\icons\*.png; DestDir: {app}\share\poedit\icons; Components: core
96
 
Source: {#WINDIR}\WinSxS\Manifests\{#ASSEMBLY}.manifest; DestDir: {app}\bin; Components: core; DestName: Microsoft.VC80.CRT.manifest
97
 
Source: {#WINDIR}\WinSxS\{#ASSEMBLY}\*.dll; DestDir: {app}\bin; Components: core
98
 
#include "poedit-locale-files.iss"
99
 
 
100
 
[InstallDelete]
101
 
; delete files from previous versions that are no longer needed (and in case of
102
 
; poedit.exe.manifest, actually harmful):
103
 
Name: {app}\bin\poedit.exe.manifest; Type: files; Components: core
104
 
Name: {app}\bin\gettextlib.dll; Type: files; Components: core
105
 
Name: {app}\bin\gettextsrc.dll; Type: files; Components: core
106
 
Name: {app}\bin\iconv.dll; Type: files; Components: core
107
 
Name: {app}\bin\intl.dll; Type: files; Components: core
108
 
Name: {app}\bin\mingwm10.dll; Type: files; Components: core
109
 
 
110
 
[Registry]
111
 
Root: HKCR; SubKey: .po; ValueType: string; ValueData: GettextFile; Flags: uninsdeletekey noerror
112
 
Root: HKCR; SubKey: GettextFile; ValueType: string; ValueData: Gettext message catalog; Flags: uninsdeletekey noerror
113
 
Root: HKCR; SubKey: GettextFile\Shell\Open\Command; ValueType: string; ValueData: """{app}\bin\poedit.exe"" ""%1"""; Flags: uninsdeletevalue noerror
114
 
Root: HKCR; Subkey: GettextFile\DefaultIcon; ValueType: string; ValueData: {app}\bin\poedit.exe,0; Flags: uninsdeletekey noerror
115
 
Root: HKCU; Subkey: Software\Vaclav Slavik; Flags: uninsdeletekeyifempty dontcreatekey
116
 
Root: HKCU; Subkey: Software\Vaclav Slavik\poedit; Flags: uninsdeletekey dontcreatekey
117
 
Root: HKLM; Subkey: Software\Vaclav Slavik; Flags: uninsdeletekeyifempty; Check: InstallGlobally
118
 
Root: HKLM; Subkey: Software\Vaclav Slavik\poedit; Flags: uninsdeletekey; Check: InstallGlobally
119
 
Root: HKLM; Subkey: Software\Vaclav Slavik\poedit\{#VERSION}; ValueType: string; ValueName: application_path; ValueData: {app}; Flags: uninsdeletevalue; Check: InstallGlobally
120
 
Root: HKCU; Subkey: Software\Vaclav Slavik; Flags: uninsdeletekeyifempty; Check: InstallLocally
121
 
Root: HKCU; Subkey: Software\Vaclav Slavik\poedit\{#VERSION}; ValueType: string; ValueName: application_path; ValueData: {app}; Flags: uninsdeletevalue; Check: InstallLocally
122
 
 
123
 
[Icons]
124
 
Name: {group}\Poedit; Filename: {app}\bin\poedit.exe; WorkingDir: {app}; IconIndex: 0
125
 
Name: {group}\Readme; Filename: {app}\doc\readme.txt; IconIndex: 0
126
 
 
127
 
[Run]
128
 
Filename: {app}\doc\readme.txt; Description: View readme.txt; Flags: shellexec postinstall unchecked; Components: docs
129
 
Filename: {app}\bin\poedit.exe; WorkingDir: {app}; Description: Run Poedit now; Flags: postinstall unchecked nowait
130
 
 
131
 
[_ISTool]
132
 
UseAbsolutePaths=false
133
 
 
134
 
[Dirs]
135
 
Name: {app}\bin; Components: core
136
 
Name: {app}\doc; Components: docs
137
 
Name: {app}\share; Components: core
138
 
Name: {app}\share\locale; Components: core
139
 
Name: {app}\share\poedit; Components: core
140
 
Name: {app}\share\poedit\icons; Components: core
141
 
Name: {app}\share\poedit\help; Components: docs
142
 
Name: {app}\share\poedit\help\en; Components: docs
143
 
Name: {app}\share\poedit\help\en\gettext; Components: docs
144
 
Name: {app}\share\poedit\help\hr; Components: docs
145
 
#include "poedit-locale-dirs.iss"
146
 
 
147
 
[Components]
148
 
Name: core; Description: Core files; Flags: fixed; Types: custom compact full
149
 
Name: docs; Description: Documentation; Types: custom compact full
150
 
Name: i18n; Description: Localization files for the UI; Types: full
151
 
 
152
 
[Messages]
153
 
BeveledLabel=http://www.poedit.net
154
 
 
155
 
[Code]
156
 
 
157
 
{ ------------------------------------------------------------------ }
158
 
{ Helper functions:                                                  }
159
 
{ ------------------------------------------------------------------ }
160
 
 
161
 
function InstallLocally : boolean;
162
 
begin
163
 
  result := not IsAdminLoggedOn;
164
 
end;
165
 
 
166
 
function InstallGlobally : boolean;
167
 
begin
168
 
  result := IsAdminLoggedOn;
169
 
end;
 
1
;
 
2
;   This file is part of Poedit (http://www.poedit.net)
 
3
;
 
4
;   Copyright (C) 1999-2007 Vaclav Slavik
 
5
;
 
6
;   Permission is hereby granted, free of charge, to any person obtaining a
 
7
;   copy of this software and associated documentation files (the "Software"),
 
8
;   to deal in the Software without restriction, including without limitation
 
9
;   the rights to use, copy, modify, merge, publish, distribute, sublicense,
 
10
;   and/or sell copies of the Software, and to permit persons to whom the
 
11
;   Software is furnished to do so, subject to the following conditions:
 
12
;
 
13
;   The above copyright notice and this permission notice shall be included in
 
14
;   all copies or substantial portions of the Software.
 
15
;
 
16
;   THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 
17
;   IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 
18
;   FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 
19
;   AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 
20
;   LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
 
21
;   FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
 
22
;   DEALINGS IN THE SOFTWARE.
 
23
;
 
24
;   $Id: poedit.iss 1220 2007-11-24 17:48:46Z vaclavslavik $
 
25
;
 
26
;   Inno Setup installer script
 
27
;
 
28
 
 
29
#define VERSION          "1.3.8"
 
30
#define VERSION_FULL     "1.3.8pre1"
 
31
 
 
32
; FIXME: extract this from manifest file somehow?
 
33
#define CRT_VERSION      "8.0.50727.762"
 
34
#define CRT_HASH1        "1fc8b3b9a1e18e3b"
 
35
#define CRT_HASH2        "6b128700"
 
36
#define ASSEMBLY         "x86_Microsoft.VC80.CRT_" + CRT_HASH1 + "_" + CRT_VERSION + "_x-ww_" + CRT_HASH2
 
37
#define WINDIR           GetEnv("WINDIR")
 
38
 
 
39
#include "poedit-locale-files.iss"
 
40
 
 
41
[Setup]
 
42
OutputBaseFilename=poedit-{#VERSION_FULL}-setup
 
43
AppName=Poedit
 
44
AppVerName=Poedit {#VERSION_FULL}
 
45
 
 
46
ChangesAssociations=true
 
47
AlwaysShowComponentsList=true
 
48
SourceDir=..
 
49
DefaultDirName={pf}\Poedit
 
50
 
 
51
DefaultGroupName=Poedit
 
52
AllowNoIcons=true
 
53
LicenseFile=COPYING
 
54
OutputDir=.
 
55
InfoAfterFile=
 
56
Compression=lzma/ultra
 
57
 
 
58
WindowShowCaption=true
 
59
WindowStartMaximized=false
 
60
FlatComponentsList=true
 
61
WindowResizable=true
 
62
 
 
63
 
 
64
 
 
65
SolidCompression=true
 
66
ShowLanguageDialog=no
 
67
AllowUNCPath=true
 
68
InternalCompressLevel=ultra
 
69
AppID={{68EB2C37-083A-4303-B5D8-41FA67E50B8F}
 
70
VersionInfoTextVersion={#VERSION_FULL}
 
71
VersionInfoCopyright=� 1999-2007 Vaclav Slavik
 
72
VersionInfoVersion={#VERSION}
 
73
VersionInfoCompany=Vaclav Slavik
 
74
VersionInfoDescription=Installer for Poedit
 
75
AppCopyright=� 1999-2007 Vaclav Slavik
 
76
AppPublisher=Vaclav Slavik
 
77
AppSupportURL=http://www.poedit.net/support.php
 
78
AppUpdatesURL=http://www.poedit.net/download.php
 
79
AppVersion={#VERSION_FULL}
 
80
AppContact=poedit-users@lists.sourceforge.net
 
81
UninstallDisplayIcon={app}\bin\poedit.exe
 
82
UninstallDisplayName=Poedit
 
83
MinVersion=0,4.0.1381
 
84
 
 
85
[Files]
 
86
Source: win32\poedit.exe; DestDir: {app}\bin; DestName: poedit.exe; Components: core
 
87
Source: deps\gettext\COPYING; DestDir: {app}\doc; Components: docs; DestName: GNU_Gettext_COPYING.txt
 
88
Source: deps\gettext\xgettext.exe; DestDir: {app}\bin; Components: core
 
89
Source: deps\gettext\msgmerge.exe; DestDir: {app}\bin; Components: core
 
90
Source: deps\gettext\msgunfmt.exe; DestDir: {app}\bin; Components: core
 
91
Source: deps\gettext\msgfmt.exe; DestDir: {app}\bin; Components: core
 
92
Source: deps\gettext\msgcat.exe; DestDir: {app}\bin; Components: core
 
93
Source: README; DestDir: {app}\doc; DestName: readme.txt; Components: docs
 
94
Source: docs\chm\poedit.chm; DestDir: {app}\share\poedit\help\en; Components: docs
 
95
Source: docs\chm\gettext.chm; DestDir: {app}\share\poedit\help\en\gettext; Components: docs
 
96
Source: docs\chm\poedit-hr.chm; DestDir: {app}\share\poedit\help\hr; Components: i18n
 
97
Source: COPYING; DestDir: {app}\doc; DestName: copying.txt; Components: docs
 
98
Source: NEWS; DestDir: {app}\doc; DestName: news.txt; Components: docs
 
99
Source: src\icons\*.png; DestDir: {app}\share\poedit\icons; Components: core
 
100
Source: {#WINDIR}\WinSxS\Manifests\{#ASSEMBLY}.manifest; DestDir: {app}\bin; Components: core; DestName: Microsoft.VC80.CRT.manifest
 
101
Source: {#WINDIR}\WinSxS\{#ASSEMBLY}\*.dll; DestDir: {app}\bin; Components: core
 
102
#emit LocaleFiles
 
103
 
 
104
[InstallDelete]
 
105
; delete files from previous versions that are no longer needed (and in case of
 
106
; poedit.exe.manifest, actually harmful):
 
107
Name: {app}\bin\poedit.exe.manifest; Type: files; Components: core
 
108
Name: {app}\bin\gettextlib.dll; Type: files; Components: core
 
109
Name: {app}\bin\gettextsrc.dll; Type: files; Components: core
 
110
Name: {app}\bin\iconv.dll; Type: files; Components: core
 
111
Name: {app}\bin\intl.dll; Type: files; Components: core
 
112
Name: {app}\bin\mingwm10.dll; Type: files; Components: core
 
113
 
 
114
[Registry]
 
115
Root: HKCR; SubKey: .po; ValueType: string; ValueData: GettextFile; Flags: uninsdeletekey noerror
 
116
Root: HKCR; SubKey: GettextFile; ValueType: string; ValueData: Gettext message catalog; Flags: uninsdeletekey noerror
 
117
Root: HKCR; SubKey: GettextFile\Shell\Open\Command; ValueType: string; ValueData: """{app}\bin\poedit.exe"" ""%1"""; Flags: uninsdeletevalue noerror
 
118
Root: HKCR; Subkey: GettextFile\DefaultIcon; ValueType: string; ValueData: {app}\bin\poedit.exe,0; Flags: uninsdeletekey noerror
 
119
Root: HKCU; Subkey: Software\Vaclav Slavik; Flags: uninsdeletekeyifempty dontcreatekey
 
120
Root: HKCU; Subkey: Software\Vaclav Slavik\poedit; Flags: uninsdeletekey dontcreatekey
 
121
 
 
122
[Icons]
 
123
Name: {group}\Poedit; Filename: {app}\bin\poedit.exe; WorkingDir: {app}; IconIndex: 0
 
124
Name: {group}\Readme; Filename: {app}\doc\readme.txt; IconIndex: 0
 
125
 
 
126
[Run]
 
127
Filename: {app}\doc\readme.txt; Description: View readme.txt; Flags: shellexec postinstall unchecked; Components: docs
 
128
Filename: {app}\bin\poedit.exe; WorkingDir: {app}; Description: Run Poedit now; Flags: postinstall unchecked nowait
 
129
 
 
130
[_ISTool]
 
131
UseAbsolutePaths=false
 
132
 
 
133
[Dirs]
 
134
Name: {app}\bin; Components: core
 
135
Name: {app}\doc; Components: docs
 
136
Name: {app}\share; Components: core
 
137
Name: {app}\share\locale; Components: i18n
 
138
Name: {app}\share\poedit; Components: core
 
139
Name: {app}\share\poedit\icons; Components: core
 
140
Name: {app}\share\poedit\help; Components: docs
 
141
Name: {app}\share\poedit\help\en; Components: docs
 
142
Name: {app}\share\poedit\help\en\gettext; Components: docs
 
143
Name: {app}\share\poedit\help\hr; Components: docs
 
144
 
 
145
[Components]
 
146
Name: core; Description: Core files; Flags: fixed; Types: custom compact full
 
147
Name: docs; Description: Documentation; Types: custom compact full
 
148
Name: i18n; Description: Localization files for the UI; Types: full
 
149
 
 
150
[Messages]
 
151
BeveledLabel=http://www.poedit.net
 
152