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
8
Instructions for upgrades:
10
1. Change ProductVersion
11
2. Change RevisionNumber
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)
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="*" ?>
24
<Product Id="$(var.ProductCode)"
25
Name="!(loc.ProductName)"
27
UpgradeCode="$(var.UpgradeCode)"
28
Manufacturer="CollabNet"
29
Version="$(var.ProductVersion)">
31
<Package Description="!(loc.PackageDescription)"
32
Id="$(var.PackageCode)"
33
Comments="!(loc.ProductName) $(var.ProductVersion)-$(var.RevisionNumber)"
34
InstallerVersion="200"
35
Keywords="!(loc.Keywords)"
38
<Upgrade Id="$(var.UpgradeCode)">
39
<UpgradeVersion Minimum="$(var.ProductVersion)"
43
Property="NEWPRODUCTFOUND" />
44
<UpgradeVersion Minimum="$(var.RTMProductVersion)"
46
Maximum="$(var.ProductVersion)"
49
Property="UPGRADEFOUND" />
53
Source media for the installation.
54
Specifies a single cab file to be embedded in the installer's .msi.
56
<Media Id="1" Cabinet="contents.cab" EmbedCab="yes" CompressionLevel="high"/>
58
<!-- Installation directory and files are defined in Files.wxs -->
59
<Directory Id="TARGETDIR" Name="SourceDir"/>
61
<Feature Id="Complete"
63
Description="Subversion for win32"
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 ?>
74
<?include LicensesCommonFeature.wxi ?>
75
<?include LicensesFeature20x.wxi ?>
76
<?include LicensesFeature22x.wxi ?>
78
<ComponentRef Id="svnbookchm"/>
80
<!-- Program Files Folder -->
81
<ComponentRef Id='IDSubvProgGroup' />
82
<ComponentRef Id='IDSubvLicGroup' />
85
<Property Id="WIXUI_INSTALLDIR">INSTALLDIR</Property>
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>
91
<Property Id="ProductRevision">$(var.RevisionNumber)</Property>
94
Use custom Subversion Fragment
96
<UIRef Id="WixUI_Subversion"/>
97
<WixVariable Id="WixUIDialogBmp" Value="dlgbmp.bmp"/>
98
<WixVariable Id="WixUIBannerBmp" Value="wiz-55x55x24.bmp"/>
100
<!-- Prevent downgrading -->
101
<CustomAction Id="PreventDowngrading"
102
Error="!(loc.NoDowngrade)" />
104
<InstallExecuteSequence>
105
<Custom Action="PreventDowngrading"
106
After="FindRelatedProducts">NEWPRODUCTFOUND</Custom>
107
<RemoveExistingProducts After="InstallFinalize" />
108
</InstallExecuteSequence>
111
<Custom Action="PreventDowngrading"
112
After="FindRelatedProducts">NEWPRODUCTFOUND</Custom>
115
<!-- add/remove programs icon -->
116
<Icon Id="Subversion.ico" SourceFile="..\..\..\SubversionTagSource\build\win32\svn.ico"/>
117
<Property Id="ARPPRODUCTICON" Value="Subversion.ico" />
119
<Property Id="ARPHELPLINK">http://subversion.tigris.org</Property>