Include folder in installation project

I want to include a folder in the installation project so that when you deploy this installation, the full folder is also expanded at the installation location.

+7
c # installation visual-studio-2008 visual-studio setup-project
source share
2 answers

Right-click the installation project and choose View> File System, and from there you can access a large number of special folders, such as the installation folder, applications, desktop, etc., and add files that will be created when you install the application. Remember to set the alwayscreate property to true.

+13
source share

The answer is good because it made me understand how to fix my problem. I think my requirement was somewhat different. I had to include the contents of another library project from the same solution. This seems to be great for console applications / websites, but the installer for some reason did not enable it. Perhaps the best way, but it worked for me. Similarly, right-click the installation 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 marked for copying, into your installer.

0
source share

All Articles