See 
http://msiext.codeplex.com/sourcecontrol/changeset/view/47269?projectName=msiext#816368.

Look at MsiInstall::GetFormattedString.


dB. @ dblock.org 
Moscow|Geneva|Seattle|New York



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

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to