~ubuntu-branches/debian/sid/389-console/sid

« back to all changes in this revision

Viewing changes to win/Console.wxs

  • Committer: Package Import Robot
  • Author(s): Timo Aaltonen
  • Date: 2012-03-15 19:02:48 UTC
  • Revision ID: package-import@ubuntu.com-20120315190248-y4en2wl2kgfb0edl
Tags: upstream-1.1.7
ImportĀ upstreamĀ versionĀ 1.1.7

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?xml version='1.0' encoding='windows-1252'?>
 
2
<!-- BEGIN COPYRIGHT BLOCK
 
3
 This Program is free software; you can redistribute it and/or modify it under
 
4
 the terms of the GNU General Public License as published by the Free Software
 
5
 Foundation; version 2 of the License.
 
6
 
 
7
 This Program is distributed in the hope that it will be useful, but WITHOUT
 
8
 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 
9
 FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
 
10
 
 
11
 You should have received a copy of the GNU General Public License along with
 
12
 this Program; if not, write to the Free Software Foundation, Inc., 59 Temple
 
13
 Place, Suite 330, Boston, MA 02111-1307 USA.
 
14
 
 
15
 In addition, as a special exception, Red Hat, Inc. gives You the additional
 
16
 right to link the code of this Program with code not covered under the GNU
 
17
 General Public License ("Non-GPL Code") and to distribute linked combinations
 
18
 including the two, subject to the limitations in this paragraph. Non-GPL Code
 
19
 permitted under this exception must only link to the code of this Program
 
20
 through those well defined interfaces identified in the file named EXCEPTION
 
21
 found in the source code files (the "Approved Interfaces"). The files of
 
22
 Non-GPL Code may instantiate templates or use macros or inline functions from
 
23
 the Approved Interfaces without causing the resulting work to be covered by
 
24
 the GNU General Public License. Only Red Hat, Inc. may make changes or
 
25
 additions to the list of Approved Interfaces. You must obey the GNU General
 
26
 Public License in all respects for all of the Program code and other code used
 
27
 in conjunction with the Program except the Non-GPL Code covered by this
 
28
 exception. If you modify this file, you may extend this exception to your
 
29
 version of the file, but you are not obligated to do so. If you do not wish to
 
30
 provide this exception without modification, you must delete this exception
 
31
 statement from your version and license this file solely under the GPL without
 
32
 exception. 
 
33
 
 
34
 
 
35
 Copyright (C) 2007 Red Hat, Inc.
 
36
 All rights reserved.
 
37
 END COPYRIGHT BLOCK -->
 
38
<?if $(var.USE64)=1 ?>
 
39
    <?define Property_PFilesFolder = "ProgramFiles64Folder" ?>
 
40
    <?define Property_Win64 = "yes" ?>
 
41
    <?define Property_Platform = "x64" ?>
 
42
<?else ?>
 
43
    <?define Property_PFilesFolder = "ProgramFilesFolder" ?>
 
44
    <?define Property_Win64 = "no" ?>
 
45
    <?define Property_Platform = "Intel" ?>
 
46
<?endif ?>
 
47
<?define EMPTY = "" ?>
 
48
 
 
49
<Wix xmlns='http://schemas.microsoft.com/wix/2003/01/wi'>
 
50
  <Product Name='$(var.PRODUCTNAME)' Id='$(var.PKGGUID)'
 
51
    Language='1033' Codepage='1252' UpgradeCode='$(var.UPGRADEGUID)'
 
52
    Version='$(var.VERSION)' Manufacturer='$(var.VENDOR)'>
 
53
 
 
54
    <Package Id='????????-????-????-????-????????????' Keywords='Installer'
 
55
      Description="$(var.PRODUCTNAME) Installer"
 
56
      Manufacturer='$(var.VENDOR)' Platforms='$(var.Property_Platform)'
 
57
      InstallerVersion='200' Languages='1033' Compressed='yes' SummaryCodepage='1252' />
 
58
 
 
59
    <!-- previous versions of this package were installed using the per-user context -->
 
