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!

shetty_rohan
Posts: 363
Joined: Fri Dec 07, 2012 5:28 am
Location: Bangalore, India
Contact: Website

Preserving the regsitry key during the upgrade

Hi,

Currently I create a registry key using the AdvancedInstaller(say "LogLevel" value "0"). Later its possible that this value is modified by the application/user.

During the upgrade, is it possible to to retain the changed value??

Regards,
Rohan
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Preserving the regsitry key during the upgrade

Hi Rohan,

In order to achieve this you can go in the Registry page, select "Properties" from the context menu of the key you want, go in the "Operations" tab and check the "Preserve key content" option using the condition: OLDPRODUCTS.

Let us know if this helped.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
shetty_rohan
Posts: 363
Joined: Fri Dec 07, 2012 5:28 am
Location: Bangalore, India
Contact: Website

Re: Preserving the regsitry key during the upgrade

Hi Eusebiu,

I just tried this, it seems to be working fine for the upgrade. But when I uninstall the product the registry keys are not removed.

Basically, I have following requirement
1) During the upgrade/repair, we should preservce the registry key values
2) During the "uninstall" we should remove the registry keys

Can you please help me with this requirement?

Regards,
Rohan
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Preserving the regsitry key during the upgrade

Hi Rohan,

I've tested your scenario, but I cannot reproduce the behavior. Are you sure you used the OLDPRODUCTS property as a condition?

Can you please test the attached project and see if the "My_Key" key is preserved during upgrade and removed when the product is completely uninstalled?

Best regards,
Eusebiu
Attachments
Preserve registry.aip
(12.76 KiB) Downloaded 429 times
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
shetty_rohan
Posts: 363
Joined: Fri Dec 07, 2012 5:28 am
Location: Bangalore, India
Contact: Website

Re: Preserving the regsitry key during the upgrade

Hi Eusebiu,

Thanks for the quick revert. I will test this and get back to you on Monday.

Regards,
Rohan
shetty_rohan
Posts: 363
Joined: Fri Dec 07, 2012 5:28 am
Location: Bangalore, India
Contact: Website

Re: Preserving the regsitry key during the upgrade

Hi Eusebiu,

Thanks for the help.

I tried the application once again. It seems to be working fine. We will test this some more times, and in case I am able to reproduce this problem I shall let you know.

For now you can assume that problem is solved.

Regards,
Rohan
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Preserving the regsitry key during the upgrade

You're welcome. Glad to help.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”