Jump to content


This is a ready-only archive of the InstallSite Forum. You cannot post any new content here. / Dies ist ein Archiv des InstallSite Forums. Hier können keine neuen Beiträge veröffentlicht werden.
Photo

insert comment in a ini file


1 reply to this topic

pavlacki

pavlacki
  • Members
  • 15 posts

Posted 08 March 2005 - 14:16

Hello,

I create a msi project and I have a ini file.

the ini file look at this:
CODE

///////////////////////////////////////////////////////////////////////////
//////////                                                                    //////////
//////////                      Pavlacki Initialisation File           //////////
//////////                     ------------------------------          //////////
//////////                                                                    //////////
///////////////////////////////////////////////////////////////////////////


[files]
CompiledHtmlHelpFile    = [INSTALLDIR]Help\WRHelp.chm
HexacodeFile                = [INSTALLDIR]Maps\Cedex\hxfvnn04.tri
...


when i install my setup my ini file is this:
CODE

[files]
CompiledHtmlHelpFile=C:\Program Files\WR\Help\WRHelp.chm
HexacodeFile=C:\Program Files\WR\Maps\Cedex\hxfvnn04.tri
...


all the comment have disapears.
how can I keep my comment ?

and it is possible the introduce the [product name] in the comment?

Thanks in advance.
Paul


Stefan Krueger

Stefan Krueger

    InstallSite.org

  • Administrators
  • 13,269 posts

Posted 09 March 2005 - 15:53

INI files are not intended to inlcude comments. The INI file APIs don't support reading or writing comments, and may even remove them. If you need a special formatted file that doesn't fully comply with the INI file format you have to use a custom action to process the text file.