View Full Version : how to run a DOS command?
8th September 2005, 22:42
I am trying to run a DOS command with the nsis installer. It is a batch file I want to run during the installation that will register one of the DLLs for the program to work. How can I go about doing it?
9th September 2005, 03:12
You could go and read the documentation first before posting, but I will answer anyway. Use 'exec "C:\path\your_batch_file.bat"' or use execwait to wait for the batch file to finish.
9th September 2005, 06:09
i guess you have to use ExecShell for a batch file
9th September 2005, 07:02
I checked the documentation, but I guess I did not know what to search for :(....
I am still having trouble with the Exec command. I am getting a `error in script error`...
All I want to do is execute the following command:
how do I go about doing it, where do i place the command?
I am very new at this, sorry if this is a dumb question.
9th September 2005, 07:16
Exec "regsvr32.exe $SYSDIR\msstdfmt.dll"
nsExec::Exec "regsvr32.exe $SYSDIR\msstdfmt.dll"
9th September 2005, 08:05
Thank you very much :) that worked very well..
One more thing, when I use that string you suggested, during installation, it pops up a dialog box that confirms that the command was successful. How can I make that silent? So that the user is not distracted :)
thank you soo much....
9th September 2005, 08:15
Exec "regsvr32.exe /s $SYSDIR\msstdfmt.dll"
Why not use NSIS "RegDLL"?
9th September 2005, 08:49
You guys are the best :) thank you very very much.. I appreciate all your time...
25th September 2005, 17:44
you guys also helped me.. I was searching the forums for the same answer.
vBulletin® v3.8.6, Copyright ©2000-2013, Jelsoft Enterprises Ltd.