Reputation: 133
Am executing .bat file in custom action using wix. When i run the set up it successfully exceuting .bat file but with console window. I don't want any console window. It is possibe to hide window using wix or with .bat file.
Thanks in Advance
Upvotes: 2
Views: 681
Reputation: 1
Set objShell = CreateObject("WScript.Shell") objShell.Run "Your_bat_file_path", 0, True
Replace "your_batch_file.bat" with the path to your actual batch file.
Upvotes: 0
Reputation: 8825
You can do:
start program args
exit
but this will open command line window for just a moment, until the program starts, afterwhich it closes. Alternatively, and equivalently, you can do:
Start "" "program args"
So, to start notepad and then exit the cmd terminal, you'd do:
start notepad
exit
or:
Start "" "notepad"
Upvotes: 0