Results 1 to 4 of 4

Thread: ClickOnce Deployment Questions

  1. #1

    Thread Starter
    Member
    Join Date
    Sep 2006
    Posts
    63

    ClickOnce Deployment Questions

    My initial problem was that the database file included in my application installation would overwrite the database file on a client's computer whenever they would run an update of my program off CD.

    My workaround was to only include a blank database with the installation. When the app is started, it will search for the real database and if it doesn't exist, it copies over the blank database.

    But now I notice that an install does not necessarily go in the same folder as a previous installation. Some times it does, some times it doesn't. I'm not real sure as to how or why this happens. It's in the "Documents and Settings/user/local settings/apps/2.0/" then 2 or 3 folders of random numbers and letters.

    Does anybody explain the above procedure or have a better workaround for the problem I'm having?

    Greg

  2. #2
    Fanatic Member pvbangera's Avatar
    Join Date
    Sep 2001
    Location
    Mumbai, India
    Posts
    961

    Re: ClickOnce Deployment Questions

    Are you increamenting version of your application on every build of your solution??? That could be a cause!!!
    Microsoft Techie

  3. #3

    Thread Starter
    Member
    Join Date
    Sep 2006
    Posts
    63

    Re: ClickOnce Deployment Questions

    Yes, the revision number auto-increments on each build.

    Greg

  4. #4
    Fanatic Member pvbangera's Avatar
    Join Date
    Sep 2001
    Location
    Mumbai, India
    Posts
    961

    Re: ClickOnce Deployment Questions

    That's why the location is changing every time as per the version. Set the DefaultLocation property of your Application Folder in Setup project to some specific name like "C:\MyApplicationLocation".
    Microsoft Techie

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