Hello,

When scripting software installs a blank command prompt window is always showing.  All our clients are running Windows 7 64bit.  Our old means of deploying software never had this issue and so we could deploy software to users even while they were working at their stations.  Can anyone tell me why this is happening? or better yet, how to hide it?  The cmd window is blank and the switch (/qn) should mean that nothing shows whatsoever.  Any help would be greatly appreciated.

Answer Summary:
http://www.itninja.com/question/completely-invisible-batch-file || http://www.f2ko.de/programs.php?lang=en&pid=b2e
Cancel
0 Comments   [ + ] Show Comments

Comments

Please log in to comment

Community Chosen Answer


  • This content is currently hidden from public view.
    Reason: Removed by user request
    For more information, visit our FAQ's.
Please log in to comment

Answers

1

I'm assuming you are using a batch file to run multiple installations in order.

As long as it's set to run interactively the command window will be displayed. You can make a batch script start minimized, but it will still be there in the taskbar.

Your best bet is to either write a vbscript and run it using wshell or use powershell with the command line parameter "-windowstyle hidden". Be aware that a powershell window will be shown for 5-25 seconds during it's initial load. The only workaround for this is to make a powershell wrapper program that picks up on exitcodes etc.

 

Answered 04/25/2012 by: Ifan
Second Degree Green Belt

Please log in to comment
1

Use Jscript

var WindowStyle_Hidden = 0
var objShell = WScript.CreateObject("WScript.Shell")
var result = objShell.Run("cmd.exe /c xyz.bat", WindowStyle_Hidden)

Answered 04/27/2012 by: er.hsingh
Orange Senior Belt

Please log in to comment
0

Have you tried using the /quiet switch instead?

Answered 04/23/2012 by: robbyburmeister
White Belt

  • I forgot to mention that most of what I have been trying to deploy is vendor-supplied msi's. When running manually or from our Altiris server, everything behaves as one would expect. /qn = no UI, /qb = progress bar, etc.
Please log in to comment
0

More Info deploying from what ? System ? User or NT system. Context

 

Answered 04/23/2012 by: Sweede
Second Degree Green Belt

Please log in to comment
0

It is always better to use a scripting language in order to avoid such issues like VbScript.

Answered 05/04/2012 by: adilrathore
Fourth Degree Black Belt

Please log in to comment
Answer this question or Comment on this question for clarity