Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Adding Custom prerequsites to visual studio setup project

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?

like image 637
Web Avatar asked Aug 26 '09 12:08

Web


People also ask

How do I create a custom prerequisite in Visual Studio?

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.

How do I include prerequisites with a ClickOnce application Visual Studio 2019?

Select the Publish pane. Click the Prerequisites button to open the Prerequisites dialog box. In the Prerequisites dialog box, make sure that the Create setup program to install prerequisite components check box is selected. In the Prerequisites list, check the components that you wish to install, and then click OK.

How will you create a setup file in Visual Studio 2019 for console application?

Go to Extensions > Manage Extensions > Online > Search, find, download and install Microsoft Visual Studio Installer Projects extension. 2). Add a new Setup Project in your solution > right-click Application Folder > Add > Project Output… > choose the corresponding Project > select Primary output > OK.


2 Answers

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.

like image 182
Web Avatar answered Sep 20 '22 13:09

Web


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.

like image 37
TheAgent Avatar answered Sep 23 '22 13:09

TheAgent