Publish events
In the following sections, we'll take a look at several events that you can publish. This should give you a good idea about how the Publish
element works.
AddLocal
The SelectionTree
control can be used to show the available features in your install package and gives the user the ability to select which ones they want. Windows Installer keeps track of which features to install through the ADDLOCAL
property, which is a comma-delimited list of features to install locally. When it comes to the SelectionTree
, all of the logic of setting the ADDLOCAL
property is handled for you behind the scenes. However, if you wanted to, you could do away with the SelectionTree
and create your own device for including features. For that, you'd publish the AddLocal
control event.
AddLocal
, like the property by the same name, can be used to set which features get installed. You'll set the Publish
element's Value
attribute to either the Id
of a single Feature
element or the string ALL
, which will include...