INFO: How Windows Installer Shortcuts Work

Article translations Article translations
Article ID: 243630
Expand all | Collapse all

Summary

Shortcuts for Windows Installer applications are not regular shortcuts. Instead of containing full paths to .exes or other type of files, they contain objects called "descriptors." A descriptor is a compressed representation of a {Product-Code, Feature Key, Component Code} triple.

More information

When you click on a Windows Installer shortcut, the Windows shell uses the data in the descriptor to call the MsiProvideComponent function. Look at the Microsoft Windows Installer Help file for MsiProvideComponent, and note that it takes a Product Code, a Feature Key, and a Component Code and returns a path for that component. In the process of doing that, the API verifies that all of the components that are part of the specified feature have a valid keypath on the computer (the key files exists), and it does any installations necessary to get all the components there if any of them are missing by using the MsiConfigureFeature function. Then the shell gets a path back, which it uses the ShellExecute function to execute the process.

References

For more information on this process, see "Requesting a Feature" in the Microsoft Windows Installer Help file on the following MSDN Web site at:
http://msdn.microsoft.com/library/default.asp?URL=/library/psdk/msi/func_2qcl.htm">
For additional information about how to change the Start in: Property of a shortcut in VSI, click the article number below to view the article in the Microsoft Knowledge Base:
242586 INFO: You Cannot Change the Start in: Property of a Shortcut in Visual Studio Installer

Properties

Article ID: 243630 - Last Review: June 19, 2014 - Revision: 3.0
Keywords: 
kbFAQ kbinfo kbmsifaq KB243630
Retired KB Content Disclaimer
This article was written about products for which Microsoft no longer offers support. Therefore, this article is offered "as is" and will no longer be updated.

Give Feedback

 

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com