ManagedUI Installer does not create Uninstall registry keys? #1617
Replies: 3 comments
-
You might be having a permissions problem. By default your CA is immediate so it is not elevated. So it may just fail writing to the registry. If it is the case then you can use managed event |
Beta Was this translation helpful? Give feedback.
-
Thank you oleg. I am not actually writing to the registry myself - the question was about registry keys that should be automatically created by the installer framework (registering the uninstaller, I guess?). I'm not even sure how to create the registry keys that it is looking for. All I can say is, Visual Studio Installer Projects (.vdproj files) do this for you, but I do not know why. Our developers ended up relying on that information being in the registry, which is no longer the case after switching to Wix/WixSharp. That being said, this is a low priority for me. I ended up just modifying our application code to remove the dependence on the registry. In this case, there was another way we could solve our problem, which lets us dodge this issue for now. If we ever have to add custom registry keys in the future, I will try to keep what you said in mind. However, I think the behavior is the same when I simply run the installer as an administrator (not usually allowed, but we can for testing). I'm not 100% sure we performed this troubleshooting step, so take that with a grain of salt. |
Beta Was this translation helpful? Give feedback.
-
The msi you are building does not write to the the registry unless you are doing it in the custom action. It is MSI runtime that creates hips of registry values as part of the product installation. It does it regardless of which tool you use to create the msi. Though, quite possibly InstallScope ( |
Beta Was this translation helpful? Give feedback.
-
Hello,
The application I am migrating to wix (wixsharp) is relying on searching the Uninstall key of the registry at this location to determine its own product code for business logic it performs:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\
The old installer (Microsoft Visual Studio Installer Projects) created entries in this key, but Wix does not.
I've tried explicitly adding an Uninstall UI because the WixSharp source code seems to add registry keys for that operation, but I suspect it ignores this since the key doesn't exist in the first place:
I assume
uninstallKey
ends up being null and that this is not doing me any good.Here's a snippet of my wixsharp script:
I've also looked in the WOW6432Node/ hive, and I've looked in HKCU. In fact, I searched the whole registry for my application name and for its product code and nothing comes up, except a couple of WixSharp Used/ entries.
Examining the wix XML output, I see no indication that any registry keys would be created for Uninstall.
What am I missing?
Beta Was this translation helpful? Give feedback.
All reactions