Skip to content
⌘ NSIS Forum Archive

How to exclude " in search and replace function

3 posts

Mosestycoon#

How to exclude " in search and replace function

Is there a special character which has to be included when using the search an replace function?

I need the possibility to read/write a file, search for a string (e.g. __include_path__) and replace it like this: include_path = ".;$INSTDIR\path\to\dir\"

Using this as-is results in errors (something like too many parameters for function)

Thx in advance
Chris
kichik#
I hope I got what you are looking for right... If you want to include a quote sign (") in a string just quote the entire string with another quote type such as a single quote - '.

For example:
FileWrite $0 'A "string", if you know what I mean...' 
Mosestycoon#
Quote was the word I tried to describe, right :-)
I think that describes what I was looking for.
I want to replace a string in an ascii-file at installation-time. The Installationpath will be written to the file an in this case it needs 'QUOTES'

Thx, I give it a try...