I'm trying to get the list of features contained in the current installer. The use case is that I use a simple dist.cfg file to select the features, when the user presses the typical install option. For administration reasons, this file should contain a positive list of features to be installed. Therefore I have to run through the list of features contained in the current installer and disable them if they are not listed in the dist.cfg file.
I tried the following code, which should pop-up a message box for every feature, but no message box appears. I'm afraid that only installed products are listed:
Code: Select all
Dim installer
Set installer = Nothing
Set installer = Session.Installer
for each feature in installer.Features(Session.Property("ProductCode"))
Msgbox feature
next
Oliver.
FOLLOW US
Get the latest news in Application Packaging