2
<Template originators="Matt Ward">
3
<TemplateConfiguration>
4
<Name>${res:Templates.Project.SetupProject.Name} - WixUI Install Dir</Name>
5
<Category>${res:Templates.File.Categories.Setup}</Category>
6
<Icon>Icons.32x32.EmptyProjectIcon</Icon>
7
<Description>${res:Templates.Project.SetupProject.Description}</Description>
8
</TemplateConfiguration>
12
<Open filename="Setup.wxs"/>
15
<!-- Template Content -->
16
<Project language="Wix">
18
<SupressIces>ICE45</SupressIces>
19
<WixVariables>WixUILicenseRtf=license.rtf</WixVariables>
22
<WixExtension Include="$(WixToolPath)\WixUIExtension.dll"/>
25
<File name="Setup.wxs"><![CDATA[<?xml version="1.0"?>
26
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
28
Name="Your Application"
32
Manufacturer="Your Company">
33
<Package Description="#Description"
35
InstallerVersion="200"
38
Source media for the installation.
39
Specifies a single cab file to be embedded in the installer's .msi.
41
<Media Id="1" Cabinet="contents.cab" EmbedCab="yes" CompressionLevel="high"/>
43
<!-- Installation directory and files are defined in Files.wxs -->
44
<Directory Id="TARGETDIR" Name="SourceDir"/>
46
<Feature Id="Complete"
47
Title="Your Application"
48
Description="Your description"
50
<ComponentRef Id="MyComponent"/>
54
Using the Wix UI library
56
WixUI_InstallDir does not allow the user to choose
57
features but adds a dialog to let the user choose a
58
directory where the product will be installed
60
<Property Id="WIXUI_INSTALLDIR">INSTALLDIR</Property>
61
<UIRef Id="WixUI_InstallDir"/>
65
<File name="Files.wxs"><![CDATA[<?xml version="1.0"?>
66
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
68
<DirectoryRef Id="TARGETDIR">
69
<Directory Id="ProgramFilesFolder" Name="PFiles">
70
<Directory Id="INSTALLDIR" Name="Your Application">
71
<Component Id="MyComponent" Guid="${GUID}" DiskId="1">
72
<File Id="LicenseFile" Name="license.rtf" Source="license.rtf"/>
80
<File name="license.rtf" src="DefaultLicense.rtf" buildAction="None" />