我的捆绑包引用了 WixBalExtension:
<?xml version="1.0" encoding="utf-8"?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi" xmlns:bal="http://schemas.microsoft.com/wix/BalExtension">
<Bundle Compressed="yes" Name="My App" Version="$(var.Version)" Manufacturer="My Company" UpgradeCode="{GUID HERE}">
<Variable Name="LAUNCHAFTERINSTALL" Type="numeric" bal:Overridable="yes" Value="0"/>
捆绑日志:
[3A24:3A84][2013-10-20T22:39:30]i001: Burn v3.7.1224.0, Windows v6.1 (Build 7601: Service Pack 1), path: D:\myapp.exe, cmdline: 'LAUNCHAFTERINSTALL=1 -log "D:\myapp.exe.log"'
[3A24:3A84][2013-10-20T22:39:30]i000: Initializing numeric variable 'LAUNCHAFTERINSTALL' to value '0'
为什么 bal:Overridable="yes" 被忽略,或者至少不接受命令行参数?