Thanks Rob. The curly braces did the trick.
Craig
> -----Original Message-----
> From: Rob Mensching [mailto:
[hidden email]]
> Sent: Friday, October 23, 2009 8:51 PM
> To: General discussion for Windows Installer XML toolset.
> Subject: Re: [WiX-users] Custom Action: MsiQueryProductState call failing
>
> I think the GUID needs curly braces around it to be recognized by the
> Windows Installer.
>
> On Fri, Oct 23, 2009 at 7:33 PM, Craig Miller
<
[hidden email]
> > wrote:
>
> > This might be off topic, and if so could someone point me to a good
> > resource
> > for discussing the Msi WIN32 API?
> >
> > I have a custom action that is being called, but is failing. Does
anyone
> > know why the following would return an rc value of
INSTALLSTATE_INVALIDARG?
> > I'm passing in a GUID, so I'm not sure what it's complaining about.
> >
> > LPCTSTR szProductID = "2EA19080-E744-4B5C-8EF7-488342F9847C"; //
GUID
> > modified to protect the innocent
> > UINT rc = MsiQueryProductState(szProductID);
> >
> > I know the custom action is getting called because I have an error
message
> > dialog popping up that is instantiated inside the custom action. I've
> > tried
> > calling the custom action from both the InstallExecuteSequence and from
the
> > InstallUISequence. E.g. these are the snippets I've tried (not at the
same
> > time):
> >
> > <InstallExecuteSequence>
> > <Custom Action='Ver200Validation'
> > After='FindRelatedProducts'/>
> > </InstallExecuteSequence>
> >
> > <InstallUISequence>
> > <Custom
> > Action="Ver200Validation"
> > After="AppSearch" />
> > </InstallUISequence>
> >
> > Thanks for the help,
> > Craig
> >
> >
> >
> >
----------------------------------------------------------------------------
> --
> > Come build with us! The BlackBerry(R) Developer Conference in SF, CA
> > is the only developer event you need to attend this year. Jumpstart your
> > developing skills, take BlackBerry mobile applications to market and
stay
----------------------------------------------------------------------------
--
> Come build with us! The BlackBerry(R) Developer Conference in SF, CA
> is the only developer event you need to attend this year. Jumpstart your
> developing skills, take BlackBerry mobile applications to market and stay
> ahead of the curve. Join us from November 9 - 12, 2009. Register now!
>
http://p.sf.net/sfu/devconference> _______________________________________________
> WiX-users mailing list
>
[hidden email]
>
https://lists.sourceforge.net/lists/listinfo/wix-users------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference_______________________________________________
WiX-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/wix-users