Include folder in setup project

后端 未结 2 998
挽巷
挽巷 2020-12-31 17:14

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.

2条回答
  •  悲哀的现实
    2020-12-31 17:49

    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.

提交回复
热议问题