60
    <!-- explicitly set this and future packages to be per-machine (All Users) -->
 
61
    <Property Id='ALLUSERS' Value="1" />
 
62
 
 
63
    <Upgrade Id='$(var.UPGRADEGUID)'>
 
64
      <UpgradeVersion OnlyDetect='yes' Property='NEWERFOUND'
 
65
        Minimum='$(var.VERSION)' IncludeMinimum='no' />
 
66
    </Upgrade>
 
67
 
 
68
    <Media Id='1' Cabinet='Sample.cab' EmbedCab='yes' DiskPrompt="CD-ROM #1" />
 
69
    <Property Id='DiskPrompt' Value="Console Installation [1]" />
 
70
 
 
71
<?if $(var.OLDGUID) AND ($(var.OLDGUID) != $(var.EMPTY)) ?>
 
72
    <Property Id='OLDGUID' Value="{$(var.OLDGUID)}" />
 
73
<?endif ?>
 
74
<?if $(var.OLDSHORTCUT) AND ($(var.OLDSHORTCUT) != $(var.EMPTY)) ?>
 
75
    <Property Id='OLDSHORTCUT' Value="$(var.OLDSHORTCUT)" />
 
76
<?endif ?>
 
77
<?if $(var.OLDPROGRAMFOLDER) AND ($(var.OLDPROGRAMFOLDER) != $(var.EMPTY)) ?>
 
78
    <Property Id='OLDPROGRAMFOLDER' Value="$(var.OLDPROGRAMFOLDER)" />
 
79
<?endif ?>
 
80
 
 
81
    <Property Id='MSIEXEC' Value="msiexec.exe" />
 
82
 
 
83
    <CustomAction Id='AlreadyUpdated' Error='[ProductName] [ProductVersion] is already installed.' />
 
84
    <CustomAction Id='NoDowngrade' Error='A later version of [ProductName] is already installed.' />
 
85
    <CustomAction Id='RemoveOldPkg' Property='MSIEXEC' ExeCommand='/x [OLDGUID] /qn' Return='asyncNoWait' />
 
86
    <CustomAction Id='RemoveOldShortcuts' Script='vbscript'>
 
87
      <![CDATA[
 
88
      On error resume next
 
89
      set rec = Session.installer.CreateRecord(1)
 
90
      msgtype = &H04000000
 
91
      rec.StringData(1) = "RemoveOldShortcuts: Begin"
 
92
      Session.Message msgtype, rec
 
93
      Dim fso
 
94
      Set fso = CreateObject("Scripting.FileSystemObject")
 
95
      oldsc = Session.Property("OLDSHORTCUT")
 
96
      rec.StringData(1) = "RemoveOldShortcuts: old shortcut is " & oldsc
 
97
      Session.Message msgtype, rec
 
98
      oldfldr = Session.Property("OLDPROGRAMFOLDER")
 
99
      rec.StringData(1) = "RemoveOldShortcuts: old program folder is " & oldfldr
 
100
      Session.Message msgtype, rec
 
101
      dskfldr = Session.Property("DesktopFolder")
 
102
      rec.StringData(1) = "RemoveOldShortcuts: DesktopFolder is " & dskfldr
 
103
      Session.Message msgtype, rec
 
104
      For Each userfldr in fso.GetFolder(dskfldr).ParentFolder.ParentFolder.SubFolders
 
105
        ' for each userfldr
 
106
        ' look for Desktop\oldshortcut and remove
 
107
        If userfldr.name <> "All Users" Then
 
108
          fullpath = userfldr.path & "\Desktop\" & oldsc
 
109
          If fso.FileExists(fullpath) Then
 
110
            rec.StringData(1) = "RemoveOldShortcuts: Removing old shortcut " & fullpath
 
111
            Session.Message msgtype, rec
 
112
            fso.DeleteFile(fullpath)
 
113
          Else
 
114
            rec.StringData(1) = "RemoveOldShortcuts: ignoring missing old shortcut " & fullpath
 
115
            Session.Message msgtype, rec
 
116
          End If
 
117
          ' look for Start Menu\Programs\oldfldr and remove
 
118
          fullpath = userfldr.path & "\Start Menu\Programs\" & oldfldr
 
119
          If fso.FolderExists(fullpath) Then
 
120
            rec.StringData(1) = "RemoveOldShortcuts: Removing old program folder " & fullpath
 
121
            Session.Message msgtype, rec
 
122
            fso.DeleteFolder(fullpath)
 
123
          Else
 
124
            rec.StringData(1) = "RemoveOldShortcuts: ignoring missing old program folder " & fullpath
 
125
            Session.Message msgtype, rec
 
126
          End If
 
127
        Else
 
128
          rec.StringData(1) = "RemoveOldShortcuts: skipping folder " & userfldr.name
 
129
          Session.Message msgtype, rec
 
130
        End If ' not All Users
 
131
      Next
 
132
      rec.StringData(1) = "RemoveOldShortcuts: End"
 
133
      Session.Message msgtype, rec
 
134
      ]]>
 
