43

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

3 Answers 3

24

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

0
21

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.

1
  • 8
    This doesn't address how a "regular" and an advertised shortcut differ once the feature is installed (primarily resiliency, but also the read-only target field). I don't think advertising is commonly used these days in the manner you describe here. Commented Aug 7, 2012 at 11:36
7

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.