Old 25th February 2008, 12:51   #1
sergiotaraujo
Junior Member
 
Join Date: Feb 2008
Posts: 12
how can I change "\" to "/" ??

I don`t know how change "\" to "/" ( sorry, I don`t know the name of this caractere!!

this is an exemple what I need..

File /r httpd.conf
${ConfigWrite} "$APACHE_HOME\conf\httpd.conf" "LoadModule php5_module " '"$PROGRAMFILES\PHP\php5apache2_2.dll"' $R0

and I need this

File /r httpd.conf
${ConfigWrite} "$APACHE_HOME\conf\httpd.conf" "LoadModule php5_module " '"$PROGRAMFILES/PHP/php5apache2_2.dll"' $R0

but when a I do the second exemple... it writes like this...

C:\Program Files/PHP/...


Help me!!!
tranks!!!
sergiotaraujo is offline   Reply With Quote
Old 25th February 2008, 15:49   #2
Red Wine
Forum King
 
Red Wine's Avatar
 
Join Date: Mar 2006
Location: Ath. GR
Posts: 2,078
code:
OutFile "test.exe"

!include LogicLib.nsh

Function .onInit
StrCpy $R0 "$PROGRAMFILES"
StrCpy $0 ""
StrCpy $1 0

${Do}
StrCpy $2 $R0 1 $1
IntOp $1 $1 + 1
${Unless} $2 == "\"
StrCpy $0 "$0$2"
${EndUnless}
${Select} $2
${Case} "\"
StrCpy $2 "/"
StrCpy $0 "$0$2"
${Case} ""
messagebox mb_ok "$0"
${ExitDo}
${CaseElse}
${EndSelect}
${Loop}
FunctionEnd

Section -
#
SectionEnd


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
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