使用TFS(2013)自动更新InstallShield(2014)产品代码

时间:2015-08-04 17:23:35

标签: tfs installshield tfs2013

我希望通过构建过程自动更新产品代码。任何建议将不胜感激。

1 个答案:

答案 0 :(得分:0)

InstallShield具有MSBuild支持,可以更新.isproj文件以自动生成随机guid并将其传递给编译。

<PropertyGroup>
  <MSIProductCode>$([System.Guid]::NewGuid().ToString("B").ToUpper())</MSIProductCode>
</PropertyGroup>

<InstallShieldPropertyOverrides Include="$(MSIProductCode)">
  <Property>ProductCode</Property>
</InstallShieldPropertyOverrides>

如果您不使用MSBuild(我认为每个人都应该这样),那么这里是ISCmdBld .exe reference。你会想要使用-z选项。

相关问题