Hide window with install script

npc_caseym
npc_caseym used Ask the Experts™
on
I'm building a vb script to remotely check for a file and if the file does not exist, the script installs a font on Windows 7 PC's and then creates a blank file that prevents it from running every time.  I'm doing this through a logon script GPO.  My question is, is there a way that I can hide the install font box?  The script works great, but the first time that the user logs on and font installs, the user sees the "Installing font" dialog box.  Just wondering if there is a way to hide it.  I've tried using the cscript paramater //B but it doesn't work.

Thanks in advance!
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Most Valuable Expert 2012
Top Expert 2014

Commented:
Hi, as far I know, not via script.  See here for an attempt:
http://www.experts-exchange.com/OS/Microsoft_Operating_Systems/Server/2003_Server/Q_27188592.html

But, maybe a third party program could work, as suggested by Daz here:
http://www.experts-exchange.com/OS/Microsoft_Operating_Systems/Windows/Windows_7/Q_27657580.html

Regards.

Rob.

Commented:
Last time I rolled out a font across a domain we just build a one-file MSI file using all we had to had which was the free "Winstall Lite" and applied it through GPO to all computers... no need for anything else then, just appears on people's computers.

Author

Commented:
Yes I understand that I could create an MSI package and deploy it that way.  I don't want to do that.  I just wanted to know if there was a way in the vb script to hide the window.
Acronis in Gartner 2019 MQ for datacenter backup

It is an honor to be featured in Gartner 2019 Magic Quadrant for Datacenter Backup and Recovery Solutions. Gartner’s MQ sets a high standard and earning a place on their grid is a great affirmation that Acronis is delivering on our mission to protect all data, apps, and systems.

Most Valuable Expert 2012
Top Expert 2014
Commented:
By VBScript, I've never found a way.  I've tried, and seen tried, many variations of the supposedly working MS documentation for the CopyHere method, but I guess the font installation dialog is treated differently.

Regards,

Rob.

Commented:
You could compile a small "autoit" script I suppose to "press" the button, maybe even be able to use Word automation objects to get a handle on the window and do a Sendkeys of the Return button?

Steve

Author

Commented:
Not the answer i was looking for but fact isfact.

Commented:
You should be able to use the options I suggested if you still need to - the word automation objects can be used within vbscript if Office is present as they allow you to get a handle on a specific window but I didn't get the oppurtunity to test it with fonts.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial