Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Include folder in setup project

I want to include a folder in a setup project so that when I deploy that setup the complete folder is also deployed to the install location.

like image 657
MichaelD Avatar asked Jul 10 '09 10:07

MichaelD


People also ask

How do I add a folder to Visual Studio setup project?

Add a new Setup Project in your solution > right-click Application Folder > Add > Project Output… > 2). Add a new Setup Project in your solution > right-click Application Folder > Add > Project Output… >

How do I add a folder to a project?

In the Project Explorer view, right-click a folder name or white space and click New > Other. Expand General, select Folder, then click Next. In the New Folder dialog, select a parent project or folder.

How do you add primary output in setup project?

Primary outputRight-click the Application Folder item and choose Add | Project Output to add the add-in's assembly to your setup project. In the Add Project Output Group dialog box, select the Primary Output item of your Add-in/RTD Server/Smart Tag project and click OK.

Where is include folder in Visual Studio 2019?

Adding The Include Directory Go to the Visual Studio Project Property Pages dialog (From the Project menu, select Properties, or right-click on the project in the Solution Explorer). Select Configuration Properties, C/C++, General, and then add $(PIXELINK_SDK_ROOT)\include to the Additional Include Directories field.


1 Answers

The answer is good because it gave me clue on how to fix my problem. I think that my requirement was slightly different. I had to include contents of another library project from the same solution. This seems to work fine for Console Applications/Web Sites, but Installer for some reason was not including it. There might be a better way, but this worked for me. In similar fashion, right click the setup project, and:

- Select "View" > "Custom Actions". 
- Right click on "Install" folder and select "Add Custom Action". 
- Double click on "Application Folder"
- Click on "Add Output..."
- Select the project from the dropdown and in my instance I selected "Content Files", OK it and give it a name. 

This will include any resources, from the selected project marked as Content and that are marked for copying, into your installer.

like image 111
CrnaStena Avatar answered Oct 21 '22 18:10

CrnaStena