The TEXT("") param is correct.
When calling MsiGetProperty to get the required buffer size, you 
/should/ specify an empty string as the return buffer.
http://msdn.microsoft.com/en-us/library/aa370134(VS.85).aspx

Have you opened your MSI is orca to confirm that the record in the CA 
table is what you expect it to be?
Does the new CA have the correct in-script options set - (deferred or 
immediate, etc)

Jon Seanor



Wilson, Phil wrote:
> You may have to post more code than that.  However it doesn't look correct 
> because your TEXT("") parameter is where that API call wants to store the 
> property value.
>
> Phil Wilson
>
>
> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Ran Didi
> Sent: Sunday, September 14, 2008 2:01 PM
> To: wix-users@lists.sourceforge.net
> Subject: [WiX-users] MsiGetProperty failed on new CA
>
> Hi,
> I successfully converted an InstallShield project to WIX 3.
> when i tried to add a new custom action - it failed on
> MsiGetProperty(hInstall, szName, TEXT(""), &nSizeCount); (gets nSizeCount ==
> 0 & return ERROR_MORE_DATA), while i was trying to get the CustomActionData
> property from the msi package.
>
> when i call the new CA by changing the DLLEntry propery of a working CA -
> the call succeeded, i.e. i have a a working foo_ca_old CA (foo_old DLLEntry)
> and a broken foo_ca_new CA (foo_new DLLEntry) and i build the msi while
> changing foo_ca_old to invoke foo_new DLLEntry. this test showed that the
> problem is in the wix source file and not in the CA code.
> i went over the source several times - and didn't notice a thing that is
> different between foo_ca_old and foo_ca_new, can someone suggest a ptr where
> to start looking?
> --
> Didi Ran...
> -------------------------------------------------------------------------
> 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
>
>
>
> -------------------------------------------------------------------------
> 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
>
>
>
>   

*** This email and any attachments thereto may contain private, confidential, 
and privileged material for the sole use of the intended recipient.  Any 
review, copying, or distribution of this email (or any attachments thereto) by 
others is strictly prohibited.  If you are not the intended recipient, please 
contact the sender immediately and permanently delete the original and any 
copies of this email and any attachments thereto. ***


-------------------------------------------------------------------------
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