views:

27

answers:

0

I'm trying to deploy fonts to several computers in an organization. And at first I thought that a simple copy would do the job. Turns out it didnt. So I changed the script to use CopyHere method instead taken from objShell.Namespace

This does work when the font isn't installed at all. But when it is, I get this annoying error message saying that "the font is already installed, overwrite?" so I searched some more and found that I also need to remove the registry settings for Windows to "see" the font as installed or not. But removing of the registry settings somehow fail with "no access" error message.

This is all a hazzle, so I was wondering, isn't there a quick way of just getting the script to automatically type OK on this dialog box? This would solve all the problems. If the font is installed, overwrite. If it isn't installed, install.

Edit: Is it possible to combine CopyHere method with SendKeys ?