Jump to content

Recommended Posts

Posted (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. :unsure:

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.cmd


REG ADD %KEY%\045 /VE /D "UltraVNC 1.0.9.5" /f
REG 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" /f
REG ADD %KEY%\045 /V 2 /D "\"%Systemdrive%\Program Files\UltraVNC\WinVNC.EXE\" -install" /f

And 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) :D

But I've had no luck with the mirror driver install using either RunOnceEX.cmd or calling it via Winnt.sif (RunOnceGUI). :no:

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.aspx

You cannot run installation programs that rely on the Windows Explorer shell

The 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 by mkruger

Posted

Update:

It is possible to automate the installation of the mirror driver. :thumbup

However, it cannot be automated using the supplied batch file that calls "setupdrv.exe". :realmad:

It is embarrassing to say how much time I spent figuring that out..... :blushing:

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. :whistle:

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..... :boring:


@echo Performing cleanup steps......
sleep 5
rmdir /S /Q %systemdrive%\uvncdriver\
del %0

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...