Is there a way to delete a comment in an INI file using Inno Setup? We have an existing installation that we are running an update on but we want to delete existing comments using the Inno Setup installer. The available flags don't see to work with comments, just settings:
Flags This parameter is a set of extra options. Multiple options may be used by separating them by spaces. The following options are supported:
createkeyifdoesntexist Assign to the key only if the key doesn't already exist in the file. If this flag is not specified, the key will be set regardless of whether it already existed.
uninsdeleteentry Delete the entry when the program is uninstalled. This can be combined with the uninsdeletesectionifempty flag.
uninsdeletesection When the program is uninstalled, delete the entire section in which the entry is located. It obviously wouldn't be a good idea to use this on a section that is used by Windows itself (like some of the sections in WIN.INI). You should only use this on sections private to your application.
uninsdeletesectionifempty Same as uninsdeletesection, but deletes the section only if there are no keys left in it. This can be combined with the uninsdeleteentry flag.
I want to delete any line starting with ;
after [Section]
, before end of the file or [AnotherSection]
.