Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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

like image 625
fakir314 Avatar asked Aug 02 '12 10:08

fakir314


People also ask

What is advertised shortcut and non advertised shortcut?

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.

How do I create a shortcut to advertise?

Right-click the Programs Menu folder icon, and select New Advertised Shortcut. The Browse for a Component dialog appears.


2 Answers

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.

like image 122
rmrrm Avatar answered Sep 17 '22 08:09

rmrrm


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

like image 34
Drazen Bjelovuk Avatar answered Sep 19 '22 08:09

Drazen Bjelovuk