I have a merge module that installs a service, and which removes the service on uninstall if no other installations use it. So far so good.
The service makes a registry key, which must be removed on uninstall (and ONLY on uninstall of the service). So if more than one installer use this merge module, the last installation to be removed will remove the service (works) and the reg. key (doesn't work).
When I try to uninstall, the reg. key will ALWAYS be removed, and not only when the service gets uninstalled.
I tried to look at:
https://www.advancedinstaller.com/user- ... ialog.html
for guidance, but my dialog looks vastly different (see attachment).
How do I make sure, that the key is ONLY removed when the service (the contents of my merge module) is uninstalled?
FOLLOW US