Trigger registry update - Advanced Installer Community
jmithy
Posts: 6
Joined: Mon Apr 24, 2017 3:52 pm

Trigger registry update

Hello,

I've been trying to update a registry entry but no luck. Below are the steps to reproduce it

Steps
1) Add a new property in Install Parameters-> Properties e.g. Domain = test
2) Add a new registry key "WDomain" with value = [Domain] from the above step
3) Build the application & install it for the first time. The windows registry is updated fine.
4) Update Domain = test1
5) Increment the application version & install it. The windows registry "WDomain" is not updated. It's still test

Could you let me know a way to forcefully update the registry ? I even tried the suggestion in http://www.advancedinstaller.com/forums ... tall#p5043 but it didn't work for me.
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Trigger registry update

Hi,

There are two types of properties, private and public. The updated value of a private property is not passed from the UI sequence to the Install sequence. So, your problem may appear if you use private properties instead of public ones.

Can you please send me the .AIP (project file) and a verbose log of the installation to support at advancedinstaller dot com, so I can investigate them?

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
jmithy
Posts: 6
Joined: Mon Apr 24, 2017 3:52 pm

Re: Trigger registry update

Hello Eusebiu,
It's a public property. I eventually managed to make it work. Basically create a "Set installer property" custom action after the "Searches" action group from the "Custom Actions" page. Thanks for looking into it.
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Trigger registry update

You're welcome. I'm glad you solved the problem.

It may also appear if the "Set persistent property" option is set for your property.

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

Return to “Common Problems”