ClickOnce的文件关联 [英] ClickOnce File Association

查看:467
本文介绍了ClickOnce的文件关联的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有我使用ClickOnce部署控制台应用程序。一旦用户安装了关联设置程序,但相关的程序是安装程序(ClickOnce应用程序部署支持库),而不是实际的程序。我怎样才能获得该协会是实际的程序,而不是安装程序?

I have a console application that I'm deploying using ClickOnce. Once the user installs the program the associations are set but the associated program is the installer(ClickOnce Application Deployment Support Library) and not the actual program. How can I get the association to be the actual program and not the installer?

我已经包括从下面的app.manifest的fileAssociation节点。请让我知道,如果你对此有任何提示。谢谢

I've included the fileAssociation node from the app.manifest below. Please let me know if you have any tips on this. Thanks.

<fileAssociation xmlns="urn:schemas-microsoft-com:clickonce.v1" 
               extension=".aav" 
               description="My Program" 
               progid="MyProgram" 
               defaultIcon="myIcon.ico" />



在测试了3种不同的电脑从Windows XP中,Vista中,Windows 7的信任级别是​​完全信任。自动更新设置为火前推出。

Tested on 3 different computers ranging from Windows XP, Vista, Windows 7. Trust level is full trust. Auto Update is set to fire pre-launch.

推荐答案

这个问题源于1不一定理解的ClickOnce,感谢codeConcussion为短暂概述

The problem stemmed for 1 not necessarily understanding ClickOnce, thanks codeConcussion for the brief overview.

和2,这的ClickOnce不会通过传统的ARGS格式,但通过以下属性传递的东西: AppDomain.CurrentDomain.SetupInformation.Activati​​onArguments .Activati​​onData

And 2, that ClickOnce does not pass things through the traditional args format but through the following property: AppDomain.CurrentDomain.SetupInformation.ActivationArguments.ActivationData

这篇关于ClickOnce的文件关联的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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