Results 1 to 6 of 6

Thread: Deployment question

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Nov 2006
    Posts
    205

    Deployment question

    This question might be a stupid one...
    In order for me to run my VB.net program on another machine, besides creating the setup.exe file (assuming I use the tradictional window's installer method) and msi file, do I need to copy my database, images etc over seperatly besides runing the setup.exe, or the installer will populate these for me into the right directory during installation?
    Thanks.

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

    Re: Deployment question

    The installer will do what you tell it to do. If you tell it to copy your database and image files to the target machine then that's what it will do. You use the File System Editor to specify which files to install to which locations.
    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

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Nov 2006
    Posts
    205

    Re: Deployment question

    Thanks JM.

    I did some research and tried to play with the File System Editor but only managed to figure out how to add file and folders under the application folder. What happen if I want to add a database to another drive? Another question is, do I need to add bin/My Project/obj/Resources directories and their contents under my project folder?

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

    Re: Deployment question

    If you don't know the target location at design time you could install your database to your program folder during setup and then use a Custom Action to move it to a location specified by the user.

    You don't need anything from the obj folder.
    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

  5. #5

    Thread Starter
    Addicted Member
    Join Date
    Nov 2006
    Posts
    205

    Re: Deployment question

    What do you mean by "use a Custom Action to move it to a location specified by the user"?
    Thanks.

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

    Re: Deployment question

    http://msdn2.microsoft.com/en-us/lib...2d(VS.80).aspx

    Note where that topic is in the index and all the other useful topics in the vicinity. Good old MSDN.
    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