Yes it is being called in DllMain

switch (ul_reason_for_call)
{
case DLL_PROCESS_ATTACH:
::WcaGlobalInitialize(hModule);
break;

case DLL_PROCESS_DETACH:
::WcaGlobalFinalize();
break;
}

Thanks,

Tim



On Wed, Jun 23, 2010 at 9:58 PM, Rob Mensching <r...@robmensching.com> wrote:

> Did you call WcaGlobalInitialize() in your DllMain()?
>
> /********************************************************************
>  WcaGlobalInitialize() - initializes the Wca library, should be
>                         called once per custom action Dll during
>                         DllMain on DLL_PROCESS_ATTACH
>
> ********************************************************************/
>
>
> On Wed, Jun 23, 2010 at 8:46 AM, Fangren <tim.kr...@shavlik.com> wrote:
>
> >
> > Hoping someone can shed some light on WcaInitialize.
> >
> > I have a WiX based installer that works on hundreds of different
> machines,
> > but on a couple it appears that WcaInitialize is failing.  The log entry
> > after WcaInitialize is not written to the logs even with verbose logging.
> > What conditions can cause this call to fail?  I've been unable to dig up
> > documentation on what this call does exactly or expected return values.
> >
> > Code example:
> >
> > HRESULT hr = ::WcaInitialize(install, "MyCA");
> > if (FAILED(hr))
> > {
> >        return ERROR_INSTALL_FAILURE;
> > }
> >
> > ::WcaLog(LOGMSG_STANDARD, "Working on MyCA");
> >
> > Thanks,
> >
> > Tim
> > --
> > View this message in context:
> >
> http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/What-can-cause-WcaInitialize-to-fail-tp5213865p5213865.html
> > Sent from the wix-users mailing list archive at Nabble.com.
> >
> >
> >
> ------------------------------------------------------------------------------
> > ThinkGeek and WIRED's GeekDad team up for the Ultimate
> > GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the
> > lucky parental unit.  See the prize list and enter to win:
> > http://p.sf.net/sfu/thinkgeek-promo
> > _______________________________________________
> > WiX-users mailing list
> > WiX-users@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/wix-users
> >
> >
>
>
> --
> virtually, Rob Mensching - http://RobMensching.com LLC
>
> ------------------------------------------------------------------------------
> ThinkGeek and WIRED's GeekDad team up for the Ultimate
> GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the
> lucky parental unit.  See the prize list and enter to win:
> http://p.sf.net/sfu/thinkgeek-promo
> _______________________________________________
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
>



-- 
Tim Krehl
Customer Care Team
Shavlik Technologies, LLC
(651) 407-5246 (office)
Shavlik. Simply Secure.

IMPORTANT NOTICES:
Confidential Information. The information contained in or attached to this
e-mail may be confidential information subject to protection by law or terms
of applicable confidentiality agreements, and is intended only for the use
of the individual or entity named above. It may not be disclosed to or used
by anyone other than the addressee, nor may it be copied or forwarded in any
way without the consent of the sender. If you are not the addressee
indicated in this message (or responsible for delivery of the message to
such person), you should destroy this message and notify the sender by reply
email. No binding commitment from the sender may be inferred by means of
E-mail communications
------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to