What program are you trying to install? Some programs have built-in support to run silent by use of a parameter passed. Sometimes setup.exe /? will show parameters. Other times just open setup.exe in WordPad and start browsing for switches. I have seen -s, /s, /q, /silent etc. Sometimes you need to hack the .inf or similar file. Check the docs or call tech support.

If you can't get a silent install, look to using setfocus() and sendkeys() to move the install along.

I don't understand why you say "doesn't provide an option to to be run on dos mode". Are you referring to shell? Try using the full path or the run command.

_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.