Adding Custom prerequsites to visual studio setup project

强颜欢笑 提交于 2019-11-26 03:28:35

问题


I have a setup project that I need to install a redistributable that is not available in the default prerequisite list. Is it possible to add this redistributable to the bootstrapper that the setup project creates?


回答1:


I figured out how to add Custom Prerequisites to the Visual Studio prerequisites dialog box.
MSDN as a good article on creating the prerequisite. Basically you just have to create a product manifest and a package manifest, copy them along with your distributable file to : \Program Files\Microsoft SDKs\Windows\v6.0A\Bootstrapper\Packages. Visual studio will automatically pick it up.




回答2:


Take a look at Bootstrapper Manifest Generator tool (BMG) at http://code.msdn.microsoft.com/bmg

It is used for creating Bootstrapper packages and automatically adding them to Visual Studio's Prerequisites dialog box.

Edit: BMG can be downloaded from https://www.softpedia.com/get/Programming/Other-Programming-Files/Bootstrapper-Manifest-Generator.shtml now since the tool is deprecated apparently and is no longer located on Microsoft servers.




回答3:


This can be solved by creating Custom bootstrapper package.Following link provides creation of it with a sample example http://msdn.microsoft.com/en-us/library/ee726596.aspx



来源:https://stackoverflow.com/questions/1334436/adding-custom-prerequsites-to-visual-studio-setup-project

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