Old 20th February 2008, 11:36   #1
sergiotaraujo
Junior Member
 
Join Date: Feb 2008
Posts: 12
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!!
sergiotaraujo is offline   Reply With Quote
Old 20th February 2008, 11:58   #2
Red Wine
Forum King
 
Red Wine's Avatar
 
Join Date: Mar 2006
Location: Ath. GR
Posts: 2,078
Probably because you haven't add !insertmacro ConfigWrite.

Quick AVI Creator - Quick and easy convert from DVD/MPEG/AVI/MKV to AVI/MP4/MKV
Quick AVI Creator entirely edited with NSIS and entirely upgraded to Unicode NSIS
Red Wine is offline   Reply With Quote
Old 20th February 2008, 12:10   #3
sergiotaraujo
Junior Member
 
Join Date: Feb 2008
Posts: 12
ok.. but.. when I put this.. it does not find!! What I favo to do pu insert this macro correctly?
sergiotaraujo is offline   Reply With Quote
Old 20th February 2008, 12:15   #4
Red Wine
Forum King
 
Red Wine's Avatar
 
Join Date: Mar 2006
Location: Ath. GR
Posts: 2,078
!include "TextFunc.nsh"
!insertmacro ConfigWrite

Quick AVI Creator - Quick and easy convert from DVD/MPEG/AVI/MKV to AVI/MP4/MKV
Quick AVI Creator entirely edited with NSIS and entirely upgraded to Unicode NSIS
Red Wine is offline   Reply With Quote
Old 20th February 2008, 12:19   #5
sergiotaraujo
Junior Member
 
Join Date: Feb 2008
Posts: 12
I`m sorry.. but I really don`t know!!
now you have a !include "TextFunc.nsh"
I have to make this function?
sergiotaraujo is offline   Reply With Quote
Old 20th February 2008, 12:20   #6
sergiotaraujo
Junior Member
 
Join Date: Feb 2008
Posts: 12
ooo
I`m sorry...
works fine!!!!!
thanks a lot Red Wine!! I undertood!!!
sergiotaraujo is offline   Reply With Quote
Old 20th February 2008, 12:36   #7
sergiotaraujo
Junior Member
 
Join Date: Feb 2008
Posts: 12
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
sergiotaraujo is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump