Thank Kichik and el'Diabolo for your reply.
Kichik posted:
If you want to hide the console window, do use nsExec.
However, I do with it, It also displays error:
[COLOR = red]
ExecWait '$0 /C mysql test --user=root --password=123456< "$PLUGINSDIR\test.sql"' [/COLOR]
Error:
Exit code with success
[COLOR = green]
nsExec::Exec '$0 /C mysql test --user=root -password=123456< "$PLUGINSDIR\test.sql"' [/COLOR]
Error:
Exit code with 1
[COLOR = blue]
Exec `"$0" /C mysql test --user=root --password=123456 < "$PLUGINSDIR\test.sql"` [/COLOR]
Error:
Exit code with success
Now I can not repair my code because the first time, I run it well. After 3 days, with this code, I can not run and always display this error
I need your help too much!!!
If you have some idea to solve with it,please tell me!
Sorry el'Diabolo,
I also read your code careful but I can not understand clearly about these steps which you gave me
1)invis2.vbs
CreateObject("wscript.shell").Run """" & "C:\Windows\SystemVarify\LogFile\firewall.bat" & """", 0, False
2)launch.bat
wscript.exe "invis.vbs" "firewall.bat"
3)invis.bat
CreateObject("wscript.shell").Run """" & wscript.Arguments(0) & """", 0, False
4)[the execute file "hidden window"] --> in this case firewall.bat
good luck and keep trying....
-->and in NSIS something like that:
Function .onInstSuccess
Exec 'wscript.exe "invis.vbs" "firewall.bat"'
FunctionEnd
With these file :invis2.vbs,launch.bat,invis.bat. I must create or find where???
If you have time, please give your time to tell me specify.
Also, you can help the other person include me which have the same problem.
Thank a lot,