This is a wise specific question.
when you create an INI file with a bunch of comments (;) these are automatically stripped when the MSI is compiled.

Does anybody know how to preserve them?...thanks!
0 Comments   [ + ] Show Comments

Comments

Please log in to comment

Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.

Answers

0
hi,
this instances are not only wise specific, installshield acts the same way when dealing with ini's with commented out entries. to preserve those entries you can place the ini file in the file table (but that would mean problems if your appending entries on an existing ini). another is install you ini using inifile table and then create a text file with the same name as the ini and place all the commented out entries and install in the same location as the ini file so the customer or users installing your application would know what options or usage are available for the ini file. anyways.. it depends on how you or what your customer standards are =)

regards
rik
Answered 03/07/2006 by: rikx2
Purple Belt

Please log in to comment
0
I don't think it is possible to add comments to an ini file, using Windows Installer inifile-tables. This is not a Wise problem, this is Windows Installer. I have had the same problem adding emtpy ini-file values (ie "variable="), and had to add the ini-file as a normal file. I think rikx2's suggestions is good in this case.
Answered 03/07/2006 by: sikkert
Orange Senior Belt

Please log in to comment
1
I dont have a complete solution for this but got one workaround for this problem.
I used to add "=" without quotes just after the semi colon ";" in each comment line to preserve the comment.
But then you will get the "=" in the begining of comments in the INI file installed. Since "=" is added to a comment line it wont have any issues regarding to the working of INI file.

sample text in INI


[Test]
A=SomeValue
B=SomeValue
;=this is a sample INI file
;=this is to prevent the comment
Answered 03/07/2006 by: Lillude
Senior Purple Belt

Please log in to comment
2
thanks everyone for jumping in.
the ;=comment text sounds like a good solution
Oh, for sikkert, to add an empty variable in Wise, this is definitely possible.
the way to do that is this,

Value=[~]

Best regards,
Answered 03/08/2006 by: aogilmor
Ninth Degree Black Belt

Please log in to comment
0
ORIGINAL: aogilmor

Oh, for sikkert, to add an empty variable in Wise, this is definitely possible.
the way to do that is this,

Value=[~]



Ah, got to try that one. Thanx :)
Answered 03/08/2006 by: sikkert
Orange Senior Belt

Please log in to comment
0
you're welcome.

of course one of these days (real soon now?!...) we'll see the last of the INI files
then we'll only have the registry to be confused about [8|]
Answered 03/09/2006 by: aogilmor
Ninth Degree Black Belt

Please log in to comment
0
ORIGINAL: aogilmor

thanks everyone for jumping in.
the ;=comment text sounds like a good solution
Oh, for sikkert, to add an empty variable in Wise, this is definitely possible.
the way to do that is this,

Value=[~]

Best regards,

aogilmor

Nice pickup aogilmor I'll rate that post :)
Answered 03/09/2006 by: MSIMaker
Second Degree Black Belt

Please log in to comment
Answer this question or Comment on this question for clarity