/build/static/layout/Breadcrumb_cap_w.png

comments in INI files

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

Answers (7)

Posted by: aogilmor 18 years ago
9th Degree Black Belt
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,
Posted by: Lillude 18 years ago
Senior Purple Belt
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
Posted by: rikx2 18 years ago
Purple Belt
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
Posted by: sikkert 18 years ago
Orange Senior Belt
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.
Posted by: sikkert 18 years ago
Orange Senior Belt
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 :)
Posted by: aogilmor 18 years ago
9th Degree Black Belt
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|]
Posted by: MSIMaker 18 years ago
2nd Degree Black Belt
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 :)
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