Results 1 to 2 of 2

Thread: [2005] Help with setup and deployment

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    May 2002
    Posts
    1,602

    [2005] Help with setup and deployment

    Hi!

    I have a question, in my Solution, I have added a setup and deployment project, and I have added the primary output as my winforms project.

    But, I have a folder in my winforms project called "Data" where I house all the xml files needed to run this app. I need those also to be copied to the deploy package when I rebuild, just as the primary output does. I have not found a solution to do this...

    Kind regards
    Henrik

  2. #2
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: [2005] Help with setup and deployment

    Set the Build Action property of those project items to Content. You can then add another output to your Setup project and select Content. You use the File System Editor to decide where everything goes, so you can specify that that output gets installed in a Data folder under the program folder if you want.

    That said, if these XML files will be edited at run time at all then they should not be installed under Program Files. They should be installed under Application Data, which can also be done in the File System Editor. You'd need to adjust your VB code accordingly.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width