Forum Discussion

CodeDJ's avatar
CodeDJ
Iron Contributor
Apr 08, 2019

ClickOnce application downloads instead of directly opening the app

When opening a ClickOnce app, the *.application file gets saved to my Downloads folder instead of directly opening it. Additionally, since the file is downloaded, then opened from Downloads, it loses the cookie information required for our app to function correctly.

44 Replies

  • KarthikKrishna's avatar
    KarthikKrishna
    Copper Contributor

    CodeDJ This is still not working when the VSTO file (Word Addin) is hosted in a Document Library to distribute to users. Any solutions for this issue?

     

    We have developed a few Word Addins (Word Taskpanes) and we host the click once installers (VSTO) files in a SharePoint Document Library. When click on it, it gets installed. It worked perfectly for us in IE until now. Unfortunately the VSTO file downloads locally instead of installing. 

     

    We tried hosting the addins directly in IIS and tested with a simple HTML page using MS Edge. That works as expected. But the same VSTO files hosted in SP2013 Document Library fails. Any help would be much appreciated.

  • i-am-kent's avatar
    i-am-kent
    Former Employee

    CodeDJ , thanks for the feedback! We would definitely need to think through some interesting security implications here (it would be analagous to setting "Always run executables" for downloads).
    Vidmo , sorry I couldn't get back to you earlier; it looks like you were able to answer your question. We do not currently have plans to enable ClickOnce for ALL users, but you currently should have access to group policy to ensure that your organization has ClickOnce turned on by default if necessary. The policy is described here https://docs.microsoft.com/en-us/DeployEdge/microsoft-edge-policies#clickonceenable
    aclowe , please take a look at https://docs.microsoft.com/en-us/DeployEdge/microsoft-edge-policies#clickonceenabled for the group policy to support exactly what you mentioned

     

    As Eric mentioned, we will be looking into the vsto bug! Thanks everyone for your feedback!

    • slamkeys's avatar
      slamkeys
      Copper Contributor

      Our customers have relied on Microsoft .NET ClickOnce support for a long time, and we are unclear how to document the path forward with Edge chromium.

       

      1. Will Edge chromium supplant existing Edge HTML installations via Windows Update?
      2. Will ClickOnce be disabled by default?
      3. Will there be a way for end users to enable ClickOnce support via settings, without having to resort to group policy or developer flags?
      4. Why is there now a mime-type dialog displayed asking the user to select an application for launching the ClickOnce application? Shouldn't Edge chromium be associated with .application files without an end user decision?

      We obviously prefer to have ClickOnce enabled by default, but if not there should be a simple configuration option each user can toggle. We don't have any plans to retire our ClickOnce feature at this time, so continued support is critical.

      • Eric_Lawrence's avatar
        Eric_Lawrence
        Icon for Microsoft rankMicrosoft
        1. Yes, the new Edge will start replacing the old Edge on Windows PCs next year.
        2. ClickOnce is presently disabled by default.
        3. ClickOnce support can be enabled via edge://flags and Group Policy. There's no option in edge://settings.
        4. A screenshot and/or OS information should be helpful here. File associations are owned by Windows, not the browser. If you save a .application file to your desktop and open it on the machine in question, what happens?
    • mjonestx's avatar
      mjonestx
      Copper Contributor

      i-am-kent 

       

      I am using Version 91.0.864.37 (Official build) (64-bit) of Edge and have enabled the ClickOnce flag; however, I am still just seeing the download behavior and am not able to click and run the .vsto add-in from the server url.  Am I missing something?

       

      Thanks for your help!

    • aclowe's avatar
      aclowe
      Copper Contributor

      i-am-kent 

      Thanks for the update, working perfectly for me after enabling the flag.

      Our business would not be opposed to having to enable the option with it off by default if that decision is made for security or other purposes. It would be nice to have this available via Group Policy or other deployment options.

       

       

    • Vidmo's avatar
      Vidmo
      Copper Contributor

      i-am-kentJust tested with a ClickOnce .application URL and it worked fine. But what about .vsto? Its not being treated as a ClickOnce URL install.

      • entuto's avatar
        entuto
        Copper Contributor

        Vidmo Hi! How hace you made the parameters by URL work? I can only open the application but the parameter arrives empty.

         

        Thank you vey much. 

  • i-am-kent's avatar
    i-am-kent
    Former Employee

    CodeDJ We really appreciate the feedback! ClickOnce support was on our mind as we were thinking through the Downloads workflow in Edge. It is feedback like yours, and others responding to this post, that help us in prioritizing ClickOnce support relative to other areas we are investing in. ClickOnce is a feature that we are working towards implementing, so stay tuned!

    • aclowe's avatar
      aclowe
      Copper Contributor
      Hi i-am-kent, I'm also looking forward to support for ClickOnce, cookies are not essential for our environment, however, URL parameters are essential.

      Thanks,
      • timtow's avatar
        timtow
        Copper Contributor

        aclowe We also need ClickOnce support for URL parameters for our product.

         

      • i-am-kent's avatar
        i-am-kent
        Former Employee

        Hi Vidmo, thanks for checking in! We have engineers actively working on getting ClickOnce support and this is high on my priorities. While I can't reveal the timeline for this, I will try to update this post when I have more information to share. Feel free to ping this thread again if you don't hear back from me!

         

  • Vidmo's avatar
    Vidmo
    Copper Contributor

    Yep same here, this was one of the first things I wanted to check as we really need this to be working out of the box for the new Edge.

     

  • TheJAC's avatar
    TheJAC
    Brass Contributor

    CodeDJ I have this same issue. I get around it by calling iexplore.exe in front of the app to launch it from IE. This is a workaround, I would like Microsoft to fix this so it is handled correctly.

     

    Here is my example that I use in the shortcut:

     

    "C:\Program Files\Internet Explorer\iexplore.exe" http://website.com/example.application

    • CodeDJ's avatar
      CodeDJ
      Iron Contributor

      TheJAC Thanks for the tip. Clicking on the downloaded abc.application opens the clickonce app for me using Edge Insider but it doesn't include any cookies from my website - which is a requirement for my apps. Thanks!

      • soundman_ok's avatar
        soundman_ok
        Copper Contributor

        CodeDJ There is a Chrome extension called "https://chrome.google.com/webstore/detail/clickonce-for-google-chro/kekahkplibinaibelipdcikofmedafmb".  This can be installed in Edge, if you allow extensions from other stores and then acquire the extension from the https://chrome.google.com/webstore/.  Although, this is not a built-in function, the extension does allow ClickOnce apps to execute normally, instead of being downloaded.

        I do hope that this ClickOnce function will be addressed in Edge, so that we don't have to use an extension or another work-around.

  • taylorm's avatar
    taylorm
    Copper Contributor

    I'm experiencing this as well. This is known behavior for how Chrome handles ClickOnce applications, but we use Edge today for launching ClickOnce applications.

Resources