|
|
#1 | ||
|
Junior Member
Join Date: Jun 2007
Posts: 2
|
nsis Exec: failed createprocess
My installer ships a vbs install script to create the SQL database and IIS website. Run manually the vbs file completes.
Within my NSI script i have the following Quote:
Quote:
I need this script to execute before the installer exits. Can anyone shed any light or recommend and alternative? Thanks Graz |
||
|
|
|
|
|
#2 |
|
Major Dude
Join Date: Feb 2004
Location: Moscow, Russia
Posts: 1,222
|
Exec starts executable, not script, shell required to run vbs. And Forum Search is you best friend
![]() http://forums.winamp.com/showthread....&highlight=vbs If this opens black console window, you can take vbs extension handler from Registry (what ExecShell does) and run it using nsExec (included to distribution) or ExecDos plug-in (from Dev. center). |
|
|
|
|
|
#3 |
|
Junior Member
Join Date: Jun 2007
Posts: 2
|
Thanks a lot
But i know get this ExecShell: warning: error ("OPEN": file:""C:\Program Files\TrustNET\install\install.vbs" "Melbourne" "sa" "surfsup" "TrustNET" "192.168.1.200" "C:\Program Files\TrustNET"" params:"SW_SHOWNORMAL")=2 My script returns 100 not 2 on an error i.e. WScript.Quit(100) |
|
|
|
|
|
#4 |
|
Senior Member
Join Date: Mar 2006
Location: Dallas
Posts: 462
|
Use Exec (or NsExec::Exec) with "Wscript.exe $PROGRAMFILES\TrustNET\install\install.vbs Melbourne sa surfsup TrustNET 192.168.1.200 $PROGRAMFILES\TrustNET"
|
|
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|