问题
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