安装的快捷方式导致安装重新运行Visual Studio 2010 [英] installed shortcut causing install to rerun visual studio 2010

查看:44
本文介绍了安装的快捷方式导致安装重新运行Visual Studio 2010的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Visual Studio 2010安装程序为我的应用程序创建安装程序.从文件系统编辑器中,我选择了在解决方案中创建的两个主要输出文件之一.我右键单击并为我的可执行文件创建了快捷方式.我已将快捷方式拖放到用户程序"菜单中.我构建了安装程序,一切都成功完成.我运行安装程序,一切都成功运行.现在,我继续双击快捷方式,安装程序将重新运行并失败!!!我已经检查了快捷方式,它与我手动创建进行比较的快捷方式有所不同.目标显示为灰色.任何帮助将不胜感激!!!

I am using the Visual Studio 2010 setup to create an installer for my application. From the File system Editor i have selected one of the two primary output files that have been created in my solution. I have right clicked and created a shortcut for my executable. I have dragged and droped the shortcut into the User's Program Menu. I build the installer and everything completes successfully. I run the installer and everything runs successfully. Now i proceed to double click on the shortcut and the installer re-runs and fails!!!. I have checked the shortcut and it is different from the one i have manually created to compare. The Target is greyed out. Any help would be greatly appreciated!!!

推荐答案

通过公告的快捷方式启动应用程序时,Windows Installer会验证应用程序资源是否完整.如果缺少一个或多个资源,则Windows Installer会使用缓存的MSI自动重新安装它们.这就是执行第二次安装的原因.

When launching an application through an advertised shortcut, Windows Installer verifies if the application resources are intact. If one or more resources are missing, Windows Installer reinstalls them automatically using the cached MSI. This is why the second installation is performed.

公布在Visual Studio中创建的快捷方式,因此,如果缺少某些已安装的文件,则会触发修复.

Shortcuts created in Visual Studio are advertised, so a repair is triggered if some of your installed files are missing.

要确定触发维修的原因,您可以尝试以下操作:

To determine what triggers the repair you can try this:

  • 收到准备安装"消息后,打开事件查看器"(可以在开始"菜单中搜索它或启动"eventvwr.msc")
  • 转到"Windows日志"->应用程序"
  • 查找具有以下形式的"MsiInstaller"信息消息:

  • after receiving a "preparing to install" message open Event Viewer (you can search it in the Start menu or launch "eventvwr.msc")
  • go to "Windows Logs" -> "Application"
  • look for "MsiInstaller" information messages which have this form:

事件类型:警告事件源:MsiInstaller事件ID:1001说明:在请求组件"{068153F4-B9E0-4745-9A47-833764D9D60C}"期间检测到产品"{1F7D16F0-836D-4CE4-9123-D30B2F24A17B}",功能"FeatureId"失败

Event Type: Warning Event Source: MsiInstaller Event ID: 1001 Description: Detection of product '{1F7D16F0-836D-4CE4-9123-D30B2F24A17B}', feature 'FeatureId' failed during request for component '{068153F4-B9E0-4745-9A47-833764D9D60C}'

您的计算机上的GUID会有所不同,但是它们可以帮助您确定引起问题的组件.第一个GUID是您的产品代码包,第二个GUID是有问题的组件.尝试创建安装日志,并查看为什么未正确安装该组件.

The GUIDs will be different on your machine, but they can help you identify which component is causing the problem. The first GUID is your package ProductCode and the second one is for the problematic component. Try creating an installation log and see why the component is not installed correctly.

这篇关于安装的快捷方式导致安装重新运行Visual Studio 2010的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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