Himanshu
Posts: 9
Joined: Thu Jul 28, 2016 2:24 pm

Change/Write/Update Registry on Upgrade

Team, Please help ASAP.

In Enterprise Project, i am storing user input parameters during first app install in the registry. And Reading them while upgrade such that user need not to re-type same values again.
Problem is if user changes input values during upgrade, it does not write/update that values back into registry.

Thanks
Himanshu
Himanshu
Posts: 9
Joined: Thu Jul 28, 2016 2:24 pm

Re: Change/Write/Update Registry on Upgrade

Team, Please help ASAP as we are going to roll out our software which needs Upgrades to be working fine.
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Change/Write/Update Registry on Upgrade

Hi Himanshu,

We tested the scenario you presented and everything worked as expected. Can you send us your .AIP project together with a verbose log of the upgrade to support at advancedinstaller dot com, so we can investigate them and try to find the problem? If they contain confidential information you can send us a small test project which reproduce this behavior.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Himanshu
Posts: 9
Joined: Thu Jul 28, 2016 2:24 pm

Re: Change/Write/Update Registry on Upgrade

Thanks for Responding, Please find attached Projects as well as log,

Note: here i am changing LOGDIR property as a part of Upgrade which is not getting re-written.

Thanks
Himanshu
Attachments
TestApp.zip
Please find attached Projects as well as log
(57.44 KiB) Downloaded 326 times
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Change/Write/Update Registry on Upgrade

Hello Himanshu,

This is happening because the GetJbossRegistryValues action is executed twice, on the Wizard Dialogs Stage and on the Install Execution Stage.

On the Wizard Dialogs Stage the LOGDIR property is correctly set by the custom action:

Code: Select all

Calling custom action AmphoraCustomActions!AmphoraCustomActions.CustomActions.GetJbossRegistryValues
MSI (c) (4C!80) [13:43:49:780]: PROPERTY CHANGE: Modifying LOGDIR property. Its current value is 'C:\'. Its new value: 'C:\logs\'.
Action ended 13:43:49: GetJbossRegistryValues. Return value 1.
Then, the property is changed through the dialogs:

Code: Select all

MSI (c) (4C:58) [13:44:03:733]: PROPERTY CHANGE: Modifying LOGDIR property. Its current value is 'C:\logs\'. Its new value: 'C:\logs\2moe\'.
However, when entering on the Install Execution Stage (after the user hit the Install control), the value of the LOGDIR property is overwritten by the custom action, as you can see below:

Code: Select all

Calling custom action AmphoraCustomActions!AmphoraCustomActions.CustomActions.GetJbossRegistryValues
MSI (s) (D0!18) [13:44:14:937]: PROPERTY CHANGE: Modifying LOGDIR property. Its current value is 'C:\logs\2moe\'. Its new value: 'C:\logs\'.
Action ended 13:44:14: GetJbossRegistryValues. Return value 1.
To overcome this, you can select the Skip action in Install Execution Stage if executed in Dialogs Stage option from the Advanced Execution Scenarios Dialog of the GetJbossRegistryValues custom action properties.

By the way, the same functionality can be achieved through the predefined support from Advanced Installer. e.g. create a registry search operation in the Search page of Advanced Installer. Use the [ New Search Wizard ] toolbar button, to set up a new search, following step-by-step directions.

Should there be any difficulties you encounter implementing something, please do not hesitate to contact us and we will gladly assist you.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”