Alexander
Posts: 29
Joined: Thu Dec 30, 2004 12:47 pm
Location: Germany

Remove registry entries only on uninstall, not on upgrade

Hi,

the installed application writes some values in the registry.
This registry path has the property "Delete (if present) at uninstall." set.

Now I have the problem that when I'm doing an upgrade it always deletes me the registry entries.

I know that patches would be a way to solve this problem, but the setup is supposed to work under win98 upward, so this won't work...

Would it be possible to manually add a dialog that would let the user select to delete this registry folder? That would be working, but I wouldn't know how to make that dialog only remove that registry folder if it's selected from the dialog.
Do you have some custom action script that would work for this, or maybe another solution?
kind regards,
Alex
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi,
Now I have the problem that when I'm doing an upgrade it always deletes me the registry entries.
If you want that registry value to not be overwritten on upgrade you can select "Permanent" and "Never Overwrite" flags in the "Organization" page for associated component.

Also you can condition the creation of a registry value by conditioning its component in the "Organization" page.
Would it be possible to manually add a dialog that would let the user select to delete this registry folder?
Yes you can add a new dialog and add a check box on it. Using the property of the check box you can condition the component of the registry vale in the "Organization" page.

Regards,
Gigi
_______________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com
Alexander
Posts: 29
Joined: Thu Dec 30, 2004 12:47 pm
Location: Germany

Hi,

where should I add that dialog?
In the "Install Sequence" is only an uninstall button, but I don't know where I should put that new dialog that would ask the user.
kind regards,
Alex
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi,

You can create new dialogs in the "Dialogs" page. For this you need to create a "Enterprise" project.

Regards,
Gigi
_______________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com
Alexander
Posts: 29
Joined: Thu Dec 30, 2004 12:47 pm
Location: Germany

Hi,

I know that, but where exactly (in the install sequence) should I add it?
I guess under "Maintenance", but it seems I can add it there only before the MaintenanceTypeDlg.
It's supposed to be shown only on uninstall, not on any other action.
kind regards,
Alex
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi,

You can add it after "MaintenanceWelcomeDlg" dialog in the "Maintenance" section.

Regards,
Gigi
_______________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com

Return to “Common Problems”