135
    </CustomAction>
 
136
 
 
137
    <Directory Id='TARGETDIR' Name='SourceDir'>
 
138
      <!-- the VC runtime redist package -->
 
139
      <Merge Id='CRT' Language='0' src='$(var.CRTMSM)' DiskId='1'/>
 
140
      <Merge Id='PolicyCRT' Language='0' src='$(var.POLICYCRTMSM)' DiskId='1'/>
 
141
 
 
142
      <Directory Id='$(var.Property_PFilesFolder)' Name='PFiles'>
 
143
 
 
144
        <Directory Id='INSTALLDIR' Name='CONFLDR' LongName='$(var.PRODUCTNAME)'>
 
145
 
 
146
          <Component Id='NSPRLibrary' Guid='DE133754-3C99-49e7-8A71-0375AB348CDD' Win64='$(var.Property_Win64)'>
 
147
            <File Id='NSPR' LongName='libnspr4.dll' Name='libnspr4.dll' DiskId='1' src='libnspr4.dll' Vital='yes' />
 
148
          </Component>
 
149
 
 
150
          <Component Id='NSPRpldsLibrary' Guid='7DCDBD30-DC5B-4c89-BD94-EE55E1D9D082' Win64='$(var.Property_Win64)'>
 
151
            <File Id='NSPRPLDS' LongName='libplds4.dll' Name='libplds4.dll' DiskId='1' src='libplds4.dll' Vital='yes' />
 
152
          </Component>
 
153
 
 
154
          <Component Id='NSPRplcLibrary' Guid='4E707871-BA8E-41e2-982E-E3E79E85A599' Win64='$(var.Property_Win64)'>
 
155
            <File Id='NSPRPLC' LongName='libplc4.dll' Name='libplc4.dll' DiskId='1' src='libplc4.dll' Vital='yes' />
 
156
          </Component>
 
157
 
 
158
          <Component Id='NSSLibrary' Guid='3196F339-901E-42c4-AAD3-704775DCF5F4' Win64='$(var.Property_Win64)'>
 
159
            <File Id='NSS' LongName='nss3.dll' Name='nss3.dll' DiskId='1' src='nss3.dll' Vital='yes' />
 
160
          </Component>
 
161
 
 
162
          <Component Id='NSSsslLibrary' Guid='004E7F81-77E8-4681-810B-E97EC9BE49F2' Win64='$(var.Property_Win64)'>
 
163
            <File Id='NSSSSL' LongName='ssl3.dll' Name='ssl3.dll' DiskId='1' src='ssl3.dll' Vital='yes' />
 
164
          </Component>
 
165
 
 
166
          <Component Id='NSSsoftoknLibrary' Guid='B20D5FB4-B985-4c44-B4AA-8657C74B8061' Win64='$(var.Property_Win64)'>
 
167
            <File Id='NSSSOFTTOKN' LongName='softokn3.dll' Name='softokn3.dll' DiskId='1' src='softokn3.dll' Vital='yes' />
 
168
          </Component>
 
169
 
 
170
          <Component Id='NSSsmimeLibrary' Guid='84BD3153-5E80-4556-9B6C-C67B13B3BEA9' Win64='$(var.Property_Win64)'>
 
