Winamp & Shoutcast Forums

Winamp & Shoutcast Forums (http://forums.winamp.com/index.php)
-   NSIS Discussion (http://forums.winamp.com/forumdisplay.php?f=65)
-   -   Modify Constants :P (http://forums.winamp.com/showthread.php?t=229337)

WhoIAm? 25th October 2005 21:39

Modify Constants :P
 
Hey people,
i've got a strange question refering to Constants. I want to change a file depending on information given by the user (install dir). But that's not the problem.
The file i wanna change should contain a modified constant $INSTDIR. The InstallDir is like that:
C:\Program Files\TestDir\TestAPP\test.exe
The changed installdir should be like that:
C:\\Program Files\\TestDir\\TestAPP\\test.exe

Now my question. Is it possible to modify a constant like there (yeah i know, when i change this it isn't anymore a constant :P) is a additional "\" in the installdir constant??

I know it is a very special question. Thanks for Helping me out.

WhoIAm?

Joel 25th October 2005 23:07

Well... is easy :)

You'll have to use some of the string functions to change every "\" to "\\"...

Try the wiki and strfunc.nsh examples... :up:

WhoIAm? 29th October 2005 14:13

Yeah, thank you very much I've found the answer!


All times are GMT. The time now is 05:12.

Copyright © 1999 - 2010 Nullsoft. All Rights Reserved.