花了了好长时间找到的
这样可以将变量信息定义到wxs中,方便应用
<?xml version="1.0" encoding="UTF-8"?> <?define ProductName="Wix CY"?> <Wix xmlns="http://schemas.microsoft.com/wix/2006/wi"> <Product Id="*" Name="$(var.ProductName)" Language="1033" Version="1.0.0.0" Manufacturer="Microsoft" UpgradeCode="1559dd95-8fd5-4e0f-9a6c-bf1ed8e5e5e9"> <Package InstallerVersion="200" Compressed="yes" InstallScope="perMachine" />