##// END OF EJS Templates
wix updates...
Adrian Buehlmann -
r10930:230ab9a2 default
parent child Browse files
Show More
@@ -1,52 +1,49 b''
1 1 <?xml version="1.0" encoding="utf-8"?>
2 2 <Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
3 3
4 4 <?include guids.wxi ?>
5 5
6 6 <Fragment>
7 <DirectoryRef Id="INSTALLDIR">
8 <Directory Id="docdir" Name="doc" />
9 </DirectoryRef>
7 <ComponentGroup Id="docFolder">
8 <ComponentRef Id="doc.hg.1.html" />
9 <ComponentRef Id="doc.hgignore.5.html" />
10 <ComponentRef Id="doc.hgrc.5.html" />
11 <ComponentRef Id="doc.style.css" />
12 </ComponentGroup>
10 13 </Fragment>
11 14
12 15 <Fragment>
13 <ComponentGroup Id="docFolder">
14 <Component Id="doc.hg.1.html" Directory="docdir"
15 Guid="$(var.doc.hg.1.html.guid)"
16 >
17 <File Source="$(var.SourceDir)\hg.1.html" KeyPath="yes">
18 <Shortcut Id="hg1StartMenu" Directory="ProgramMenuDir"
19 Name="Mercurial Command Reference"
20 Icon="hgIcon.ico" IconIndex="0" Advertise="yes"
21 />
22 </File>
23 </Component>
24 <Component Id="doc.hgignore.5.html" Directory="docdir"
25 Guid="$(var.doc.hgignore.5.html.guid)"
26 >
27 <File Source="$(var.SourceDir)\hgignore.5.html" KeyPath="yes">
28 <Shortcut Id="hgignore5StartMenu" Directory="ProgramMenuDir"
29 Name="Mercurial Ignore Files"
30 Icon="hgIcon.ico" IconIndex="0" Advertise="yes"
31 />
32 </File>
33 </Component>
34 <Component Id="doc.hgrc.5.html" Directory="docdir"
35 Guid="$(var.doc.hgrc.5.html)"
36 >
37 <File Source="$(var.SourceDir)\hgrc.5.html" KeyPath="yes">
38 <Shortcut Id="hgrc5StartMenu" Directory="ProgramMenuDir"
39 Name="Mercurial Configuration Files"
40 Icon="hgIcon.ico" IconIndex="0" Advertise="yes"
41 />
42 </File>
43 </Component>
44 <Component Id="doc.style.css" Directory="docdir"
45 Guid="$(var.doc.style.css)"
46 >
47 <File Source="$(var.SourceDir)\style.css" KeyPath="yes" />
48 </Component>
49 </ComponentGroup>
16 <DirectoryRef Id="INSTALLDIR">
17 <Directory Id="docdir" Name="doc" FileSource="$(var.SourceDir)">
18 <Component Id="doc.hg.1.html" Guid="$(var.doc.hg.1.html.guid)">
19 <File Name="hg.1.html" KeyPath="yes">
20 <Shortcut Id="hg1StartMenu" Directory="ProgramMenuDir"
21 Name="Mercurial Command Reference"
22 Icon="hgIcon.ico" IconIndex="0" Advertise="yes"
23 />
24 </File>
25 </Component>
26 <Component Id="doc.hgignore.5.html" Guid="$(var.doc.hgignore.5.html.guid)">
27 <File Name="hgignore.5.html" KeyPath="yes">
28 <Shortcut Id="hgignore5StartMenu" Directory="ProgramMenuDir"
29 Name="Mercurial Ignore Files"
30 Icon="hgIcon.ico" IconIndex="0" Advertise="yes"
31 />
32 </File>
33 </Component>
34 <Component Id="doc.hgrc.5.html" Guid="$(var.doc.hgrc.5.html)">
35 <File Name="hgrc.5.html" KeyPath="yes">
36 <Shortcut Id="hgrc5StartMenu" Directory="ProgramMenuDir"
37 Name="Mercurial Configuration Files"
38 Icon="hgIcon.ico" IconIndex="0" Advertise="yes"
39 />
40 </File>
41 </Component>
42 <Component Id="doc.style.css" Guid="$(var.doc.style.css)">
43 <File Name="style.css" KeyPath="yes" />
44 </Component>
45 </Directory>
46 </DirectoryRef>
50 47 </Fragment>
51 48
52 49 </Wix>
@@ -1,35 +1,46 b''
1 1 <Include>
2 2 <!-- These are component GUIDs used for Mercurial installers.
3 3 YOU MUST CHANGE ALL GUIDs below when copying this file
4 4 and replace 'Mercurial' in this notice with the name of
5 5 your project. Component GUIDs have global namespace! -->
6 6
7 7 <!-- contrib.wxs -->
8 8 <?define contrib.guid = {B2EB15EA-F5F2-40c7-97EB-944DBED85F83} ?>
9 9 <?define contrib.vim.guid = {56B49B46-6657-405d-9E91-3FA68D011471} ?>
10 10
11 11 <!-- doc.wxs -->
12 12 <?define doc.hg.1.html.guid = {AAAA3FDA-EDC5-4220-B59D-D342722358A2} ?>
13 13 <?define doc.hgignore.5.html.guid = {AA9118C4-F3A0-4429-A5F4-5A1906B2D67F} ?>
14 14 <?define doc.hgrc.5.html = {E0CEA1EB-FA01-408c-844B-EE5965165BAE} ?>
15 15 <?define doc.style.css = {172F8262-98E0-4711-BD39-4DAE0D77EF05} ?>
16 16
17 17 <!-- help.wxs -->
18 18 <?define helpFolder.guid = {FA1546C1-5730-4e55-8542-76F5830841EE} ?>
19 19
20 20 <!-- i18n.wxs -->
21 21 <?define i18nFolder.guid = {EADFA693-A0B5-4f31-87C9-3997CFAC1B42} ?>
22 22
23 23 <!-- templates.wxs -->
24 24 <?define templates.root.guid = {111509CB-4C96-4035-80BC-F66A99CD5ACB} ?>
25 25 <?define templates.atom.guid = {45FCDF84-DE27-44f4-AF6C-C41F5994AE0D} ?>
26 26 <?define templates.coal.guid = {B63CCAAB-4EAF-43b4-901E-4BD13F5B78FC} ?>
27 27 <?define templates.gitweb.guid = {5B8DF9A1-F475-45a5-B8F0-FCEA04A3B074} ?>
28 28 <?define templates.monoblue.guid = {7BA492F4-98F3-4943-A981-0BFE1690CF6E} ?>
29 29 <?define templates.paper.guid = {294F69D5-EC96-4fa7-8569-DD76C9993F47} ?>
30 30 <?define templates.raw.guid = {04DE03A2-FBFD-4c5f-8DEA-5436DDF4689D} ?>
31 31 <?define templates.rss.guid = {A7D608DE-0CF6-44f4-AF1E-EE30CC237FDA} ?>
32 32 <?define templates.spartan.guid = {80222625-FA8F-44b1-86CE-1781EF375D09} ?>
33 33 <?define templates.static.guid = {68C9F843-DE7E-480f-9DA2-D220B19D02C3} ?>
34 34
35 <!-- mercurial.wxs -->
36 <?define ProductUpgradeCode = {A1CC6134-E945-4399-BE36-EB0017FDF7CF} ?>
37
38 <?define ComponentMainExecutableGUID = {D102B8FA-059B-4ACC-9FA3-8C78C3B58EEF} ?>
39
40 <?define ReadMe.guid = {56A8E372-991D-4DCA-B91D-93D775974CF5} ?>
41 <?define COPYING.guid = {B7801DBA-1C49-4BF4-91AD-33C65F5C7895} ?>
42 <?define mercurial.rc.guid = {1D5FAEEE-7E6E-43B1-9F7F-802714316B15} ?>
43 <?define mergetools.rc.guid = {E8A1DC29-FF40-4B5F-BD12-80B9F7BF0CCD} ?>
44 <?define ProgramMenuDir.guid = {D5A63320-1238-489B-B68B-CF053E9577CA} ?>
45
35 46 </Include>
@@ -1,38 +1,32 b''
1 1 <?xml version="1.0" encoding="utf-8"?>
2 2 <Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
3 3
4 4 <?define hglocales =
5 5 da;de;el;fr;it;ja;pt_BR;sv;zh_CN;zh_TW
6 6 ?>
7 7
8 8 <Fragment>
9 9 <ComponentGroup Id="localeFolder">
10 10 <?foreach LOC in $(var.hglocales) ?>
11 11 <ComponentRef Id="hg.locale.$(var.LOC)"/>
12 12 <?endforeach?>
13 13 </ComponentGroup>
14 14 </Fragment>
15 15
16 16 <Fragment>
17 17 <DirectoryRef Id="INSTALLDIR">
18 <Directory Id="localedir" Name="locale" />
18 <Directory Id="localedir" Name="locale" FileSource="$(var.SourceDir)">
19 <?foreach LOC in $(var.hglocales) ?>
20 <Directory Id="hg.locale.$(var.LOC)" Name="$(var.LOC)">
21 <Directory Id="hg.locale.$(var.LOC).LC_MESSAGES" Name="LC_MESSAGES">
22 <Component Id="hg.locale.$(var.LOC)" Guid="*">
23 <File Id="hg.mo.$(var.LOC)" Name="hg.mo" KeyPath="yes" />
24 </Component>
25 </Directory>
26 </Directory>
27 <?endforeach?>
28 </Directory>
19 29 </DirectoryRef>
20 30 </Fragment>
21 31
22 <?foreach LOC in $(var.hglocales) ?>
23 <Fragment>
24 <DirectoryRef Id="localedir">
25 <Directory Id="hg.locale.$(var.LOC)" Name="$(var.LOC)">
26 <Directory Id="hg.locale.$(var.LOC).LC_MESSAGES" Name="LC_MESSAGES">
27 <Component Id="hg.locale.$(var.LOC)" Guid="*">
28 <File Id="hg.mo.$(var.LOC)" KeyPath="yes"
29 Source="$(var.SourceDir)\$(var.LOC)\LC_MESSAGES\hg.mo"
30 />
31 </Component>
32 </Directory>
33 </Directory>
34 </DirectoryRef>
35 </Fragment>
36 <?endforeach?>
37
38 32 </Wix>
@@ -1,136 +1,144 b''
1 1 <?xml version='1.0' encoding='windows-1252'?>
2 2 <Wix xmlns='http://schemas.microsoft.com/wix/2006/wi'>
3 3
4 4 <!-- Copyright 2010 Steve Borho <steve@borho.org>
5 5
6 6 This software may be used and distributed according to the terms of the
7 7 GNU General Public License version 2 or any later version. -->
8 8
9 <?define ComponentMainExecutableGUID = D102B8FA-059B-4ACC-9FA3-8C78C3B58EEF ?>
10 <?define ProductUpgradeCode = A1CC6134-E945-4399-BE36-EB0017FDF7CF ?>
9 <?include guids.wxi ?>
11 10
12 <Product Name='Mercurial $(var.Version)' Id='*'
11 <Product Id='*'
12 Name='Mercurial $(var.Version)'
13 13 UpgradeCode='$(var.ProductUpgradeCode)'
14 Language='1033' Codepage='1252' Version='$(var.Version)' Manufacturer='Matt Mackall and others.'>
14 Language='1033' Codepage='1252' Version='$(var.Version)'
15 Manufacturer='Matt Mackall and others'>
15 16
16 <Package Id='*' Keywords='Installer' Description="Mercurial distributed SCM (version $(var.Version))"
17 Comments='$(var.Comments)' Manufacturer='Matt Mackall and others.'
17 <Package Id='*'
18 Keywords='Installer'
19 Description="Mercurial distributed SCM (version $(var.Version))"
20 Comments='$(var.Comments)'
21 Manufacturer='Matt Mackall and others'
18 22 InstallerVersion='300' Languages='1033' Compressed='yes' SummaryCodepage='1252' />
19 23
20 <Media Id='1' Cabinet='mercurial.cab' EmbedCab='yes' DiskPrompt='CD-ROM #1' CompressionLevel='high' />
24 <Media Id='1' Cabinet='mercurial.cab' EmbedCab='yes' DiskPrompt='CD-ROM #1'
25 CompressionLevel='high' />
21 26 <Property Id='DiskPrompt' Value="Mercurial $(var.Version) Installation [1]" />
22 27
23 <Condition Message='Mercurial requires Windows XP or higher'>VersionNT >= 501</Condition>
28 <Condition Message='Mercurial requires Windows XP or higher'
29 >VersionNT >= 501</Condition>
24 30
25 31 <Property Id="INSTALLDIR">
26 <ComponentSearch Id='SearchForMainExecutableComponent' Guid='$(var.ComponentMainExecutableGUID)' />
32 <ComponentSearch Id='SearchForMainExecutableComponent'
33 Guid='$(var.ComponentMainExecutableGUID)' />
27 34 </Property>
28 35
29 36 <!--Property Id='ARPCOMMENTS'>any comments</Property-->
30 37 <Property Id='ARPCONTACT'>mercurial@selenic.com</Property>
31 38 <Property Id='ARPHELPLINK'>http://mercurial.selenic.com/wiki/</Property>
32 39 <Property Id='ARPURLINFOABOUT'>http://mercurial.selenic.com/about/</Property>
33 40 <Property Id='ARPURLUPDATEINFO'>http://mercurial.selenic.com/downloads/</Property>
34 41 <Property Id='ARPHELPTELEPHONE'>http://mercurial.selenic.com/wiki/Support</Property>
35 42 <Property Id='ARPPRODUCTICON'>hgIcon.ico</Property>
36 43
37 44 <Property Id='INSTALLEDMERCURIALPRODUCTS' Secure='yes'></Property>
38 45 <Property Id='REINSTALLMODE'>amus</Property>
39 46
40 47 <!--Auto-accept the license page-->
41 48 <Property Id='LicenseAccepted'>1</Property>
42 49
43 50 <Directory Id='TARGETDIR' Name='SourceDir'>
44 51 <Directory Id='ProgramFilesFolder' Name='PFiles'>
45 52 <Directory Id='INSTALLDIR' Name='Mercurial'>
46 53 <Component Id='MainExecutable' Guid='$(var.ComponentMainExecutableGUID)'>
47 <File Id='hgEXE' Name='hg.exe' DiskId='1' Source='dist\hg.exe' KeyPath='yes' />
48 <File Id='libraryZIP' Name='library.zip' DiskId='1' Source='dist\library.zip' />
49 <File Id='pythonDLL' Name='python26.dll' DiskId='1' Source='dist\python26.dll' />
54 <File Id='hgEXE' Name='hg.exe' Source='dist\hg.exe' KeyPath='yes' />
55 <File Id='libraryZIP' Name='library.zip' Source='dist\library.zip' />
56 <File Id='pythonDLL' Name='python26.dll' Source='dist\python26.dll' />
50 57 <Environment Id="Environment" Name="PATH" Part="last" System="yes"
51 58 Permanent="no" Value="[INSTALLDIR]" Action="set" />
52 59 </Component>
53 <Component Id='ReadMe' Guid='56A8E372-991D-4DCA-B91D-93D775974CF5'>
54 <File Id='ReadMe' Name='ReadMe.html' DiskId='1' Source='contrib\win32\ReadMe.html' KeyPath='yes'/>
60 <Component Id='ReadMe' Guid='$(var.ReadMe.guid)'>
61 <File Id='ReadMe' Name='ReadMe.html' Source='contrib\win32\ReadMe.html'
62 KeyPath='yes'/>
55 63 </Component>
56 <Component Id='COPYING' Guid='B7801DBA-1C49-4BF4-91AD-33C65F5C7895'>
57 <File Id='COPYING' Name='COPYING.rtf' DiskId='1' Source='contrib\wix\COPYING.rtf' />
64 <Component Id='COPYING' Guid='$(var.COPYING.guid)'>
65 <File Id='COPYING' Name='COPYING.rtf' Source='contrib\wix\COPYING.rtf'
66 KeyPath='yes'/>
58 67 </Component>
59 68 <Directory Id='HGRCD' Name='hgrc.d'>
60 <Component Id='mercurial.rc' Guid='1D5FAEEE-7E6E-43B1-9F7F-802714316B15'>
61 <File Id='mercurial.rc' Name='Mercurial.rc' DiskId='1' Source='contrib\win32\mercurial.ini'
62 ReadOnly='yes'/>
69 <Component Id='mercurial.rc' Guid='$(var.mercurial.rc.guid)'>
70 <File Id='mercurial.rc' Name='Mercurial.rc' Source='contrib\win32\mercurial.ini'
71 ReadOnly='yes' KeyPath='yes'/>
63 72 </Component>
64 <Component Id='mergetools.rc' Guid='E8A1DC29-FF40-4B5F-BD12-80B9F7BF0CCD'>
65 <File Id='mergetools.rc' Name='MergeTools.rc' DiskId='1' Source='contrib\mergetools.hgrc'
66 ReadOnly='yes'/>
73 <Component Id='mergetools.rc' Guid='$(var.mergetools.rc.guid)'>
74 <File Id='mergetools.rc' Name='MergeTools.rc' Source='contrib\mergetools.hgrc'
75 ReadOnly='yes' KeyPath='yes'/>
67 76 </Component>
68 77 </Directory>
69 78 </Directory>
70 79 </Directory>
71 80
72 81 <Directory Id="ProgramMenuFolder" Name="Programs">
73 82 <Directory Id="ProgramMenuDir" Name="Mercurial $(var.Version)">
74 <Component Id="ProgramMenuDir" Guid="D5A63320-1238-489B-B68B-CF053E9577CA">
83 <Component Id="ProgramMenuDir" Guid="$(var.ProgramMenuDir.guid)">
75 84 <RemoveFolder Id='ProgramMenuDir' On='uninstall' />
76 85 <RegistryValue Root='HKCU' Key='Software\Mercurial\InstallDir' Type='string'
77 86 Value='[INSTALLDIR]' KeyPath='yes' />
78 <Shortcut Id='UrlShortcut' Directory='ProgramMenuDir' Name='Mercurial Web Site' Target='[ARPHELPLINK]'
79 Icon="hgIcon.ico" IconIndex='0' />
87 <Shortcut Id='UrlShortcut' Directory='ProgramMenuDir' Name='Mercurial Web Site'
88 Target='[ARPHELPLINK]' Icon="hgIcon.ico" IconIndex='0' />
80 89 </Component>
81 90 </Directory>
82 91 </Directory>
83 92
84 <Directory Id="DesktopFolder" Name="Desktop" />
85 93 <Merge Id='VCRuntime' DiskId='1' Language='1033'
86 94 SourceFile='$(var.VCRedistSrcDir)\microsoft.vcxx.crt.x86_msm.msm' />
87 95 <Merge Id='VCRuntimePolicy' DiskId='1' Language='1033'
88 96 SourceFile='$(var.VCRedistSrcDir)\policy.x.xx.microsoft.vcxx.crt.x86_msm.msm' />
89 97 </Directory>
90 98
91 99 <Feature Id='Complete' Title='Mercurial' Description='The complete package'
92 100 Display='expand' Level='1' ConfigurableDirectory='INSTALLDIR' >
93 101 <Feature Id='MainProgram' Title='Program' Description='Mercurial command line app'
94 102 Level='1' Absent='disallow' >
95 103 <ComponentRef Id='MainExecutable' />
96 104 <ComponentRef Id='ProgramMenuDir' />
97 105 <ComponentRef Id='ReadMe' />
98 106 <ComponentRef Id='COPYING' />
99 107 <ComponentRef Id='mercurial.rc' />
100 108 <ComponentRef Id='mergetools.rc' />
101 109 <ComponentRef Id='helpFolder' />
102 110 <ComponentGroupRef Id='templatesFolder' />
103 111 <MergeRef Id='VCRuntime' />
104 112 <MergeRef Id='VCRuntimePolicy' />
105 113 </Feature>
106 114 <Feature Id='Locales' Title='Translations' Description='Translations' Level='1'>
107 115 <ComponentGroupRef Id='localeFolder' />
108 116 <ComponentRef Id='i18nFolder' />
109 117 </Feature>
110 118 <Feature Id='Documentation' Title='Documentation' Description='HTML man pages' Level='1'>
111 119 <ComponentGroupRef Id='docFolder' />
112 120 </Feature>
113 121 <Feature Id='Misc' Title='Miscellaneous' Description='Contributed scripts' Level='1'>
114 122 <ComponentGroupRef Id='contribFolder' />
115 123 </Feature>
116 124 </Feature>
117 125
118 126 <UIRef Id="WixUI_FeatureTree" />
119 127 <UIRef Id="WixUI_ErrorProgressText" />
120 128
121 129 <WixVariable Id="WixUILicenseRtf" Value="contrib\wix\COPYING.rtf" />
122 130
123 131 <Icon Id="hgIcon.ico" SourceFile="contrib/win32/mercurial.ico" />
124 132
125 133 <Upgrade Id='$(var.ProductUpgradeCode)'>
126 134 <UpgradeVersion
127 135 IncludeMinimum='yes' Minimum='0.0.0' IncludeMaximum='no' OnlyDetect='no'
128 136 Property='INSTALLEDMERCURIALPRODUCTS' />
129 137 </Upgrade>
130 138
131 139 <InstallExecuteSequence>
132 140 <RemoveExistingProducts After='InstallInitialize'/>
133 141 </InstallExecuteSequence>
134 142
135 143 </Product>
136 144 </Wix>
General Comments 0
You need to be logged in to leave comments. Login now