Results 1 to 3 of 3

Thread: [RESOLVED] ClickOnce and Database

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Jan 2007
    Posts
    307

    Resolved [RESOLVED] ClickOnce and Database

    Well I have my installer working good however thought i would try this clickonce installer. I have worked through all issues but one i think.

    If I post an updated version and a user updates their program they loose the database. Was curious how I move the database over from the old version.

    Thanks

  2. #2

    Thread Starter
    Hyperactive Member
    Join Date
    Jan 2007
    Posts
    307

    Re: ClickOnce and Database

    Ok, i figured one thing i was doing was when I set it to a data file in the Application files it puts the data in a different location so
    application.StartupPath & "\labels.mdb didnt work.

    So guess i need to reference the data in a different manner.

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Jan 2007
    Posts
    307

    Re: ClickOnce and Database

    I found the answer

    System.Deployment.Application.ApplicationDeployment.CurrentDeployment.DataDirectory

    And a person has to check the type of deployment if one is debuggin.

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