Hi,
I'm trying to cleanup some registry entries that are not registered with AI at installation time. I do it on uninstall sequence, with a function exported from a DLL, which is executed on "Commit with no impersonation". I want to perform this cleanup only if the user answers YES to the question: "Would you like to remove settings and temporary files?" - which is shown by AI on uninstallation. I suspect [AI_CLEAN_RESOURCES_UNINSTALL] is the property which stores the answer to this question because I've seen it used by the registry key removal wizard. As this DLL function won't have access to the MSI properties when it's executed (because of "Commit with no impersonation"), I pass the MSI properties needed by my function in CustomData as "[ALLUSERS]|[AI_CLEAN_RESOURCES_UNINSTALL]". All good, but the annoying problem I have is that regardless of user's answer to the above question, the property [AI_CLEAN_RESOURCES_UNINSTALL] is always passed to the DLL function with a value of 1, hence I can't rely on its value.
To sumarize:
1. Which is the property that stores the answer to the uninstallation question: "Would you like to remove settings and temporary files?"
2. If this property is indeed [AI_CLEAN_RESOURCES_UNINSTALL], then why it's always passed with a value of 1? Is it a bug in AI? Do I do anything wrong?
I'm using the latest Enterprise 7.6.1 version.
Thanks,
Florin Neamtu
FOLLOW US
Get the latest news in Application Packaging