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:
How to make your own UltraVNC Server MSI
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
(a cert that I saved out from a previous install)
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:
Re: UltraVNC 1.0.8.2 Silent/Unattended Install
complete offline installation ultravnc
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
Trusting Video Driver 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"
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.)