swearinb
Posts: 29
Joined: Fri Oct 24, 2008 3:22 pm

Registry value using install parameter not set correctly

I am adding a registry value that is assigned to an install parameter. During the install I call a custom action that sets install parameter to the appropriate value. When the install finished the registry contains the initial value and not that value that was set in the custom action. To make sure I had everything correct, I added some message boxes to display the install parameter. I did this prior to calling my custom action and then again after the custom action completed and then before the registry was written out and then again after the registry was written. Each message box contained the value that I expected but the registry contained the default value of the install parameter.

What I have tried:
I set the install parameter to "Set persistent property"
Components property for the Registry value set to "Permanent"

Can you tell me why the registry value is not being set to the install parameter after it was changed by a custom action?

I attached the aip.


Thanks,

Brad
Attachments
InfinityClientInstall.aip
(100.7 KiB) Downloaded 382 times
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Registry value using install parameter not set correctly

Hi Brad,

I looked over your AIP file and I noticed that you have a custom action "GetClientUpdateId" placed after the "Add Resources" action group. I supposed that it is the custom action that changes your [CLIENTUPDATE] property, but please keep in mind that the registry values are written to the registry before that custom action to change the property.

If you refer to another custom action and another property, can you please tell me which are they and also send me a verbose log of the installation, so I can investigate it?

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
swearinb
Posts: 29
Joined: Fri Oct 24, 2008 3:22 pm

Re: Registry value using install parameter not set correctly

Hi Eusebiu,

Maybe I was not clear in my post. I checked the value of the install parameter with a message box prior to the registry being written and when the registry was written it was not correct. Are you saying that even though the Install Parameter contains the value that I want prior to the registry being written that it will not write that value because I called my custom action too late?

Thanks for your help,

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

Re: Registry value using install parameter not set correctly

Hi Brad,

If the message box displayed the value you want before the registry being written, then the displayed value should also be written to the registry. Can you please send me a verbose log of the installation, so I can investigate it?

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

Return to “Common Problems”