It's wasn't so simple to replace ScrollableText control text.
A simple property replacement does not work.

I have made a EULA replacement custom action DLL to read EULA from the text 
file. The routine was like:

1. MsiGetActiveDatabase
2. MsiDatabaseOpenView with SQL selecting the whole row containing the EULA 
text control
3. MsiViewExecute to retrieve the record (hRecord)
4. MsiViewModify(hView, MSIMODIFY_DELETE, hRecord)
5. MsiRecordSetString to replace the column in the hRecord
6. MsiViewModify(hView, MSIMODIFY_INSERT_TEMPORARY, hRecord)

Updating with the temporary row was the only way to achieve the goal with 
DELETE and INSERT_TEMPORARY. I have never succeeded any other way around.

Regards,

Chesong Lee

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Magus
Sent: Wednesday, August 02, 2006 7:58 PM
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] 2 License in 1 ScrollableText Control


yes another one of my many questions sorry, but hopefully someone else out
there might run into the same problem and just be able to look it up.  Ok I
have 2 license agreements, the thing is I need both license to be in 1 list. 
Now I already though of just moving the text from one to the other, but
thats not going to work. Said License_2 wants their EULA to retrieved using
a function call.  So I have a custom action retrieve and place that text
into a variable and also retrieve my license agreement and combine them in
my C program, then I call WcaSetProperty and give back my long string.  That
all worked fine, the problem came when I tried to put them in my control. 
<Control Id ="LicenseAgreement" Type="ScrollableText"...>
<Text> [EULA] <!--This being my property ID--></Text>
-- 
View this message in context: 
http://www.nabble.com/2-License-in-1-ScrollableText-Control-tf2043011.html#a5624664
Sent from the wix-users forum at Nabble.com.


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to