Question

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?

Was it helpful?

Solution

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

OTHER TIPS

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

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top