There is no C++ expand that will resolve msi properties. You could "get" the
property from msi or "set" the property. That is what you set the property
to.

-----Original Message-----
From: mrtn [mailto:mrtn.frederik...@gmail.com] 
Sent: Monday, October 19, 2009 10:12 AM
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] Setting properties in a C++-CA vs. setting properties
using <CustomAction>


I have a question:
When I do this:
<CustomAction Id="CA_Test" Property="TestTitle" Value="The product is:
[ProductName]" Execute="immediate" Return="check"></CustomAction>
The property TestTitle gets the value with [ProductName] expanded. Like:
"The product is: TestApp"

However if I do this:
MsiSetProperty(hMsi, _T("TestTitle"), _T("The product is: [ProductName]"));
The property TestTitle gets the value: "The product is: [ProductName]"

Anyone knows how to make the C++ code expand included properties?

// morten

-- 
View this message in context:
http://n2.nabble.com/Setting-properties-in-a-C-CA-vs-setting-properties-usin
g-CustomAction-tp3849261p3849261.html
Sent from the wix-users mailing list archive at Nabble.com.

----------------------------------------------------------------------------
--
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
WiX-users@lists.sourceforge.net
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
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to