通过 HTTP 执行位于共享上的 ClickOnce 应用程序?

发布于 2024-07-27 03:04:28 字数 444 浏览 3 评论 0原文

我有一个部署在网络共享上的 ClickOnce 应用程序(仅限在线)。 人们可以通过创建快捷方式来运行该应用程序

i:\ApplicationDirectory\ApplicationName.application

其中 i 是网络共享驱动器的盘符。

我想通过 HTTP 启动应用程序。 为此,我需要可以通过我的网络服务器访问 .Application 文件。 但是我无法选择 ApplicationDirectory 作为 IIS 的虚拟目录。 我尝试将 .Application 文件复制到虚拟 IIS 路径,但这会导致部署损坏(我​​还更新了 .Application 文件中的 application_files 引用)。 是否有(其他)方法通过 HTTP 启动部署在网络共享上的 ClickOnce 应用程序?

i have a ClickOnce application (online only) which is deployed on a network share. People can run the application by creating a shortcut to

i:\ApplicationDirectory\ApplicationName.application

where i is the letter of the drive of the networkshare.

I want to start the application over HTTP. For this, I need the .Application file to be accessible through my webserver. However I am unable to select the ApplicationDirectory as a virtual directory for IIS. I tried copying the .Application file to a virtual IIS path, but this makes the deployment corrupt (i also updated application_files reference in the .Application file). Is there a(nother) way to start a ClickOnce application, deployed on a network share, over HTTP?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

十年九夏 2024-08-03 03:04:28
  • 首先找到您的 ClickonceKey.pfx,换句话说,用于签署程序集的密钥。
  • 然后找到 mage.exe,这是用于签署清单的实用程序,它是 .NET Framework SDK 的一部分。 对于 VS2005,可以在 %ProgramFiles%\Microsoft Visual Studio 8\SDK\v2.0\Bin 中找到。
  • 然后创建一个批处理文件来执行mage.exe。
  • 然后将网络共享部署文件夹的内容复制到 Web 服务器上的新虚拟目录。
  • 最后,运行批处理文件。

批处理文件应如下所示:

mage.exe 

-update >>path to your application manifest in the virtual directory<<

-providerurl >>location of application manifest virtual directory<< 

-certfile Clickoncekey.pfx -password >>your password<<
  • First find your ClickonceKey.pfx, in other words the key used to sign assemblies.
  • Then find mage.exe, the utility for signing manifests that's part of the .NET Framework SDK. For VS2005, it can be found at %ProgramFiles%\Microsoft Visual Studio 8\SDK\v2.0\Bin.
  • Then create a batch file to execute mage.exe.
  • Then copy the contents of the network share deployment folder to a new virtual directory on the web server.
  • Finally, run the batch file.

The batch file should look something like this:

mage.exe 

-update >>path to your application manifest in the virtual directory<<

-providerurl >>location of application manifest virtual directory<< 

-certfile Clickoncekey.pfx -password >>your password<<
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文