That can't be all of your code if you are saying that MsiGetProperty is 
returning success because you're not checking it in the code.  Have you omitted 
anything? 
Your VBScript custom action might be ion the same place, but are you positive 
your C++ is deferred? 

Phil Wilson 

-----Original Message-----
From: md5hans [mailto:hans.olaus...@carmenta.com] 
Sent: Monday, December 15, 2008 6:32 AM
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] Reading CustomActionData property from C++


Hi!

We are tying to access the "CustomActionData" propert from C++:

#pragma comment(linker, "/EXPORT:modifypackagexml=_modifypackage...@4")

 
extern "C" UINT __stdcall ModifyPackageXml(MSIHANDLE hInstall) 

{
   TCHAR szActionData[MAX_PATH] = {0};
   DWORD dActionDataLen = MAX_PATH;
   MsiGetProperty (hInstall, L"CustomActionData", szActionData,
&dActionDataLen);
   MessageBox (NULL, szActionData, _T("Deferred Custom Action"), MB_OK |
MB_ICONINFORMATION);
}

But we get NULL in szActionData, the MsiGetProperty call returns SUCCESS. If
we run a VB-script function at the same "place" as the C++ function we can
read the property .

Does anyone have an idea of what we are doing wrong?

Kind regards Hans
-- 
View this message in context: 
http://n2.nabble.com/Reading-CustomActionData-property-from-C%2B%2B-tp1658434p1658434.html
Sent from the wix-users mailing list archive at Nabble.com.


------------------------------------------------------------------------------
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you.  Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users



------------------------------------------------------------------------------
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you.  Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to