为什么目标禁用安装后点网快捷方式? [英] Why is the target disabled in dot net shortcuts after setup?

查看:193
本文介绍了为什么目标禁用安装后点网快捷方式?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

去任何DOTNET应用程序快捷键由DOTNET设置发,然后单击属性时,该的来了屏幕,为什么找目标按钮是无效的?!

这正好通过的dotnet安装产生的快捷方式,为什么呢?以及如何实现的呢?

解决方案
  

这是Windows Installer的一项功能   而被称为播发快捷。   此快捷方式中包含的信息   关于产品它指向。

     

您可以把这个   开/关在你的安装,通过设置   DISABLEADVTSHORTCUTS属性。

播发快捷键

  

在MSI世界上有两种类型   的快捷方式 - 广告和   非广告。

     

一个无广告的快捷键是   标准的Windows快捷方式。如果你   右键点击它,你会看到目标   字段指向可执行文件   将陆续推出。如果出于某种   因此,这个可执行文件缺少   应用程序只会失败。

     

这是宣传的快捷方式是   特定于Windows技术   安装程序。如果你右键单击   标榜快捷方式的目标领域   将显示为灰色。一个标榜   快捷键支持广告,   修复。

     

修复意味着如果可执行以   该快捷方式指向不   有那么Windows安装程序将   修复应用程序和替换   丢失的文件。实际上,它也将   检查其他重要文件,标记   作为关键路径,以及如果任何这些都是   缺少它将取代它们。

     

广告是在其中一个过程   该应用程序似乎是   安装快捷方式存在,但   该应用程序是不实际   安装。安装,所述   文件和注册表项的复制,   仅发生在用户第一次时,   启动应用程序。一个   标榜只安装放下什么   我们所说的应用程序界面。一个   应用程序接口是没有办法   启动应用程序。这可能是一个   快捷方式,文件扩展名或COM   接口。

修改

要添加的属性,可以使用的Orca MSI编辑器,或者看看如何Set DISABLEADVTSHORTCUTS属性在VS.NET安装项目的文章。

编辑2

这里。您可以直接与参数运行setup.exe - SETUP.EXE DISABLEADVTSHORTCUTS = 1 在msiexec.exe<路径MSI-文件> DISABLEADVTSHORTCUTS = 1

而且,如果你使用的是的Orca MSI编辑器,您可以设置属性通过打开您的msi文件,和去属性页(左),以及通过右键单击添加新的属性添加行菜单选项。保存微星,和你做。

go to any dotnet application shortcut made by dotnet setup and click property, in the screen that's come up, why find target button is disabled?!

this just happened to the shortcut produced by dotnet Setup, why? and how to enable it?

解决方案

This is a feature of Windows Installer and is called "Advertised Shortcut". This shortcut contains information about the product it is pointing to.

You can turn this on/off in your setup, by setting the DISABLEADVTSHORTCUTS property.

Advertised Shortcut

In the MSI world there are two types of shortcut - advertised and non-advertised.

A non-advertised shortcut is a standard windows shortcut. If you right-click it you will see the target field points to the executable that will be launched. If, for whatever reason, this executable is missing the application will simply fail.

An advertised shortcut is a technology specific to Windows Installer. If you right-click an advertised shortcut the target field will be greyed out. An advertised shortcut supports advertisement and repair.

Repair means that if the executable to which the shortcut is pointing is not there then windows installer will repair the application and replace the missing file. In fact, it will also check other important files, flagged as key paths, and if any of those are missing it will replace them as well.

Advertisement is a process in which the application appears to be installed the shortcuts are there but the application is not actually installed. The installation, the copying of files and registry entries, only takes place when the user first launches the application. An advertised install only puts down what we call the application interfaces. An application interface is any way to start the application. This could be a shortcut, file extension or COM interface.

EDIT

To add the property, you can use Orca MSI Editor, or take a look at how to Set DISABLEADVTSHORTCUTS property in VS.NET setup project article.

EDIT 2

Some more interesting info over here. You can directly run setup.exe with the parameters - setup.exe DISABLEADVTSHORTCUTS=1 or msiexec.exe <path to msi-file> DISABLEADVTSHORTCUTS=1.

And, if you are using Orca MSI Editor, you can set the property by opening your msi file, and going to the Property page (on the left), and adding a new property by right-clicking "Add Row" menu option. Save the msi, and you are done.

这篇关于为什么目标禁用安装后点网快捷方式?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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