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!

sleynzon
Posts: 6
Joined: Sat Apr 08, 2017 2:59 pm

updating user defined property from script

Hi,
I created new User Defined Property to use in the registry section.
I have execute inline Script code that sets the property value (execute time immediately).
Value is set using Session.Property(“PROPERTYNAME”) = value.

After installation is complete the registry value is not updated.
Attachments
Custom Action
Custom Action
2017-04-11 10_10_05-RDC-007A Win 2012 R2 Dev on RDC-007 - Virtual Machine Connection.png (58.27 KiB) Viewed 3134 times
Regestry
Regestry
2017-04-11 10_09_14-RDC-007A Win 2012 R2 Dev on RDC-007 - Virtual Machine Connection.png (58.8 KiB) Viewed 3134 times
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: updating user defined property from script

Hello,

As I can see from the printscreen, everything seems to be correctly configured.
In order to have a better view about this, can you please send us the .AIP (project file) and a verbose log of the installation process to support at advancedinstaller dot com so we can investigate it? If it contains confidential information you can send us a small test project which reproduce this behavior.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
sleynzon
Posts: 6
Joined: Sat Apr 08, 2017 2:59 pm

Re: updating user defined property from script

I was able to make it work by moving up the “Execute script code”. I placed it under Searches and it work now.
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: updating user defined property from script

Hello,

I'm glad you got this working.

Please let me know if there is anything else I can help you with.

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

Return to “Building Installers”