Ответ 1
Получил это, смог получить правильные параметры, изменив приведенное выше:
task package -depends create_wix_content_fragment {
$version_parameter = "-dVersion={0}" -f $version
& $candle -dProductName=Foo `
$version_parameter `
-dProductID=0cd64670-5769-4e34-8b21-c6242e7ca5a2 `
-dUpgradeCode=307601e9-4eea-4b5c-938a-354115d5c419 `
-dAppPool=FooAppPool `
-dInstallDirectory=Foo `
-ext WixIISExtension `
-ext WixUIExtension `
$wix_shell `
$build_output_dir\WebContent.wxs
}