Forum Discussion
ClickOnce application downloads instead of directly opening the app
CodeDJ Just updating this thread to say that ClickOnce support is now in Canary (79.0.283.0). Users may opt into using ClickOnce by heading to the about:flags page and looking for "#edge-click-once".
More information on this is available here:
https://docs.microsoft.com/en-us/DeployEdge/edge-learn-more-co-di?branch=pr-en-us-105
Thanks everyone for your patience!
- mjonestxJun 02, 2021Copper Contributor
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!
- Eric_LawrenceJun 02, 2021
Microsoft
mjonestx: On which version of Windows are you having this problem? Is your server URL public, or can you otherwise see what `Content-Type` response header it's sending (using Fiddler or similar?) If you try the sample link at https://webdbg.com/test/clickonce/, does it pop the UI?
- mjonestxJun 02, 2021Copper Contributor
Thanks!
My client pc is running Windows 10 Pro, Version 1909, OS Build: 18363.1500
The Server that is hosting the .vsto Word add-in, is a Windows Server 2016 server running SharePoint 2016 on-prem.
When I click on the url you provided in Edge, I see what is in the following screenshot.
When I click on the 'Launch' link in the "Otherwise, install HelloClickOnce via a setup.exe" section, I see what is in the following screenshot:
, which is not what I see when I click on a link to the .vsto file on my server, such as in the next screenshot:
Here is only download the file directly and does not give me an option to open/run it from the server.
The response header that I get when I click on the v.sto file name is:
HTTP/1.1 200 OK
Cache-Control: max-age=31536000
Content-Type: application/x-ms-vsto
Last-Modified: Wed, 16 Dec 2020 22:47:16 GMT
Accept-Ranges: bytes
ETag: "a1e2e366fdd3d61:0"
Server: Microsoft-IIS/10.0
X-SharePointHealthScore: 0
SPRequestGuid: bb05ce9f-cb20-90a6-2691-8f6809719a7f
request-id: bb05ce9f-cb20-90a6-2691-8f6809719a7f
X-FRAME-OPTIONS: SAMEORIGIN
SPRequestDuration: 8
SPIisLatency: 1
X-Powered-By: ASP.NET
MicrosoftSharePointTeamServices: 16.0.0.5149
X-Content-Type-Options: nosniff
X-MS-InvokeApp: 1; RequireReadOnly
Date: Wed, 02 Jun 2021 19:24:07 GMT
Content-Length: 6776When I click on the 'launch' link on the site you posted, I get the following response header:
Accept-Ranges: bytes
Content-Length: 5915
Content-Type: application/x-ms-application
Date: Wed, 02 Jun 2021 22:00:52 GMT
ETag: "5bb16917add41:0"
Last-Modified: Tue, 15 Jan 2019 21:12:34 GMT
Server: Microsoft-IIS/8.5
X-Powered-By: ASP.NETAny ideas? Thanks again!
MJ
- acloweSep 25, 2019Copper Contributor
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.
- VidmoSep 25, 2019Copper 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.
- entutoOct 01, 2020Copper 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.
- Eric_LawrenceOct 01, 2020
Microsoft
entuto : Have you enabled the flag in edge://flags? Do you see this UI prompt?
Do you see the URL Arguments at the bottom of the window if you select the "Install an .application via ClickOnce with URL arguments" link on this test page https://bayden.com/test/clickonce/?
- Eric_LawrenceSep 25, 2019
Microsoft
Thanks for the bug report. We can confirm this isn't yet working correctly for .vsto files.
- VidmoSep 25, 2019Copper Contributor
i-am-kent To somewhat answer my own question about GPO support it looks like the manual enable option does state that "This feature flag will be overridden if your organization configures the "Allow users to open files using the ClickOnce protocol" policy."
So maybe we will have some control over this.
- VidmoSep 25, 2019Copper Contributor
i-am-kentI read the documentation page you listed and I'm confused. Why would ClickOnce NOT be turned on by default?
We're expecting a solution that behaves as IE and Edge do today. They both have ClickOnce on by default, why shouldn't Edge DEV as well? Also, will there be a GPO method to turning this on? If not, then how can you claim it's for Enterprises to use?
- CodeDJSep 25, 2019Iron Contributor
Vidmo this is how they release new features, first in canary, a lot of times behind a flag, when stable it becomes the default.
- VidmoSep 25, 2019Copper Contributor
CodeDJPlease re-read the documentation page. https://docs.microsoft.com/en-us/DeployEdge/edge-learn-more-co-di?branch=pr-en-us-105
That page states specifically "Because ClickOnce is an enterprise-focused feature that’s used by a specific group of power users and not intended for general use, ClickOnce is disabled by default."