Hey Mike,

Just to be sure, the custom action in the InstallExecuteSequence that is
using this property is being run as an Immediate action and not deferred. If
it is being run as a deferred action you will need to set the
CustomActionData<http://msdn.microsoft.com/en-us/library/aa370543(VS.85).aspx>property.
In the MSI this will be the name of the Custom Action that is
going to run. Right before execution of the property run a Custom Action of
Type 51 that sets the key (your main custom action) to the value (your
PUBLIC <http://msdn.microsoft.com/en-us/library/aa370912(VS.85).aspx>,
secure property) of X2GLOBALPROPERTY. You should be able to reference your
data by using Session.Property("CustomActionData").

If you have already done this and are still failing, please look through the
verbose log files of the MSI after the installation and make sure that the
Public property isn't getting overriden with blank data during the
InstallExecuteSequence.

Thanks,

-- 
Brian Rogers
"Intelligence removes complexity." - Me
http://icumove.spaces.live.com


On Thu, Sep 4, 2008 at 3:19 PM, Mike Rerick <[EMAIL PROTECTED]> wrote:

> Everyone,
>
>
>
> I'm using WiX 3.0.4401 to build my installs.
>
>
>
> I've run into an interesting problem with a global property. The property
> is
> defined as <Property Id="X2GLOBALPROPERTY" Secure="yes"/>. It gets its
> initial list from a CA that calls a function in a custom DLL.
>
>
>
> I modified the Mondo UI file to add additional dialogs. In one of the
> dialogs, I have a ComboBox that sets a global property to the value of a
> SQL
> Server to use for subsequent database access.
>
>
>
> I'm using this global property in CA's that get called in both the
> InstallUISequence and InstallExecuteSequence. When I call a CA in the
> InstallUISequence, the global property has the correct value. When I try to
> use the global property in the InstallExecuteSequence CA's, it apparently
> is
> an empty string.
>
>
>
> My CA's in both Install sequences are VBScripts that use the
> Session.Property("X2GLOBALPROPERTY") method to get the property value.
>
>
>
> Has anyone else seen this type of behavior? If so, do you have a work
> around?
>
>
>
> Mike Rerick
>
> Sr. Software Engineer - Professional Services
>
>  <blocked::http://www.iwsinc.com/>
>
>
>
> 9200 S.E. Sunnybrook Blvd., Suite 170
>
> Clackamas, OR   97015
>
> Phone: (503) 353-8068    Fax: (503) 353-8065
>
>
>
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to