E_HANDLE returned from WcaAddTempRecord

3 messages Options
Embed this post
Permalink
David Battey

E_HANDLE returned from WcaAddTempRecord

Reply Threaded More More options
Print post
Permalink
When I run this in an immediate CA in the InstallUISequence

        HRESULT hr = S_OK;
        MSIHANDLE hTable = NULL;
        MSIHANDLE hColumns = NULL;
        MSIDBERROR error;

        hr = WcaAddTempRecord(&hTable, &hColumns, L"ListBox", &error, 0,
4, L"PROPERTYNAME", 1, L"0", L"Value");

I get an hr of E_HANDLE, error is not getting set, and GetLastError()
returns 1008 (ERROR_NO_TOKEN). I've tried it in a few different places in
the sequence, and get the same result.

 Does anyone have any idea what might be causing this?

Thanks,
David


David E. Battey
Senior Software Engineer
Phoenix Contact Inc.
(734) 205-5119
------------------------------------------------------------------------------
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
Blair-2

Re: E_HANDLE returned from WcaAddTempRecord

Reply Threaded More More options
Print post
Permalink
You did call WcaInitialize before calling WcaAddTempRecord, right?

-----Original Message-----
From: David Battey [mailto:[hidden email]]
Sent: Wednesday, October 21, 2009 10:02 AM
To: [hidden email]
Subject: [WiX-users] E_HANDLE returned from WcaAddTempRecord

When I run this in an immediate CA in the InstallUISequence

        HRESULT hr = S_OK;
        MSIHANDLE hTable = NULL;
        MSIHANDLE hColumns = NULL;
        MSIDBERROR error;

        hr = WcaAddTempRecord(&hTable, &hColumns, L"ListBox", &error, 0,
4, L"PROPERTYNAME", 1, L"0", L"Value");

I get an hr of E_HANDLE, error is not getting set, and GetLastError()
returns 1008 (ERROR_NO_TOKEN). I've tried it in a few different places in
the sequence, and get the same result.

 Does anyone have any idea what might be causing this?

Thanks,
David


David E. Battey
Senior Software Engineer
Phoenix Contact Inc.
(734) 205-5119
----------------------------------------------------------------------------
--
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
David Battey

Re: E_HANDLE returned from WcaAddTempRecord

Reply Threaded More More options
Print post
Permalink
Nope -- I missed that (and the WcaFinalize call); works like a charm now. For others' benefit, it's discussed at http://www.tramontana.co.hu/wix/lesson10.php and in threads on this list.

Thanks for the help.

Blair-2 wrote:
You did call WcaInitialize before calling WcaAddTempRecord, right?

-----Original Message-----
From: David Battey [mailto:DBattey@phoenixcon.com]
Sent: Wednesday, October 21, 2009 10:02 AM
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] E_HANDLE returned from WcaAddTempRecord

When I run this in an immediate CA in the InstallUISequence

        HRESULT hr = S_OK;
        MSIHANDLE hTable = NULL;
        MSIHANDLE hColumns = NULL;
        MSIDBERROR error;

        hr = WcaAddTempRecord(&hTable, &hColumns, L"ListBox", &error, 0,
4, L"PROPERTYNAME", 1, L"0", L"Value");

I get an hr of E_HANDLE, error is not getting set, and GetLastError()
returns 1008 (ERROR_NO_TOKEN). I've tried it in a few different places in
the sequence, and get the same result.

 Does anyone have any idea what might be causing this?