locked
Click Once Install Location on Local Machine?

    Question

  • I have read a lot of stuff on ClickOnce and not found the answer to my question... It is possible I missed this information, but: 

    Is it possible to point the install of ClickOnce to a directory of my choice on the local computer instead of caching it in Documents and Settings\user?  some place like c:\Program Files\Foo Apps\ for example? 

    I like the ClickOnce stuff a lot and especially the update on run functionality, but would like it independent from the user...

    Dev/Usr Environment info: I am using VB Express '08 and SQL Express '05 for my applications in a corporate networking environment and the users will be installing from a network share drive.  I have tested this and it works fine, just the location seems to be undesirable.

    Thanks!

    -Michael
    Monday, January 11, 2010 9:11 PM

Answers

  • Hi Michael, ClickOnce does not support custom destination folders. The reason why ClickOnce-deployed applications are installed into the cache is that such cache is maintained by the .NET Framework, which is responsible for executing applications deployed via ClickOnce.

    If you need a comparison between available features for both ClickOnce and Windows Installer, here you can find the full list:
    http://msdn.microsoft.com/en-us/library/142dbbz4.aspx
    Alessandro Del Sole - Microsoft MVP http://community.visual-basic.it/Alessandro
    • Marked as answer by YiChun Chen Monday, January 18, 2010 10:13 AM
    Monday, January 11, 2010 10:06 PM
  • Hi Michael,

    Thank you for your post.

    As Alessandro mentioned, for ClickOnce, we cannot change the path of installer.

    I've tried published one application. The application was installed at the path: C:\Documents and Settings\[User]\Local Settings\Apps\2.0\....\....\.......
    After publishing the application, it will be automatically installed as the above directory.

    For Visual Studio 2008 Express IDE, it doesn't support to deploy MSI installer. To deploy MSI installer, we need the feature like Setup Project template in Visual Studio IDE.
    For more information, please check: http://msdn.microsoft.com/en-us/library/996a3fxs%28VS.71%29.aspx

    If you want to stick to Visual Studio Express products, you might need to try some third-party software installer like Installshield, WIX and others. For free software, you can try Windows Installer XML (WiX). It is a toolset that builds Windows installation packages from XML source code.
    For more information, please check: http://sourceforge.net/projects/wix/files/.
    For good tutorial, please check: http://www.tramontana.co.hu/wix/.

    Hope this helps! Have a great week.

    Best regards,
    Yichun Chen

    (This response contains a reference to a third party World Wide Web site. Microsoft is providing this information as a convenience to you. Microsoft does not control these sites and has not tested any software or information found on these sites; therefore, Microsoft cannot make any representations regarding the quality, safety, or suitability of any software or information found there. There are inherent dangers in the use of any software found on the Internet, and Microsoft cautions you to make sure that you completely understand the risk before retrieving any software from the Internet.)
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.
    Welcome to the All-In-One Code Framework! If you have any feedback, please tell us.
    • Marked as answer by YiChun Chen Monday, January 18, 2010 10:13 AM
    Wednesday, January 13, 2010 10:01 AM

All replies

  • Hi Michael, ClickOnce does not support custom destination folders. The reason why ClickOnce-deployed applications are installed into the cache is that such cache is maintained by the .NET Framework, which is responsible for executing applications deployed via ClickOnce.

    If you need a comparison between available features for both ClickOnce and Windows Installer, here you can find the full list:
    http://msdn.microsoft.com/en-us/library/142dbbz4.aspx
    Alessandro Del Sole - Microsoft MVP http://community.visual-basic.it/Alessandro
    • Marked as answer by YiChun Chen Monday, January 18, 2010 10:13 AM
    Monday, January 11, 2010 10:06 PM
  • Hi Michael,

    Thank you for your post.

    As Alessandro mentioned, for ClickOnce, we cannot change the path of installer.

    I've tried published one application. The application was installed at the path: C:\Documents and Settings\[User]\Local Settings\Apps\2.0\....\....\.......
    After publishing the application, it will be automatically installed as the above directory.

    For Visual Studio 2008 Express IDE, it doesn't support to deploy MSI installer. To deploy MSI installer, we need the feature like Setup Project template in Visual Studio IDE.
    For more information, please check: http://msdn.microsoft.com/en-us/library/996a3fxs%28VS.71%29.aspx

    If you want to stick to Visual Studio Express products, you might need to try some third-party software installer like Installshield, WIX and others. For free software, you can try Windows Installer XML (WiX). It is a toolset that builds Windows installation packages from XML source code.
    For more information, please check: http://sourceforge.net/projects/wix/files/.
    For good tutorial, please check: http://www.tramontana.co.hu/wix/.

    Hope this helps! Have a great week.

    Best regards,
    Yichun Chen

    (This response contains a reference to a third party World Wide Web site. Microsoft is providing this information as a convenience to you. Microsoft does not control these sites and has not tested any software or information found on these sites; therefore, Microsoft cannot make any representations regarding the quality, safety, or suitability of any software or information found there. There are inherent dangers in the use of any software found on the Internet, and Microsoft cautions you to make sure that you completely understand the risk before retrieving any software from the Internet.)
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.
    Welcome to the All-In-One Code Framework! If you have any feedback, please tell us.
    • Marked as answer by YiChun Chen Monday, January 18, 2010 10:13 AM
    Wednesday, January 13, 2010 10:01 AM
  • Thanks for the info!  I'll live with it :)  I only write small data crunching apps for about 4-5 people at the office so its no big deal.  I do like the automatic update check feature!  Already used it twice with good results :)  Thanks again for your help.

    Best regards,

    Michael
    Monday, January 18, 2010 3:24 PM
  • Hi Michael,

    It's my pleasure!

    I'm so glad to hear this good news. Cheer!

    Both Alessandro and you have a great week.

    Best regards,
    Yichun Chen
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.
    Welcome to the All-In-One Code Framework! If you have any feedback, please tell us.
    Tuesday, January 19, 2010 5:14 AM