Winamp & Shoutcast Forums

Winamp & Shoutcast Forums (http://forums.winamp.com/index.php)
-   NSIS Discussion (http://forums.winamp.com/forumdisplay.php?f=65)
-   -   why ${ConfigWrite} does not work? invalid comand?? why?? (http://forums.winamp.com/showthread.php?t=287256)

sergiotaraujo 20th February 2008 11:36

why ${ConfigWrite} does not work? invalid comand?? why??
 
every time that I try to run this comand, I can`t...
I don`t know why...
I need help!!!

${ConfigWrite} "$WINDIR\php.ini"
"SET extension_dir=" "testing" $R0


the error is..

invalid command: ${ConfigWrite}
Error in script "D:\workspace\Installer_test\setup.nsi" on line 201 -- aborting creation process


thankss!!

Red Wine 20th February 2008 11:58

Probably because you haven't add !insertmacro ConfigWrite.

sergiotaraujo 20th February 2008 12:10

ok.. but.. when I put this.. it does not find!! What I favo to do pu insert this macro correctly?

Red Wine 20th February 2008 12:15

!include "TextFunc.nsh"
!insertmacro ConfigWrite

sergiotaraujo 20th February 2008 12:19

I`m sorry.. but I really don`t know!!
now you have a !include "TextFunc.nsh"
I have to make this function?

sergiotaraujo 20th February 2008 12:20

ooo
I`m sorry...
works fine!!!!!
thanks a lot Red Wine!! I undertood!!! :D:D

sergiotaraujo 20th February 2008 12:36

OK!!
so now.. I got it.. but.. when I got a variable $PROGRAMFILES.. It come like this..
C:\Program Files\...
How can I get it, link this...
C:/Program Files/... ??????

thankssss


All times are GMT. The time now is 04:28.

Copyright © 1999 - 2010 Nullsoft. All Rights Reserved.