Update: UltraVNC 1.4.3.6 and UltraVNC SC 1.4.3.6: https://forum.uvnc.com/viewtopic.php?t=37885
Important: Please update to latest version before to create a reply, a topic or an issue: https://forum.uvnc.com/viewtopic.php?t=37864

Join us on social networks and share our announcements:
- Website: https://uvnc.com/
- GitHub: https://github.com/ultravnc
- Mastodon: https://mastodon.social/@ultravnc
- Facebook: https://www.facebook.com/ultravnc1
- X/Twitter: https://x.com/ultravnc1
- Reddit community: https://www.reddit.com/r/ultravnc
- OpenHub: https://openhub.net/p/ultravnc

Automating the video driver installation

Post Reply
bridge
8
8
Posts: 26
Joined: 2008-09-05 11:46

Automating the video driver installation

Post by bridge »

Looking at Windows 7 in our company environment, it appears very difficult to automate the installation of the video driver. To much darn security in the way.

I have gotten past the prompt for trusting the publisher by pre-installing the certificate, however any method I have tried to install the video driver with leads to "Driver Installation failed."

Does anyone have suggestions for automating the video driver installation on Windows 7? (MSI or something else scalable for 100s of computers.

Thanks.
bridge
8
8
Posts: 26
Joined: 2008-09-05 11:46

Re: Automating the video driver installation

Post by bridge »

I am happy to report that I was able to accomplish video driver install automation using devcon.exe. Let me backup and give an overview of the total solution that we are using in our company environment:

Automated Install (in order)

1) Create an MSI for UltraVNC

I started doing this several years ago using information from this older forum post by gepeto: [topic=5317][/topic]
Based on the information in gepeto’s above post I have been using WiX to create my UltraVNC MSI files. In addition to all the files and actions necessary to install UltraVNC within my MSI, I have included:

The UltraVNC video driver files
CertMgr.Exe from Windows SDK (Software Development Kit)
uvnc.cer [topic=17562](a cert that I saved out from a previous install)[/topic]
Devcon.exe from Windows WDK (Windows Driver Kit)

I learned of the devcon.exe option from searching the web and stumbling upon this post of someone working on automating the UltraVNC video driver installation: http://www.symantec.com/connect/forums/ ... nst-devcon

One could also copy the certmgr.exe, uvnc.cer, and devcon.exe files to computer C drives by other means than MSI if desired, i.e. logon script or similar, but I figured since I am making an MSI anyways, why not include everything.

For reference, related posts on automation or MSIs:
[post=68215][/post]
[topic=17101][/topic]

2) Install MSI

In our company this is being done by launching a VBS script via SCCM

3) Trust the video driver

Snippet from the vbs script being used in our company:
' ***** Install certificate for software publisher "uvnc bvba" (Pretrusting UltraVNC video driver install)
WshShell.Run "C:\Progra~1\UltraVNC\win7drv\driver\certmgr.exe –add C:\Progra~1\UltraVNC\win7drv\driver\uvnc.cer -c -s -r localMachine TrustedPublisher", ,True
See [topic=17562]Trusting Video Driver[/topic] post for more information.

4) Install the video driver

In our company this is being done by SCCM with admin rights, screenshot below if relevant to anyone in the future. Note that the entire command line below is not shown; its entirety is “devcon.exe install mv2.inf mv_hook_display_driver2"

Image

It may also be possible to script the devcon video driver install by other means, just make sure that it is running with administrator rights. I was unable to get devcon.exe to work well for me as a VBS script launched from SCCM, therefore I resorted to calling it directly (as shown in the screenshot above.)
Last edited by bridge on 2010-03-31 11:32, edited 1 time in total.
Atticus
Posts: 2
Joined: 2012-12-16 21:01

Re: Automating the video driver installation

Post by Atticus »

Posted a powershell script to https://forum.ultravnc.net/viewtopic.php?f=46&t=15904 which maybe helpful.
Post Reply