Here's what I'd like to achieve; certain files, folders and registry keys are installed by the Installer. During uninstall by the user, I'd like to prompt them whether to remove application settings. If they answer NO, I'd like to prevent the uninstall of an entire registry key (including contained values) and a folder (including contained files). The registry key being preserved will contain values added by the installer and the user and the folder will also contain files added by the installer and the user.
I've tried the Uninstall Cleanup wizard; I've marked the registry key to be preserved on uninstall with a condition of ((AI_CLEAN_RESOURCES_UNINSTALL="1") AND (NOT UPGRADINGPRODUCTCODE)) and the same with the folder I want to preserve. During uninstall, when prompted to delete temporary files and settings, I click the NO button, but the registry key and folder I marked get deleted regardless.
I've looked at the uninstall log and after I click the NO button on the prompt I see that AI_CLEAN_RESOURCES_UNINSTALL is set to 0 so I don't know why the registry key and folder are still being deleted.
FOLLOW US
Get the latest news in Application Packaging