To install the software silently, without a restart, use:
/SP- /VERYSILENT /NORESTART
To adjust which components get installed:
/COMPONENTS=WinVNC,WinVNC\VNCMirror,WinVNC\VNCPrinter,VNCViewer,Documentation
To register a license key, use:
vncconfig -license
Then:
vncconfig -service -generatekeys
Any configuration settings you want to capture should appear here:
HKEY_LOCAL_MACHINE\SOFTWARE\RealVNC\WinVNC4
Avoid capturing the following:
RSA_Private_Key
NtLogon_Config
As these are not portable between computers.
Tested with version 5.0.5 and works fine.
Install vnc 5.0.5 on a test machine and configure the options as you want.
Install VNC Deployment Tools, import the configuration from test machine and export to a .REG file.
Create a .bat file with commands:
VNC-5.0.5-Windows.exe /VERYSILENT /NORESTART /COMPONENTS="WinVNC"
"%programfiles%\RealVNC\VNC Server\vnclicense.exe" -add Licence-number
regedit /s VNC-Settings.reg
Change the COMPONENTS like you want, in my example, only VNC server is installed. By default, the following components are installed:
VNC Server.
VNC Viewer. To suppress installation, specify /COMPONENTS="WinVNC,WinVNC\VNCPrinter,WinVNC\VNCMirror"
VNC Mirror Driver. To suppress installation, specify /COMPONENTS="WinVNC,WinVNC\VNCPrinter,VNCViewer"
VNC Printer Driver. To suppress installation, specify /COMPONENTS="WinVNC,WinVNC\VNCMirror,VNCViewer"
Add to a ZIP the VNC installation file, .REG with the configuration you exported and the .BAT file you created.
On KACE distribution package, use the command YourBatFile.bat for installation and mark "Dont prepend msiexec".
View inventory records anonymously contributed by opt-in users of the K1000 Systems Management Appliance.