<?xml version="1.0" encoding="UTF-8"?> <Wix xmlns="http://schemas.microsoft.com/wix/2006/wi" xmlns:netfx="http://schemas.microsoft.com/wix/NetFxExtension"> <Product Id="B4B0E54F-7221-4F84-AE23-9F1C321901B9" Name="ProductName" Language="2052" Codepage="936" Version="2.0.0.0" Manufacturer="ProductManufacturer" UpgradeCode="97A845A5-2DFA-4BF1-BF69-A500808F86D2"> <Package InstallerVersion="301" Compressed="yes" InstallScope="perMachine" Keywords="Installer ProductManufacturer Software" Description="ProductName 2.0 Installer" Manufacturer="Shiji" Comments="(c)2012 ProductManufacturer"/> <UIRef Id="WixUI_Minimal" /> <Media Id="1" Cabinet="phenix.cab" EmbedCab="yes" /> <Directory Id="TARGETDIR" Name="SourceDir"> <Directory Id="ProgramFilesFolder"> <Directory Id="INSTALLFOLDER" Name="ProductName" > <Component Id="Comp_Files"> <File Id="FileTestTxt" Source="D:\部署\test.txt" KeyPath="yes"></File> </Component> </Directory> </Directory> </Directory> <Feature Id="MainFeature" Title="Main" Level="1"> <ComponentRef Id="Comp_Files"/> </Feature> </Product> </Wix>
第一个小测试
VS2010如果报异常,请将项目的"Build"的Cultures to Builder 设置为"zh-CN"