Skip to content
⌘ NSIS Forum Archive

Dos -> Command line

3 posts

michiel#edited

Dos -> Command line

How can I open an MS-DOS windows where i can put some commands in it to execute after installing an app. ?? 😔 😔
Yathosho#
ms-dos? i guess you speak of the command-line window.

if you want to execute a single command, use the Exec command. if you want to execute a couple of commands you could also do so by writing a batch file (.bat)
kichik#
If you want the user to put some commands in use:
ReadEnvStr $0 "COMSPEC"
Exec '"$0"'
# or, if you want to wait for it
ExecWait '"$0"' 
If you want to execute your own code do what killahbite said. If you don't want the DOS window to show up use nsExec.