I have a question and I would like to give some context first:
There is an existing software over which I have absolutely no control. The software provides 2 .exes, one for 32-bit and the other for 64-bit. Let's call them soft.exe and soft32.exe.
On a 64-bit machine the OS creates 2 entries in the registry, like these:
- HKEY_LOCAL_MACHINE\SOFTWARE\Manufacturer\Soft\Version\Plugins
- HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Manufacturer\Soft\Version\Plugins
I am developing a plugin that adds new functionalities to the said software. Plugins are discovered at runtime when parsing the registry. My installer deploys dlls that are loaded by the software at runtime, and I have to indicate the path to the dll to be loaded. My installer currently creates an entry in the registry like this: HKEY_LOCAL_MACHINE\SOFTWARE\Manufacturer\Soft\Version\Plugins\MyAddon. This works fine.
The problem is that when the user starts the 32-bit version, my plugin is not discovered because it is looking for entries in HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Manufacturer\Soft\Version\Plugins, which makes sense.
So I would want my installer to always create 2 registry keys, one in HKEY_LOCAL_MACHINE\SOFTWARE and the other in HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node so the plugin is loaded no matter the version of the exe used.
Is there any way to achieve this ? Providing 2 msi files and asking the users to deploy the same package twice is not an option
Any help would be very much appreciated.
Regards,
FOLLOW US
Get the latest news in Application Packaging