CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 5 of 5
  1. #1
    Join Date
    Sep 2008
    Posts
    6

    ClickOnce target install folder

    When I use ClickOnce for publishing (which seems to be the only way to do it in VBE 2005) it always installs it to some obscure and completely absurd location deep within the local settings\apps folder. But I want it to install itself to program files, but I can't seem ind to an option in ClickOnce to set the install directory. Can someone help me with this?

  2. #2
    Join Date
    Jan 2006
    Location
    Fox Lake, IL
    Posts
    15,007

    Re: ClickOnce target install folder

    It asks you where you want to publish. Did you click next thru the wizard, or just straight out PUBLISH?
    David

    CodeGuru Article: Bound Controls are Evil-VB6
    2013 Samples: MS CODE Samples

    CodeGuru Reviewer
    2006 Dell CSP
    2006, 2007 & 2008 MVP Visual Basic
    If your question has been answered satisfactorily, and it has been helpful, then, please, Rate this Post!

  3. #3
    Join Date
    Sep 2008
    Posts
    6

    Re: ClickOnce target install folder

    Hi, thanks for taking the time to answer.

    The issue isn't with where it places the install file. The issue is with where the install file places the final executable. I usually publish to the c:\localhost directory, where the .deploy and .manifest files and install file of course end up. But the install file then places the executable somewhere in appdata\roaming, and adds a start menu item pointing there. What I wanted to do was have the install file install the executable to \program files\whatever, but can't seem to find the setting for it. Any ideas?

  4. #4
    Join Date
    Jan 2006
    Location
    Fox Lake, IL
    Posts
    15,007

    Re: ClickOnce target install folder

    Oh, I can't help with that. I have a similar issue, that the config file is also installed in a HIDDEN folder, and I have to change the default connection string on each pc after the install. I can't change the deploy file or the install fails.

    I develop using SQLExpress, and deploy to SQL Server 2005.
    David

    CodeGuru Article: Bound Controls are Evil-VB6
    2013 Samples: MS CODE Samples

    CodeGuru Reviewer
    2006 Dell CSP
    2006, 2007 & 2008 MVP Visual Basic
    If your question has been answered satisfactorily, and it has been helpful, then, please, Rate this Post!

  5. #5
    Join Date
    Nov 2004
    Posts
    1

    Re: ClickOnce target install folder

    Did anyone sort this problem.

    I too cannot not get the install to install to a specified path. It seems to go deap in the user folder somewhere.

    Help me please

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

Featured