Hi,

I have a product that is installed using MSI created using Wix. The product
can host different Plugins that are also installed using WIX MSI packages.

The main application is writing the INSTALLDIR to the registry so the
installers for the Plugins know where they should be installed. This is
working fine.

I want to have a condition on the main app installer so it cannot be
uninstalled if one or more Plugins are installed. The Plugins should be
uninstalled before the main app to avoid orphaned Plugins.

I have been working with a solution where each Plugin is writing a registry
key under the following key:
HKLM\SOFTWARE\XYZ\Product\Extensions

The condition on the main app installer should then check that the Extension
key has no subkeys or otherwise fail the uninstall. As far as I read the
documentation it is not possible to search for subkeys.

What can I do here? Am I using a wrong approach?

I have used the following fragment:
<RegistryKey Id="Extensions" Action="createAndRemoveOnUninstall" Root="HKLM"
Key="Software\XYZ\Product\Extensions">
            <RegistryKey Id="ExtensionInstalled"
Action="createAndRemoveOnUninstall" Key="Plugin A" />
</RegistryKey>

If I use this in more than one Plugin installer the first Plugin that is
uninstalled will remove the entire tree and making the other Plugins
impossible to discover.

Note:
The main app will not know which Plugins might be installed so it is not
possible to search for specific keys under the Extensions key.

Hoping for a clue... :-)

Best regards,
Anders 
-- 
View this message in context: 
http://n2.nabble.com/RegistrySearch-and-subkeys--tp2417458p2417458.html
Sent from the wix-users mailing list archive at Nabble.com.


------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to