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.
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… >
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.
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.
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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With