171
            <File Id='NSSSMIME' LongName='smime3.dll' Name='smime3.dll' DiskId='1' src='smime3.dll' Vital='yes' />
 
172
          </Component>
 
173
 
 
174
          <Component Id='NSSfreeblLibrary' Guid='69D9F77F-27EA-4820-B931-07538AFC75FD' Win64='$(var.Property_Win64)'>
 
175
            <File Id='NSSFREEBL' LongName='freebl3.dll' Name='freebl3.dll' DiskId='1' src='freebl3.dll' Vital='yes' />
 
176
          </Component>
 
177
 
 
178
          <Component Id='NSSutilLibrary' Guid='FCFD9F8C-E567-46eb-90C3-A9322E862A2C' Win64='$(var.Property_Win64)'>
 
179
            <File Id='NSSUTIL' LongName='nssutil3.dll' Name='nssutil3.dll' DiskId='1' src='nssutil3.dll' Vital='yes' />
 
180
          </Component>
 
181
 
 
182
          <Component Id='NSSsqliteLibrary' Guid='4A8645BA-7A78-44f5-8073-7F2BE8C13622' Win64='$(var.Property_Win64)'>
 
183
            <File Id='NSSSQLITE' LongName='sqlite3.dll' Name='sqlite3.dll' DiskId='1' src='sqlite3.dll' Vital='yes' />
 
184
          </Component>
 
185
 
 
186
          <Component Id='NSSdbmLibrary' Guid='7BDF98E8-D1D5-4b06-AB69-1688EE7A6872' Win64='$(var.Property_Win64)'>
 
187
            <File Id='NSSDBM' LongName='nssdbm3.dll' Name='nssdbm3.dll' DiskId='1' src='nssdbm3.dll' Vital='yes' />
 
188
          </Component>
 
189
 
 
190
          <Component Id='NSSrootcertsLibrary' Guid='B3350485-7CDD-4311-99F6-479DA1FA92A1' Win64='$(var.Property_Win64)'>
 
191
            <File Id='NSSROOTCERTS' LongName='nssckbi.dll' Name='nssckbi.dll' DiskId='1' src='nssckbi.dll' Vital='yes' />
 
192
          </Component>
 
193
 
 
194
          <Component Id='NSScertutil' Guid='7741A56D-3E96-4823-AC0F-0B81A696651F' Win64='$(var.Property_Win64)'>
 
195
            <File Id='NSSCERTUTIL' LongName='certutil.exe' Name='certutil.exe' DiskId='1' src='certutil.exe' Vital='yes' />
 
196
          </Component>
 
197
 
 
198
          <Component Id='NSSpk12util' Guid='F10ABF8A-8C10-49f6-8150-45616EA4C360' Win64='$(var.Property_Win64)'>
 
199
            <File Id='NSSPK12UTIL' LongName='pk12util.exe' Name='pk12util.exe' DiskId='1' src='pk12util.exe' Vital='yes' />
 
200
          </Component>
 
201
 
 
202
          <Component Id='JSSLibrary' Guid='844240DD-3EE8-444e-BA48-5C114648096B' Win64='$(var.Property_Win64)'>
 
203
            <File Id='JSSLIB' LongName='jss4.dll' Name='jss4.dll' DiskId='1' src='jss4.dll' Vital='yes' />
 
204
          </Component>
 
205
 
 
206
          <Component Id='JSSJar' Guid='064A960B-4D7E-45cc-895B-19DE1D9AEF77' Win64='$(var.Property_Win64)'>
 
207
            <File Id='JSSJAR' LongName='jss4.jar' Name='jss4.jar' DiskId='1' src='jss4.jar' Vital='yes' />
 
208
          </Component>
 
209
 
 
210
          <Component Id='LDAPJar' Guid='E6D5B3AE-11F5-427f-85D3-D7A6A6A0A55D' Win64='$(var.Property_Win64)'>
 
211
            <File Id='LDAPJAR' LongName='ldapjdk.jar' Name='ldapjdk.jar' DiskId='1' src='ldapjdk.jar' Vital='yes' />
 
