Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. Visual Basic
  4. Where's Waldo

Where's Waldo

Scheduled Pinned Locked Moved Visual Basic
databasetutorialquestionlearning
7 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K Offline
    K Offline
    Karma31251
    wrote on last edited by
    #1

    I need to know how to add files to the Application Files List in publish section of a project in VB 2005 Express Edition, specifically a database file. The file is in the resource section but i need it to show up in the application files list. i dont need to add it to the resource file i need to add it to the Application file list so that i can deem it a data file and the program will place the file in the correct place to be accessed by the program otherwise when i install the program it looks for the database and cannot find it, then errors out and shuts down the program. Unless anyone knows a different way to tell the installer to copy that database file to the correct path?

    C 1 Reply Last reply
    0
    • K Karma31251

      I need to know how to add files to the Application Files List in publish section of a project in VB 2005 Express Edition, specifically a database file. The file is in the resource section but i need it to show up in the application files list. i dont need to add it to the resource file i need to add it to the Application file list so that i can deem it a data file and the program will place the file in the correct place to be accessed by the program otherwise when i install the program it looks for the database and cannot find it, then errors out and shuts down the program. Unless anyone knows a different way to tell the installer to copy that database file to the correct path?

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      What installer are you using ? I can put any file I want, anywhere I want with every installer program I've ever used.

      Christian Graus - Microsoft MVP - C++ Metal Musings - Rex and my new metal blog

      K D 2 Replies Last reply
      0
      • C Christian Graus

        What installer are you using ? I can put any file I want, anywhere I want with every installer program I've ever used.

        Christian Graus - Microsoft MVP - C++ Metal Musings - Rex and my new metal blog

        K Offline
        K Offline
        Karma31251
        wrote on last edited by
        #3

        windows installer 3.1 i guess, i mean i am using the options provided by the VB 2005 Express Edition should i be using the a third party installer -- modified at 15:21 Wednesday 10th January, 2007

        D 1 Reply Last reply
        0
        • C Christian Graus

          What installer are you using ? I can put any file I want, anywhere I want with every installer program I've ever used.

          Christian Graus - Microsoft MVP - C++ Metal Musings - Rex and my new metal blog

          D Offline
          D Offline
          Dave Kreskowiak
          wrote on last edited by
          #4

          He's using ClickOnce Deployment. IMHO, a nasty little can of worms. :laugh:

          Dave Kreskowiak Microsoft MVP - Visual Basic

          1 Reply Last reply
          0
          • K Karma31251

            windows installer 3.1 i guess, i mean i am using the options provided by the VB 2005 Express Edition should i be using the a third party installer -- modified at 15:21 Wednesday 10th January, 2007

            D Offline
            D Offline
            Dave Kreskowiak
            wrote on last edited by
            #5

            You're going to have to modify your code so you can find the database if you're going to deploy your app using ClickOnce (or Publish) deployment. This is because your database file (.MDB) is going to end up in a different folder than your app's .EXE. You'll have to modify the code so you can specify the FULLY QUALIFIED PATH to the .MDB file when you build your connection string to open the database. Details can be found here[^]. But, you just add your MDB file to your apps project to make it a part of the installation. ClickOnce will automatically put it in your apps Data folder when it's deployed on the client machines.

            Dave Kreskowiak Microsoft MVP - Visual Basic

            K 1 Reply Last reply
            0
            • D Dave Kreskowiak

              You're going to have to modify your code so you can find the database if you're going to deploy your app using ClickOnce (or Publish) deployment. This is because your database file (.MDB) is going to end up in a different folder than your app's .EXE. You'll have to modify the code so you can specify the FULLY QUALIFIED PATH to the .MDB file when you build your connection string to open the database. Details can be found here[^]. But, you just add your MDB file to your apps project to make it a part of the installation. ClickOnce will automatically put it in your apps Data folder when it's deployed on the client machines.

              Dave Kreskowiak Microsoft MVP - Visual Basic

              K Offline
              K Offline
              Karma31251
              wrote on last edited by
              #6

              what do you mean by add because it is in the resource file and the program runs off the database in the IDE.

              D 1 Reply Last reply
              0
              • K Karma31251

                what do you mean by add because it is in the resource file and the program runs off the database in the IDE.

                D Offline
                D Offline
                Dave Kreskowiak
                wrote on last edited by
                #7

                Don't put it in the resource file. Use the .MDB file right off the drive. You can't use an Access database that's stored in resources anyway because you can't get write access to it. It MUST be accessed from a file on a Read/Write media.

                Dave Kreskowiak Microsoft MVP - Visual Basic

                1 Reply Last reply
                0
                Reply
                • Reply as topic
                Log in to reply
                • Oldest to Newest
                • Newest to Oldest
                • Most Votes


                • Login

                • Don't have an account? Register

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • World
                • Users
                • Groups