ptgoel
7th April 2004 08:18 UTC
Driver Installation Query
Hi,
i am looking forward to install my device driver along with my application. For this purpose i have written a small code(install.exe) which installs the driver via command line. e.g.
install -i xxx
This will install xxx driver on Windows System. i want to execute the same command while installing via package, so that user intervension is not needed.
Does NSIS offers something like this kind of facility to execute our own command? If yes! how to do that.
if not! can you suggest me some way of doing this.
regards,
Aman
Bennyyy
7th April 2004 10:29 UTC
hi
use this:
nsExec::Exec "Install.exe -i XXX"
ptgoel
8th April 2004 06:58 UTC
Hi,
;install driver
nsExec::Exec "InstallVD.exe -l C:\Documents and Settings\Administrator\Desktop\VD\Driver\VD.inf -c p -i VD"
I added this command in the code. but it is not working(on command line it works). am i supposed to specify something else too.
rite now InstallVD.exe is in VD directory. am i supposed to put it in some other directory.
regards
deguix
8th April 2004 11:23 UTC
but it is not working(on command line it works).
So you have to put the correct location where "InstallVD.exe" is located.
ptgoel
8th April 2004 12:42 UTC
done! but still not working
This is what i did.
nsExec::Exec "C:\InstallVD.exe -l C:\Documents and Settings\Administrator\Desktop\VD\Driver\VD.inf -c p -i VD"
it compiles without any problem. but at installation time it doesn't work.
regards
Bennyyy
9th April 2004 13:38 UTC
use this
(i found it in the nsis user manual)
4.9.1.3 ExecShell action command [parameters][SW_SHOWNORMAL | SW_SHOWMAXIMIZED | SW_SHOWMINIMIZED]
Execute the specified program using ShellExecute. Note that action is usually "open", "print", etc, but can be an empty string to use the default action. Parameters and the show type are optional. $OUTDIR is used for the working directory. The error flag is set if the process could not be launched.
deguix
9th April 2004 15:18 UTC
Probably because one of the files aren't in those folders when you call this command. Use IfFileExists command to check if those files are in the correct locations.
PanicMan
23rd November 2004 10:47 UTC
Does this work? If yes, can you give this exe to me? i have the same problem...
KenA
23rd November 2004 11:26 UTC
Hi,
try this syntax (beware of the quotes within quotes):
nsExec::Exec '"InstallVD.exe" -l C:\Documents and Settings\Administrator\Desktop\VD\Driver\VD.inf -c p -i VD'
hope it helps,
KenA