212
          </Component>
 
213
 
 
214
          <Component Id='IDMBaseJar' Guid='F45C344F-A3C2-4ffd-9CC6-22D36AA5E69E' Win64='$(var.Property_Win64)'>
 
215
            <File Id='IDMBASEJAR' LongName='idm-console-base.jar' Name='idmbase.jar' DiskId='1' src='idm-console-base.jar' Vital='yes' />
 
216
          </Component>
 
217
 
 
218
          <Component Id='IDMMCCJar' Guid='1DB26BB6-56AF-4e7e-BD55-8F1364B7A55B' Win64='$(var.Property_Win64)'>
 
219
            <File Id='IDMMCCJAR' LongName='idm-console-mcc.jar' Name='idmmcc.jar' DiskId='1' src='idm-console-mcc.jar' Vital='yes' />
 
220
          </Component>
 
221
 
 
222
          <Component Id='IDMMCCENJar' Guid='71FF3A08-C895-4648-A8CC-08F0CD2AD4D6' Win64='$(var.Property_Win64)'>
 
223
            <File Id='IDMMCCENJAR' LongName='idm-console-mcc_en.jar' Name='idmmccen.jar' DiskId='1' src='idm-console-mcc_en.jar' Vital='yes' />
 
224
          </Component>
 
225
 
 
226
          <Component Id='IDMNMCLFJar' Guid='2F118B1B-3413-4740-A99A-1B22E79AB232' Win64='$(var.Property_Win64)'>
 
227
            <File Id='IDMNMCLFJAR' LongName='idm-console-nmclf.jar' Name='idmnmclf.jar' DiskId='1' src='idm-console-nmclf.jar' Vital='yes' />
 
228
          </Component>
 
229
 
 
230
          <Component Id='IDMNMCLFENJar' Guid='EB4F2170-BFDC-4c5f-8A12-9812CAADB740' Win64='$(var.Property_Win64)'>
 
231
            <File Id='IDMNMCLFENJAR' LongName='idm-console-nmclf_en.jar' Name='idmnmcen.jar' DiskId='1' src='idm-console-nmclf_en.jar' Vital='yes' />
 
232
          </Component>
 
233
 
 
234
          <Component Id='ConsoleJar' Guid='BE426443-1A07-406e-97FA-103D518BE233' Win64='$(var.Property_Win64)'>
 
235
            <File Id='CONSOLEJAR' LongName='$(var.FILEPREF)-console_en.jar' Name='conen.jar' DiskId='1' src='$(var.FILEPREF)-console_en.jar' Vital='yes' />
 
236
          </Component>
 
237
 
 
238
          <Component Id='ConsoleBat' Guid='00DEC033-5D77-49a2-9478-FA67E8D4EFEA' Win64='$(var.Property_Win64)'>
 
239
            <File Id='CONSOLEBAT' LongName='$(var.FILEPREF)-console.bat' Name='con.bat' DiskId='1' src='$(var.FILEPREF)-console.bat' Vital='yes' >
 
240
                <Shortcut Id="startmenuConsole" Directory="ProgramMenuDir" Name="CONFLDR" 
 
241
                  LongName="$(var.SHORTCUT)" WorkingDirectory='INSTALLDIR' Show="minimized"
 
242
                  Icon="Logo$(var.BRANDNOSPACE).ico" IconIndex="0" Advertise="yes" />
 
243
                <Shortcut Id="desktopConsole" Directory="DesktopFolder" Name="CONFLDR"
 
244
                  LongName="$(var.SHORTCUT)" WorkingDirectory='INSTALLDIR' Show="minimized"
 
245
                  Icon="Logo$(var.BRANDNOSPACE).ico" IconIndex="0" Advertise="yes" />
 
246
            </File>
 
247
          </Component>
 
248
 
 
249
          <Component Id='License.rtf' Guid='D40977B8-BB2B-4796-B855-3503AF5FF881' Win64='$(var.Property_Win64)'>
 
