Creating an advertised shortcut that installs a feature on demand

Ordinarily, when the end user executes one of our installers, all of the components get installed right away. However, when a component is tied to an advertised shortcut, it isn't installed until the user clicks the shortcut that the associated file gets installed. This type of shortcut provides a sort of install-on-demand functionality. You might use it to delay the installation of a feature that many users wouldn't use right away, such as supplementary tools or sample projects.

Getting ready

To prepare for this recipe, perform the following steps:

  1. Create a setup project and name it AdvertisedShortcutInstaller.
  2. Add a C# Console Application project to the same Visual Studio solution ...

Get WiX Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.