Uninstall Clean up - Advanced Installer Community

We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

virgil
Posts: 22
Joined: Sat Mar 19, 2011 1:40 am

Uninstall Clean up

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.
CiprianComsa
Posts: 110
Joined: Thu Aug 19, 2010 10:11 am
Contact: Website

Re: Uninstall Clean up

Hi Virgil,

Here is a similar thread which may help you.

Regards,
Ciprian
__________________________________________________________________________________________________________________________________________________
Ciprian Comsa
Advanced Installer Team
http://www.advancedinstaller.com/
Ciprian Comsa - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
virgil
Posts: 22
Joined: Sat Mar 19, 2011 1:40 am

Re: Uninstall Clean up

Thanks. I actually searched and read that thread before posting, my issue is not the same. I'm not executing any custom actions like the person in the other thread. I'm relying on the uninstall cleanup mechanism in AI not to delete these registry values and folders, but it's not working as described in your documentation.
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Uninstall Clean up

Hello,

Can you please send us an clean simplified .AIP (project) manifesting the problem and a verbose log of the installation to support at advancedinstaller dot com so we can investigate them?

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
virgil
Posts: 22
Joined: Sat Mar 19, 2011 1:40 am

Re: Uninstall Clean up

sent.
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Uninstall Clean up

Hello,

The generic intended functionality of the Uninstall Cleanup wizard is to delete resources outside the .MSI. The reason the resources get deleted is because they are part of the .MSI and Windows Installer does this automatically upon uninstall.

A solution would be to create the resources outside the .MSI, preferably from within your application or other custom approach. Another solution that would preserve the resources regardless of user choice would be to mark their components as "Permanent" from the Organization page.

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
virgil
Posts: 22
Joined: Sat Mar 19, 2011 1:40 am

Re: Uninstall Clean up

Thanks.

Return to “Common Problems”