250
            <File Id='LICENSERTF' LongName='License.rtf' Name='License.rtf' DiskId='1' src='License.rtf' Vital='yes' />
 
251
          </Component>
 
252
 
 
253
        </Directory>
 
254
 
 
255
      </Directory>
 
256
 
 
257
      <Directory Id="ProgramMenuFolder" Name="PMenu" LongName="Programs">
 
258
        <Directory Id="ProgramMenuDir" Name='CONFLDR' LongName="$(var.PRODUCTNAME)" />
 
259
      </Directory>
 
260
 
 
261
      <Directory Id="DesktopFolder" Name="Desktop" />
 
262
 
 
263
    </Directory>
 
264
 
 
265
    <Feature Id='Complete' Title='$(var.PRODUCTNAME)' Description='The complete package.' Display='expand'
 
266
      Level='1' ConfigurableDirectory='INSTALLDIR'>
 
267
      <Feature Id='MainProgram' Title='Program' Description='The main executable.'
 
268
        Level='1'>
 
269
            <ComponentRef Id='NSPRLibrary' />
 
270
            <ComponentRef Id='NSPRpldsLibrary' />
 
271
            <ComponentRef Id='NSPRplcLibrary' />
 
272
            <ComponentRef Id='NSSLibrary' />
 
273
            <ComponentRef Id='NSSsslLibrary' />
 
274
            <ComponentRef Id='NSSsoftoknLibrary' />
 
275
            <ComponentRef Id='NSSsmimeLibrary' />
 
276
            <ComponentRef Id='NSSfreeblLibrary' />
 
277
            <ComponentRef Id='NSSutilLibrary' />
 
278
            <ComponentRef Id='NSSsqliteLibrary' />
 
279
            <ComponentRef Id='NSSdbmLibrary' />
 
280
            <ComponentRef Id='NSSrootcertsLibrary' />
 
281
            <ComponentRef Id='NSScertutil' />
 
282
            <ComponentRef Id='NSSpk12util' />
 
283
            <ComponentRef Id='JSSLibrary' />
 
284
            <ComponentRef Id='JSSJar' />
 
285
            <ComponentRef Id='LDAPJar' />
 
286
            <ComponentRef Id='IDMBaseJar' />
 
287
            <ComponentRef Id='IDMMCCJar' />
 
288
            <ComponentRef Id='IDMMCCENJar' />
 
289
            <ComponentRef Id='IDMNMCLFJar' />
 
290
            <ComponentRef Id='IDMNMCLFENJar' />
 
291
            <ComponentRef Id='ConsoleJar' />
 
292
            <ComponentRef Id='ConsoleBat' />
 
293
            <ComponentRef Id='License.rtf' />
 
294
     </Feature>
 
295
     <Feature Id='CRT_WinSXS' Title='CRT WinSXS' AllowAdvertise="no" Display="hidden" Level='1'>
 
296
            <MergeRef Id='CRT' />
 
297
            <MergeRef Id='PolicyCRT' />
 
298
     </Feature>
 
299
    </Feature>
 
300
 
 
301
    <Property Id="INSTALLLEVEL">3</Property>
 
302
 
 
303
    <UIRef Id="WixUI_Mondo" />
 
304
    <UIRef Id="WixUI_ErrorProgressText" />
 
305
 
 
306
    <InstallExecuteSequence>
 
307
      <Custom Action='NoDowngrade' After='FindRelatedProducts'>NEWERFOUND</Custom>
 
308
      <RemoveExistingProducts After='InstallFinalize' />
 
309
      <Custom Action='RemoveOldPkg' After='InstallFinalize'>OLDGUID AND NOT Installed</Custom>
 
310
      <Custom Action='RemoveOldShortcuts' After='RemoveOldPkg'>OLDSHORTCUT AND OLDPROGRAMFOLDER AND NOT Installed</Custom>
 
311
    </InstallExecuteSequence>
 
312
 
 
313
    <Icon Id="Logo$(var.BRANDNOSPACE).ico" SourceFile="Logo$(var.BRANDNOSPACE).ico" />
 
314
 
 
315
  </Product>
 
316
 
 
317
</Wix>