ClickOne应用程序更新从所有已安装的ClickOnce应用程序中删除了所有开始菜单快捷方式 [英] ClickOne application update removed all start menu shortcuts from all installed ClickOnce applications

查看:52
本文介绍了ClickOne应用程序更新从所有已安装的ClickOnce应用程序中删除了所有开始菜单快捷方式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,


我们公司正在为所有不同的产品使用大量的ClickOnce部署。他们都在创建开始菜单快捷方式,位于我们公司名称下的发布商属性中。



最后一次更新后我们的产品所有开始菜单快捷方式都消失了。只剩下更新的应用程序。他们仍然在"程序&功能与QUOT;并且仍然安装在我的用户配置文件的AppData文件夹中。重新运行
对应的.application文件(位于网络共享上)或桌面快捷方式会重新创建缺少的快捷方式。该应用程序似乎没有重新安装(没有安装或更新对话框,程序刚刚启动)。它还重新创建了之前放置的
相同位置的快捷方式(Win 10开始菜单/甚至任务栏)。乍一看,你可以说它只是看不见,但是检查AppData \Roaming\Microsoft \ Windows \ Start菜单文件夹显示它不存在。


现在我是使用我们的持续部署服务器进行新部署。为了匹配服务器的工作流程,我已完成以下操作:


  1. 通过以下方式将应用程序发布到本地文件夹:msbuild  / target:publish / property: Configuration = Release /p:ApplicationVersion=1.0.0.0;PublishURL=\\\location\;GenerateManifests=true
  2. Mage.exe -Update App.exe.manifest -Version<< realversion> >
  3. Mage.exe -Update App.application -Version<< realVersion>> -MinVersion<< realVersion>> -AppManifest" Application Files\App_<< realVersion>> \ App.exe.manifest" -Algorithm sha256RSA
  4. 将部署复制到网络共享


通过以下方式发布静态1.0.0.0版本msbuild是必要的,因为<< realVersion>>目前还不知道。我知道这不是最干净的方式,但是从我读到的关于法师的内容来看它应该有效。



在我开始通过法师操纵清单之前它工作正常,但直接从Visual Studio部署所有应用程序是很麻烦的。因此,运行连续部署服务器是必须的。


为什么更新会影响我们所有的产品?它们都有不同的装配/套件和产品名称。另外他为什么要在Win 10开始菜单/任务栏的完全相同的位置恢复快捷方式?



非常感谢帮助。



问候

解决方案


据我所知, ClickOnce发布页面不提供创建快捷方式的选项,因为我们的进程是一个黑盒子,所以我没有一个很好的建议,为什么更新删除所有开始菜单
快捷方式,除非你有一些操作错误。


ClickOnce快捷方式是.appref-ms文件。我们都知道ClickOnce程序的实际路径并不固定,只要程序更新到新版本的时间,起始位置
就会改变。这与传统的捷径不同。



我建议 
程序启动时,您可以检查并创建应用程序的快捷方式。 


https://social.msdn.microsoft.com/Forums/windows/en- US / 50bffa56-4a3f-4cfb-994c-35fff400bb7d / create-desktop-shortcut-option-in-clickonce-deployment-is-disabled?forum = winformssetup


https://social.msdn.microsoft.com/Forums/windows/en-US/d01e34d1-d704-4fdf-af4a-e52a466fb715/clickonce-update-and-shortcuts?forum=winformssetup


https://msdn.microsoft.com/en-us/library/system.deployment.application(v = vs.110).aspx


希望有所帮助。


最好的问候,


Bob




Hi everybody,

in our company we're using a lot of ClickOnce deployments for all our different products. They're all creating start menu shortcuts, located under our company name which is set in the publisher property.

After the last update of one of our products all start menu shortcuts disappeared. Only the updated application remained. They are still in the "Programs & Features" and still installed in the AppData folder of my user profile. Rerunning the corresponding .application files (located on a network share) or the desktop shortcut recreates the missing shortcuts. The application seems not be reinstalled (no install or update dialog, programm is just starting). It also recreates the shortcuts at the same place they were placed before (Win 10 start menu / even taskbar). At first sight you could argue it's only invisible, but checking the AppData\Roaming\Microsoft\Windows\Start Menu folder reveals it's not there.

Right now I'm working on a new deployment with our continuous deployment server. To match the workflow of the server I've done the following:

  1. Publishing the app to a local folder via: msbuild /target:publish /property:Configuration=Release /p:ApplicationVersion=1.0.0.0;PublishURL=\\location\;GenerateManifests=true
  2. Mage.exe -Update App.exe.manifest -Version <<realversion>>
  3. Mage.exe -Update App.application -Version <<realVersion>> -MinVersion <<realVersion>> -AppManifest "Application Files\App_<<realVersion>>\App.exe.manifest" -Algorithm sha256RSA
  4. Copy deployment to the network share

Publishing a static 1.0.0.0 version via msbuild is necessary, because the <<realVersion>> is not known at this point. I know it's not the cleanest way, but from what I read about mage it should work.

Before I started to manipulate the manifests via mage it worked, but deploying all applications straight from Visual Studio is cumbersome. So running a continuous deployment server is a must.

Any ideas why the update affected all of our products? They all have different assembly / suite and product names. Also why does he restore the shortcut at the exact same position of the Win 10 start menu / taskbar?

Help is greatly appreciated.

Greetings

解决方案

Hi,

As far as I know, ClickOnce release page does not provide the option to create shortcuts, for our process is a black box, so I do not have a good suggestion for why update delete all start menu shortcuts, unless you have some operational errors.

ClickOnce shortcut is an .appref-ms file. We all know that the actual path of the ClickOnce program is not fixed, whenever the program updates to the new version of the time, the starting position will change. So that is difference with the traditional shortcuts.

I would suggest 
When the program starts, you can check and create the application's shortcuts. 

https://social.msdn.microsoft.com/Forums/windows/en-US/50bffa56-4a3f-4cfb-994c-35fff400bb7d/create-desktop-shortcut-option-in-clickonce-deployment-is-disabled?forum=winformssetup

https://social.msdn.microsoft.com/Forums/windows/en-US/d01e34d1-d704-4fdf-af4a-e52a466fb715/clickonce-update-and-shortcuts?forum=winformssetup

https://msdn.microsoft.com/en-us/library/system.deployment.application(v=vs.110).aspx

Hope that helps.

Best Regards,

Bob


这篇关于ClickOne应用程序更新从所有已安装的ClickOnce应用程序中删除了所有开始菜单快捷方式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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