A property's scope? - 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!

topper_harley
Posts: 24
Joined: Fri Aug 24, 2007 1:13 pm

A property's scope?

Hello!

Time and again I'm wondering what's a property's scope (sorry me, if that's not the correct term).
The concrete case is that I have a merge module that provides a property. In "CostInitialize" and "InstallFinalize", I can access the property's value, but in "Install" I cannot respectively the value is empty.
I have noticed that effect at my own definded properties, too.
So what is the scope of a property and how to "expand" it?

TIA
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Hi,

Please note that if you use a property defined by a merge module, you need to add the GUID of the merge module after it like this: PROPERTY.GUID.

There is a similar discussion on the forum, please take a look:
http://www.advancedinstaller.com/forums ... rge+module
So what is the scope of a property and how to "expand" it?
A property can be used only in the MSI installation package which defines it and only in Immediate standard or custom actions (you cannot access a property in a Deferred custom action).

I'm not sure I understand what you mean by expanding a property's scope. Can you please give more details about this? What exactly do you need to do with the property?

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”