<?xml version="1.0" encoding="UTF-8"?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
<Product Id="60494ab4-c90a-4fe4-b6da-79d64b3efa21" Name="WixDokan" Language="1033" Version="1.0.0.0" Manufacturer="WixDokan" UpgradeCode="521d3350-c307-4cae-bd94-77217fd31bb1">
<Package InstallerVersion="200" Compressed="yes" />
<Media Id="1" Cabinet="media1.cab" EmbedCab="yes" />
<Directory Id="TARGETDIR" Name="SourceDir">
<Directory Id="ProgramFiles64Folder">
<Directory Id="INSTALLLOCATION" Name="WixDokan">
<Component Id="MSI_1" DiskId="1" Guid="521d3350-c307-4cae-bd94-77217fd31b01">
<File Id="mydwg" Name="12345.dwg"
src="12345.dwg" />
</Component>
</Directory>
</Directory>
<Directory Id="System64Folder" Name="System">
<Component Id="MSI_2" DiskId="1" Guid="521d3350-c307-4cae-bd94-77217fd31b06">
<File Id="wilsonTest" Name="wilsonTest.txt"
src="wilsonTest.txt" />
</Component>
</Directory>
</Directory>
<InstallExecuteSequence>
<!--<Custom Action="ShowReadMe" After="InstallFinalize">Not Installed</Custom>-->
<!--<Custom Action="BatchCmd" Before="InstallFiles">NOT INSTALLED</Custom>-->
</InstallExecuteSequence>
<Feature Id="ProductFeature" Title="WixDokan" Level="1" AllowAdvertise="no"
ConfigurableDirectory="TARGETDIR" Description="Drivers"
Display="collapse" >
<ComponentRef Id='MSI_1' />
<ComponentRef Id='MSI_2' />
<ComponentGroupRef Id="Product.Generated" />
</Feature>
<UI>
<UIRef Id="WixUI_Mondo" />
<UIRef Id="WixUI_ErrorProgressText" />
</UI>
</Product>
</Wix>
下面是Wix定义的系统文件夹:
PersonalFolder Full path to Documents folder for current user
PrintHoodFolder Full path to PrintHood folder
ProgramFiles64Folder Full path to 64-bit Program Files folder
ProgramFilesFolder Full path to 32-bit Program Files folder
ProgramMenuFolder Full path to Program Menu folder
RecentFolder Full path to Recent folder
SendToFolder Full path to SendTo folder for current user
StartMenuFolder Full path to Start Menu folder
StartupFolder Full path to Startup folder
System16Folder Full path to 16-bit system DLLs folder
System64Folder Full path to System64 folder
SystemFolder Full path to System folder for current user
TempFolder Full path to Temp folder
TemplateFolder Full path to Template folder for current user
WindowsFolder Full path to Windows folder