Winamp & Shoutcast Forums

Winamp & Shoutcast Forums (http://forums.winamp.com/index.php)
-   NSIS Discussion (http://forums.winamp.com/forumdisplay.php?f=65)
-   -   use Exec command after get a value from Custom page (http://forums.winamp.com/showthread.php?t=226281)

andy susanto 17th September 2005 17:39

use Exec command after get a value from Custom page
 
1 Attachment(s)
hai,

i try to execute a file, after user choose a directory. but i do not know why syntax exec does not working. If i use Exec command.com, the Exec syntax working. when i check with
message box the value that i get from $R0 is right.

i try to catch the value from custom page, because i do not know user will install mysql.

how to correct my code to running like that ?

this my code :

Function LeaveCustom

ReadINIStr $R0 "$PLUGINSDIR\inputtext.ini" "Field 1" "State"

StrCmp $0 3 runing

runing:
;MessageBox MB_OK '$R0\bin\mysql.exe'
;Exec 'command.com'
Exec '$R0\command.com'
;Exec '$R0\mysql\bin\mysql.exe'

;IfErrors 0 +2
;Abort


FunctionEnd

kichik 17th September 2005 17:41

Quote it:
code:
Exec '"$R0\mysql\bin\mysql.exe"'

andy susanto 17th September 2005 17:50

kichik,

thank my installer now, can run that


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

Copyright © 1999 - 2010 Nullsoft. All Rights Reserved.