How to auto generating setup file while check-in the code in to TFS

江枫思渺然 提交于 2020-01-06 05:59:12

问题


How do I integrate InstallShield/Wix/IsWix with TFS? I wish to auto generate setup files during successful TFS checkin/release?

I am comparing InstallShield with Wix and IsWix! to choose the right candidate for upcoming product development.

Tools Used

  • v.Next Builds
  • Team Foundation Version Control

Update from InstallShield support team

To integrate InstallShield with Team Foundation Server, install InstallShield on each machine that u want to be able to create, update, or build InstallShield projects.It should also be installed on a machine that is designated as a build agent for InstallShield projects that are stored in Team Foundation Server.

NOTE: The Standalone Build is a build engine that enables you to build InstallShield projects without installing the full version of InstallShield on a build machine.If you have the Standalone Build, you can install it on a machine that is designated as a build agent for Team Foundation Server."


回答1:


I have very limited experience with InstallShield, but I can advocate for WiX. Recently they added a no-install option that allows you to build WiX project by just adding a few files along to your sources.

WiX code is an XML dialect and it is simple to generate, but the simplest pattern is to write a Product and a Project file and let Heat generating the remaining code you need for a simple install.




回答2:


At a high level you need to create an .ISPROJ (MSbuild ) and .SLN for your .ISM. In the ISPROJ you'll want to write some code to regex parse the build number and generate a random ProductCode for major upgrades.

You'll add a build vs sln step to your build and tell it to use 32bit MSBuild (InstallShield doesn't support 64bit).

https://docs.microsoft.com/en-us/vsts/build-release/concepts/definitions/build/variables?tabs=batch

http://helpnet.installshield.com/installshield22helplib/helplibrary/MSBuild.htm

You'll need an on-prem build server and install the InstallShield Stand Alone Build engine one it. I'd go ahead and install the Automation Interface also as you don't know when you'll need it some day.



来源:https://stackoverflow.com/questions/48885522/how-to-auto-generating-setup-file-while-check-in-the-code-in-to-tfs

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!