How can I leave some files and reg. records during uninstall - 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!

SemaHairy
Posts: 3
Joined: Thu Oct 22, 2009 9:09 am

How can I leave some files and reg. records during uninstall

How can I leave some files and register records during uninstall process?
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: How can I leave some files and reg. records during uninstall

Hi,

Here is what you can try:

-- simply select the file or registry value that you wish not to uninstall
-- right click on it, from the context menu select "Go To Component" (you will sent to Organization page)
-- now simply check the option "Permanent" of the component

This will make the component not to be removed at uninstall, therefore the corespondent files or registry value remain too.

Please let me know if you have other questions.

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
SemaHairy
Posts: 3
Joined: Thu Oct 22, 2009 9:09 am

Re: How can I leave some files and reg. records during uninstall

Thx! Excellent! This is working good!

I have another question: there is register record HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\GinaDLL before installation it has value "msgina.dll", after installation it has value "mygina.dll", how can I return value "msgina.dll" after uninstallation?
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: How can I leave some files and reg. records during uninstall

Hi,

For this you could try using a custom action from the Custom Actions page to replace the value of the registry with the one desired.
In order to run only when the application is uninstalled the custom action should have the "Condition" field set to:

Code: Select all

REMOVE = "ALL"

Please let me know if you have other questions.

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”