Advertised shortcuts vs. non-advertised shortcuts in windows setup project

六月ゝ 毕业季﹏ 提交于 2019-12-17 15:53:53

问题


I cannot understand what is exact consequences of using attribute Advertise in Shortcut attribute. What is the diffirence?


回答1:


Advertised shortcuts are used by advertised features:

  • when a feature is installed as advertised, it is only registered with Windows Installer; it's content is not actually copied on the machine
  • when launching an advertised shortcut which targets something in this advertised feature, the feature content is finally copied on the machine

So advertised features and shortcuts are a form of "advertising". Your package shows the user that it has a feature available and installs it only when the user want to use it. If the shortcut is never used, the feature is never fully installed.




回答2:


A non-advertised shortcut (Standard Shortcuts) 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 (Windows Installer Shortcuts) 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.

http://www.symantec.com/connect/articles/about-windows-installer-shortcuts




回答3:


Here is more detailed description how Advertised shortcuts used:

http://www.advancedinstaller.com/user-guide/advertised-shortcuts.html.

And here is MSDN description which was also very useful for me - to understand what is advertisement and how to properly use advertised features (not directly about shortcuts, but it is partial case):

http://msdn.microsoft.com/en-us/library/windows/desktop/aa367548%28v=vs.85%29.aspx http://msdn.microsoft.com/en-us/library/windows/desktop/aa369293%28v=vs.85%29.aspx



来源:https://stackoverflow.com/questions/11776023/advertised-shortcuts-vs-non-advertised-shortcuts-in-windows-setup-project

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!