1 | <?xml version="1.0"?> |
---|
2 | <!-- |
---|
3 | Subversion Installer |
---|
4 | |
---|
5 | Author: Troy Simpson (troy@ebswift.com) http://www.ebswift.com |
---|
6 | Thanks to: Gábor DEÁK JAHN, Tramontána, Alex Shevchuk, the SharpDevelop team and of course, the WiX team |
---|
7 | |
---|
8 | Instructions for upgrades: |
---|
9 | |
---|
10 | 1. Change ProductVersion |
---|
11 | 2. Change RevisionNumber |
---|
12 | 3. Change ProductCode |
---|
13 | 4. Set the product version against the output name in the wixproj |
---|
14 | (go to project properties in SharpDevelop, or change it directly in the wixproj) |
---|
15 | --> |
---|
16 | <Wix xmlns="http://schemas.microsoft.com/wix/2006/wi"> |
---|
17 | <?define RTMProductVersion="1.0.0" ?> |
---|
18 | <?define ProductVersion="1.5.1" ?> <!-- change for upgrade --> |
---|
19 | <?define RevisionNumber="r32289" ?> <!-- change for upgrade --> |
---|
20 | <?define ProductCode="{0ED6E1BF-3604-45E9-A719-8DD3B5826706}" ?> <!-- change for upgrade --> |
---|
21 | <?define UpgradeCode="{032A49B2-32FB-4AE0-BAB0-6AB953CC94DA}" ?> <!-- leave this value --> |
---|
22 | <?define PackageCode="*" ?> |
---|
23 | |
---|
24 | <Product Id="$(var.ProductCode)" |
---|
25 | Name="!(loc.ProductName)" |
---|
26 | Language="1033" |
---|
27 | UpgradeCode="$(var.UpgradeCode)" |
---|
28 | Manufacturer="CollabNet" |
---|
29 | Version="$(var.ProductVersion)"> |
---|
30 | |
---|
31 | <Package Description="!(loc.PackageDescription)" |
---|
32 | Id="$(var.PackageCode)" |
---|
33 | Comments="!(loc.ProductName) $(var.ProductVersion)-$(var.RevisionNumber)" |
---|
34 | InstallerVersion="200" |
---|
35 | Keywords="!(loc.Keywords)" |
---|
36 | Compressed="yes"/> |
---|
37 | |
---|
38 | <Upgrade Id="$(var.UpgradeCode)"> |
---|
39 | <UpgradeVersion Minimum="$(var.ProductVersion)" |
---|
40 | IncludeMinimum="no" |
---|
41 | OnlyDetect="yes" |
---|
42 | Language="1033" |
---|
43 | Property="NEWPRODUCTFOUND" /> |
---|
44 | <UpgradeVersion Minimum="$(var.RTMProductVersion)" |
---|
45 | IncludeMinimum="yes" |
---|
46 | Maximum="$(var.ProductVersion)" |
---|
47 | IncludeMaximum="no" |
---|
48 | Language="1033" |
---|
49 | Property="UPGRADEFOUND" /> |
---|
50 | </Upgrade> |
---|
51 | |
---|
52 | <!-- |
---|
53 | Source media for the installation. |
---|
54 | Specifies a single cab file to be embedded in the installer's .msi. |
---|
55 | --> |
---|
56 | <Media Id="1" Cabinet="contents.cab" EmbedCab="yes" CompressionLevel="high"/> |
---|
57 | |
---|
58 | <!-- Installation directory and files are defined in Files.wxs --> |
---|
59 | <Directory Id="TARGETDIR" Name="SourceDir"/> |
---|
60 | |
---|
61 | <Feature Id="Complete" |
---|
62 | Title="Subversion" |
---|
63 | Description="Subversion for win32" |
---|
64 | Level="1"> |
---|
65 | |
---|
66 | <?include ApacheFeature20x.wxi ?> |
---|
67 | <?include ApacheFeature22x.wxi ?> |
---|
68 | <?include iconvFeature20x.wxi ?> |
---|
69 | <?include iconvFeature22x.wxi ?> |
---|
70 | <?include CommonBinaryFeature.wxi ?> |
---|
71 | <?include CommonSASLFeature.wxi ?> |
---|
72 | <?include CommonShareFeature.wxi ?> |
---|
73 | |
---|
74 | <?include LicensesCommonFeature.wxi ?> |
---|
75 | <?include LicensesFeature20x.wxi ?> |
---|
76 | <?include LicensesFeature22x.wxi ?> |
---|
77 | |
---|
78 | <ComponentRef Id="svnbookchm"/> |
---|
79 | |
---|
80 | <!-- Program Files Folder --> |
---|
81 | <ComponentRef Id='IDSubvProgGroup' /> |
---|
82 | <ComponentRef Id='IDSubvLicGroup' /> |
---|
83 | </Feature> |
---|
84 | |
---|
85 | <Property Id="WIXUI_INSTALLDIR">INSTALLDIR</Property> |
---|
86 | |
---|
87 | <!-- note to self: properties populated from controls |
---|
88 | must be in uppercase and have the secure option set --> |
---|
89 | <Property Id="APACHEVERSION" Secure="yes">Apache20</Property> |
---|
90 | |
---|
91 | <Property Id="ProductRevision">$(var.RevisionNumber)</Property> |
---|
92 | |
---|
93 | <!-- |
---|
94 | Use custom Subversion Fragment |
---|
95 | --> |
---|
96 | <UIRef Id="WixUI_Subversion"/> |
---|
97 | <WixVariable Id="WixUIDialogBmp" Value="dlgbmp.bmp"/> |
---|
98 | <WixVariable Id="WixUIBannerBmp" Value="wiz-55x55x24.bmp"/> |
---|
99 | |
---|
100 | <!-- Prevent downgrading --> |
---|
101 | <CustomAction Id="PreventDowngrading" |
---|
102 | Error="!(loc.NoDowngrade)" /> |
---|
103 | |
---|
104 | <InstallExecuteSequence> |
---|
105 | <Custom Action="PreventDowngrading" |
---|
106 | After="FindRelatedProducts">NEWPRODUCTFOUND</Custom> |
---|
107 | <RemoveExistingProducts After="InstallFinalize" /> |
---|
108 | </InstallExecuteSequence> |
---|
109 | |
---|
110 | <InstallUISequence> |
---|
111 | <Custom Action="PreventDowngrading" |
---|
112 | After="FindRelatedProducts">NEWPRODUCTFOUND</Custom> |
---|
113 | </InstallUISequence> |
---|
114 | |
---|
115 | <!-- add/remove programs icon --> |
---|
116 | <Icon Id="Subversion.ico" SourceFile="..\..\..\SubversionTagSource\build\win32\svn.ico"/> |
---|
117 | <Property Id="ARPPRODUCTICON" Value="Subversion.ico" /> |
---|
118 | |
---|
119 | <Property Id="ARPHELPLINK">http://subversion.tigris.org</Property> |
---|
120 | </Product> |
---|
121 | </Wix> |
---|