LOCATION property is lost during install phase - Advanced Installer Community

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!

invalidptr
Posts: 79
Joined: Thu Nov 18, 2010 7:10 pm

LOCATION property is lost during install phase

During the UI phase I update a property LOCATION. I then go to use it during InstallExecuteSequence->InstallServices in a Deferred VB Script and it's blank. If I look at the logs I see where it gets updated. I even see it mentioned a few more times with it's new value. But by the time it's passed to the VB Script it's blank. What am I missing?
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: LOCATION property is lost during install phase

Hi

This happens because deferred custom actions cannot access installer properties, except the special property "CustomActionData". In the following article we present how to write
in a text file from a deferred custom action, you can analyze the portion of this article which explains how the value of the public properties is passed to the custom action
through "CustomActionData".

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
invalidptr
Posts: 79
Joined: Thu Nov 18, 2010 7:10 pm

Re: LOCATION property is lost during install phase

Thanks. Sorry I hadn't given enough detail. I was in fact passing in the data correctly. It turns out my problem was way upstream from this code and I was inadvertently deleting this value.

Return to “Common Problems”