It wont work as my szLocalPath is a char and when I change it to LPCWSTR it
says it is not compatiable with a char coming from the function. I have the
MsiSetProperty working, I just don't know how to implement it in my Wix
project and use it in my other DLL functions.

-----Original Message-----
From: Bruce Cran [mailto:br...@cran.org.uk] 
Sent: 14 August 2012 11:37
To: wix-users@lists.sourceforge.net
Subject: Re: [WiX-users] Wix C++ variables

On 14/08/2012 11:00, Natalie Carr wrote:
> Have you any sample code for the WcaSetProperty, from looking online 
> I'm not getting a clear picture (maybe it's just me..:()

I think you should be able to replace:

MsiSetProperty(hInstall, "ProductName",  szLocalPath);

with:

WcaSetProperty(L"ProductName", szLocalPath);

It just uses the handle stored in the WcaInitialize call.

--
Bruce Cran


----------------------------------------------------------------------------
--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to