views:

210

answers:

3

I have a batch file with some commands that I need to run with my installer, but I'd rather a console not appear (in Windows). I'm executing the batch file from a WiX installer, via a custom action. I tried adding an @ECHO OFF to the top of the file, but that didn't seem to do anything.

Is there a way that I can run this batch file silently?

A: 

what do you mean pop up with the installer?

Dhaivat
+1  A: 

Create a shortcut to your batch file, then edit its properties, and select the run minimized option.

JRL
+2  A: 

You can run it with stdoutout redirect to file eg. ./script > x.txt

Svisstack
Or redirect into Nirvana using `./script.bat > NUL` (The null device of Windows similar to /dev/null)
0xA3
@0xa3: Why similar? Isn't it actually the same?
Joey
@Johannes Rössl: Sure, the concept is the same, just name and OS are different.
0xA3