Skip to content
⌘ NSIS Forum Archive

wierd text inserted in files

6 posts

autofuzz#

wierd text inserted in files

I 'ported' my 1.x installer to 2b4 and now to 2RC2 and am seeing a very wired phenomenon.
I have a bunch of SQL files i have inserted into the installer to create a database at runtime, these files are put in using
!insertmacro MUI_INSTALLOPTIONS_EXTRACT "file.sql"

and Reserved using
ReserveFile "file.sql"

and at runtime I read them from the plugins directory.

during runtime i find the sql's fail to execute, if i look through the temp dirs to see the file extracted live from the installer I see that the last 2 lines have this text inserted in them.
[Settings]
RTL=0

I'm seeing that out of all the text files i have in the installer (inserted in the same way), a few sql's, a few vbs's and also a bunch of ini's (for custom dialogs), only the ini's don't get this string in them, all other 'non installer specific files' seem to have those two lines.

what am I doing wrong? is there a bug?

thanks,
A
pengyou#
The same thing has happened to me - only one file (a text file) was affected and it has only happened once so far. I was beginning to think I'd imagined it.

As far as I remember the same two lines were added to the end of the file.
kichik#
That's what MUI_INSTALLOPTIONS_EXTRACT do, it extracts INI files for InstallOptions into the plugin directory and adds that string.
Joost Verburg#
This macro is, as the name says, designed for InstallOptions.

If you want to put something else in the plug-ins folder use InitPluginsDir and File with $PLUGINSDIR.
Joost Verburg#
This macro has always been designed to extract InstallOptions INI files and was never intented for anything else.