如何将自定义URL协议与ClickOnce应用程序关联? [英] How can I associate a custom URL protocol with a ClickOnce app?

查看:154
本文介绍了如何将自定义URL协议与ClickOnce应用程序关联?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想关联自定义 URL 协议(例如, myprotocol:// SomeFolder / SomePage )和 ClickOnce 应用程序。 / p>

我可以毫无问题地创建关联-问题是,每次(经常)更新应用程序时,EXE文件的路径都会更改。



有没有解决这个问题的方法?

解决方案

似乎是这个问题的答案



我创建了一个启动器(非常简单的应用程序),该启动器可以找到快捷方式并将其启动参数传递给ClickOnce应用程序。我需要以传统方式安装启动器,但仍可以在需要时通过ClickOnce更新主应用程序。



我发现这些链接很有用:




I want to associate a custom URL protocol (for example, myprotocol://SomeFolder/SomePage) with a ClickOnce application.

I can create the association without a problem - the issue is that every time the application is updated (which is frequently) the path to the EXE file changes.

Is there any way around this issue?

解决方案

It seems the answer to this is you can't, however I did come up with a solution.

I created a launcher (very simple application) which finds the shortcut and passes its startup parameters to the ClickOnce application. I need to install the launcher in the traditional way, but the main application can still be updated via ClickOnce when needed.

I found these links useful:

这篇关于如何将自定义URL协议与ClickOnce应用程序关联?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