Hi,
I've made some progress. Using orca I've discovered that the 'real' name of the feature I put the service and registry entries into is not the name I assign, i.e., "Bridgeip", but rather it is "Feature_5". If there was any way to discover this without analyzing the .msi file with orca, I haven't found it.
You are right, the feature ID is not exposed directly but you can see it, by example, in Custom Action Condition Editor. When the Feature State/Action buttons are pressed a feature picker appears. After a feature is selected, in the Expression filed of the Condition Editor it can be observed the feature ID preceded by a "&" or "!".
By making the custom action say: Session.Property("REINSTALL") = "Feature_5", I can avoid the error message.
But, things still don't work as I need them to. When doing a "Modify" action, rather than just updating the registry and restarting the service, it seems that it tries to completely reinstall the service - and, because it is already running, this triggers the Installer to request a system reboot.
That may happen because the regs are not alone in their component and feature. You must place only the regs component in Feature_5. To restart the service you must use a control operation attached to the reg's component to stop the service and to start it again.
More troubling, when trying to remove the product, it now does not remove this particular service. The only way to get rid of it seems that I have found is to use the Windows Installer Clean-up utility and to manually remove the files and registry entries.
That may appear if your custom action ( Session.Property("REINSTALL") = "Feature_5") runs also on uninstall. That custom action must run only from the CustomizeDlg when the user chooses to change the settings.
The AdvancedInstaller's documentation refers mostly on how to use it and very little on the installation process because this is the Windows Installer tehnology and it would duplicate the Microsoft's documentation.
That is why it is recommended to take a look also on Windows Installer documentation:
http://msdn.microsoft.com/library/defau ... _guide.asp
Hope that helps and let me know if you have any other questions.
All the best,
Mihai