So, what we're talking about is something like the way VB6 used to
handle add-in tools... only less structured.

 

You have my sympathy. :-)

 

If the file you are appending to really is unstructured text (as opposed
to something with an ini file structure, but with a txt extension), I
think you only have two choices:

 

1) Require the end user to modify the file themselves. (This is almost
certainly not an option... if for no other reason than it is seriously
unfriendly to less experienced users).

2) Create a custom operation. As you observed initially, this is an area
which is extremely susceptible to problems and should be approached with
caution. If I had to do this, I would code it as a custom action DLL in
C++, making sure of course that there are no external library
dependencies. The reason for choosing a DLL instead of an EXE is just
personal preference. I would probably also submit a support request to
the developer / publisher of the existing application asking them to use
a more structured format, ideally either ini file or XML, in subsequent
releases.

 

Good Luck!

 

Regards,

Richard

 

________________________________

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Tal
Shrestha
Sent: Tuesday, April 24, 2007 11:26 AM
To: WiX-Users
Subject: Re: [WiX-users] Custom installation

 

Yes, these are configuration files of another existing application (not
mine). 

I must append my text to the text file in order to add this specific
feature (yes, the user can choose to add it or not)






* C O N F I D E N T I A L I T Y N O T I C E *
-----------------------------------------------------------
The content of this e-mail is intended solely for the use of the individual or 
entity to whom it is addressed. If you have received this communication in 
error, be aware that forwarding it, copying it, or in any way disclosing its 
content to any other person, is strictly prohibited. Peek Traffic Corporation 
is neither liable for the contents, nor for the proper, complete and timely 
transmission of (the information contained in) this communication. If you have 
received this communication in error, please notify the author by replying to 
this e-mail immediately and delete the material from any computer.


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to