mkruger Posted January 1, 2011 Posted January 1, 2011 (edited) Anyone had any luck automating the installation of the Ultra VNC Mirror Driver (version 1.0.22)? Anecdotal evidence suggests it fails because of some restriction put into place by Microsoft...but whether that's really true or not, I don't know. What I do know is that I can install Ultra VNC and configure it to run as a system service using RunOnceEx.cmd. For reference here are the lines from my RunOnceEX.cmdREG ADD %KEY%\045 /VE /D "UltraVNC 1.0.9.5" /fREG ADD %KEY%\045 /V 1 /D "%systemdrive%\Install\UVNC\UltraVNC_1.0.9.5_Setup.exe /SP- /VERYSILENT /NORESTART /LOADINF=%systemdrive%\Install\UVNC\install.inf" /fREG ADD %KEY%\045 /V 2 /D "\"%Systemdrive%\Program Files\UltraVNC\WinVNC.EXE\" -install" /fAnd to pre-configure the settings, I also copy over a customized winvnc.ini file via $OEM$\$Progs\UltraVNC\. So when the program installs, it uses these settings (eliminating any further reconfiguration) But I've had no luck with the mirror driver install using either RunOnceEX.cmd or calling it via Winnt.sif (RunOnceGUI). Lines from Winnt.sif (In case there is some relation, I included the line from my driver packs installer finisher)[GUIRunOnce] command9="%SystemDrive%\DPsFnshr.exe" command10="%SystemDrive%\UVNCDRIVER\Install.bat"Oddly, the mirror driver manually installs OK. Hmmm....I just found something from Technet that could be related: http://technet.microsoft.com/es-es/library/cc779048%28WS.10%29.aspxYou cannot run installation programs that rely on the Windows Explorer shellThe Windows Explorer shell is not loaded when the operating system starts running commands, programs, scripts, or batch files that are listed in the [GuiRunOnce] section of an answer file. In some cases, you can get an updated installer program from the application vendor that does not rely on the Windows Explorer shell. If you cannot, you might be able to repackage the application as a Windows Installer package (.msi file).Perhaps this driver "MUST" be installed via the shell. I didn't know the shell was not running at this stage. Edited January 1, 2011 by mkruger
mkruger Posted January 2, 2011 Author Posted January 2, 2011 Update:It is possible to automate the installation of the mirror driver. However, it cannot be automated using the supplied batch file that calls "setupdrv.exe". It is embarrassing to say how much time I spent figuring that out..... Here's what I did.....I used Microsoft "Devcon.exe" and called it during GUIRunOnce (Winnt.sif).[GUIRunOnce]command10="%systemdrive%\uvncdriver\devcon.exe install %systemdrive%\uvncdriver\driver\mv2.inf mv_hook_display_driver2"It may also be helpful to mention how I disabled certified driver checking via regtweaks which was applied prior to this driver installation. The last step is to cleanup the driver folder post install because by this time, cleanup.cmd has already run and been removed. Here I have a self deleting batch file for post install cleanup steps running from the user profile startup directory..... @echo Performing cleanup steps......sleep 5rmdir /S /Q %systemdrive%\uvncdriver\del %0
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now