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

Automated Install not accepting password

Post Reply
griam01
Posts: 7
Joined: 2004-10-05 21:05

Automated Install not accepting password

Post by griam01 »

I am trying to run a silent install with the /loadinf parameter, so my users do not see anything happening at all

My command line is this:

c:\vnc\ultravnc-1.0-setup_sf.exe /verysilent /loadinf="c:\vnc\vncsettings.inf"

My vncsettings.inf (created using /saveinf parameter)

[Setup]
Lang=en
Dir=C:\Program Files\UltraVNC
Group=UltraVNC
NoIcons=0
Components=server,server\driver,viewer,dsm,repeater
Tasks=installservice,startservice,properties,cleanreg,associate
PropertiesFile=c:\vnc\clientvnc.reg

My clientnvnc.reg was an export of my registry with a password already generated.

I run the install and I don't get a popup until the very end, when it says that a default password is not set and prompts you to put in a password, once you click ok, it then has all the default settings, not he customized settings I specified in the .reg file initially (lock permissions, etc.).

I am sure I am just missing something and would appreciate any help anyone could give me.

Thanks in advanced for your assistance.
AssurJur
8
8
Posts: 12
Joined: 2005-06-30 14:37

Post by AssurJur »

To create a right REG file you have to export this : HKEY_LOCAL_MACHINE\SOFTWARE\ORL
griam01
Posts: 7
Joined: 2004-10-05 21:05

Post by griam01 »

I know how to create a reg file, that is what I have already done. My problem is that the reg file has the password in it, but it is not accepting it during an install.
griam01
Posts: 7
Joined: 2004-10-05 21:05

Post by griam01 »

Here is the reg file I am working with:

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\ORL]

[HKEY_LOCAL_MACHINE\SOFTWARE\ORL\WinVNC3]
"DebugMode"=dword:00000002
"DebugLevel"=dword:0000000a
"AllowLoopback"=dword:00000000
"LoopbackOnly"=dword:00000000
"DisableTrayIcon"=dword:00000000
"MSLogonRequired"=dword:00000000
"NewMSLogon"=dword:00000000
"UseDSMPlugin"=dword:00000000
"ConnectPriority"=dword:00000001
"DSMPlugin"=hex:00,99,4e,80,01,00,00,00,01,00,00,00,40,a5,7d,f8,02,ff,1f,c0,06,\
82,4e,80,00,e0,fd,7f,8c,eb,a5,ed,78,ff,1f,c0,6c,eb,a5,ed,db,a6,4e,80,00,d0,\
fd,7f,01,00,00,00,00,00,00,00,74,ff,1f,c0,00,00,00,00,fc,07,30,c0,24,ec,a5,\
ed,4a,ed,4e,80,8c,eb,a5,ed,00,00,00,00,00,00,00,00,88,cd,2c,82,c0,4a,5f,81,\
01,4b,5f,81,00,00,00,00,74,ff,1f,c0,b0,b0,a8,e3,b8,eb,a5,ed,dc,ec,56,80,a8,\
04,31,e3,b0,b0,a8,e3,50,52,3d,00,00,00,00,00,00,00,00,00,00,00,00,00,00,eb,\
a5,ed,9b,24,00,00,2c,fb,c4,00,ec,eb,a5,ed,40,ff,c4,00,2d,39,ea,77,88,a6,e7,\
77,ff,ff,ff,ff,a8,36,ef,77,14,b2,de,77,58,1d,de,77,1a,54,de,77,14,ff,c4,00,\
50,ff,c4,00,c0,b1,de,77,40,8d,15,00,01,00,00,00,00,00,00,00,00,00,00,00,f0,\
2d,3d,00,00,00,00,00,a0,55,3d,00,04,19,c5,02,54,00,00,00,00,00,00,00,00,00,\
00,00,ad,b2,af,0f,6f,04,00,00

[HKEY_LOCAL_MACHINE\SOFTWARE\ORL\WinVNC3\Default]
"FileTransferEnabled"=dword:00000001
"FTUserImpersonation"=dword:00000001
"BlankMonitorEnabled"=dword:00000001
"CaptureAlphaBlending"=dword:00000000
"BlackAlphaBlending"=dword:00000000
"DefaultScale"=dword:00000001
"UseDSMPlugin"=dword:00000000
"DSMPlugin"=hex:00,99,4e,80,01,00,00,00,01,00,00,00,40,a5,7d,f8,02,ff,1f,c0,06,\
82,4e,80,00,e0,fd,7f,8c,eb,a5,ed,78,ff,1f,c0,6c,eb,a5,ed,db,a6,4e,80,00,d0,\
fd,7f,01,00,00,00,00,00,00,00,74,ff,1f,c0,00,00,00,00,fc,07,30,c0,24,ec,a5,\
ed,4a,ed,4e,80,8c,eb,a5,ed,00,00,00,00,00,00,00,00,88,cd,2c,82,c0,4a,5f,81,\
01,4b,5f,81,00,00,00,00,74,ff,1f,c0,b0,b0,a8,e3,b8,eb,a5,ed,dc,ec,56,80,a8,\
04,31,e3,b0,b0,a8,e3,50,52,3d,00,00,00,00,00,00,00,00,00,00,00,00,00,00,eb,\
a5,ed,9b,24,00,00,2c,fb,c4,00,ec,eb,a5,ed,40,ff,c4,00,2d,39,ea,77,88,a6,e7,\
77,ff,ff,ff,ff,a8,36,ef,77,14,b2,de,77,58,1d,de,77,1a,54,de,77,14,ff,c4,00,\
50,ff,c4,00,c0,b1,de,77,40,8d,15,00,01,00,00,00,00,00,00,00,00,00,00,00,f0,\
2d,3d,00,00,00,00,00,a0,55,3d,00,04,19,c5,02,54,00,00,00,00,00,00,00,00,00,\
00,00,ad,b2,af,0f,6f,04,00,00
"SocketConnect"=dword:00000001
"HTTPConnect"=dword:00000001
"XDMCPConnect"=dword:00000000
"AutoPortSelect"=dword:00000001
"InputsEnabled"=dword:00000001
"LocalInputsDisabled"=dword:00000000
"IdleTimeout"=dword:00000000
"QuerySetting"=dword:00000002
"QueryTimeout"=dword:0000000a
"QueryAccept"=dword:00000000
"LockSetting"=dword:00000001
"RemoveWallpaper"=dword:00000001
"Password"=hex:d7,d0,9c,58,04,15,4d,19
"AllowShutdown"=dword:00000000
"AllowProperties"=dword:00000000
"AllowEditClients"=dword:00000000
AssurJur
8
8
Posts: 12
Joined: 2005-06-30 14:37

Post by AssurJur »

Sorry ;) For me it works.

I'll check your key with mine tomorow ...
doak
Posts: 2
Joined: 2005-06-26 20:30

Post by doak »

No it will not work. I'm having the same problem. At the end it prompts for the password. Why isn't it possible to make an silent/unattended install with the password included? How can you deploy this on your network??
doak
Posts: 2
Joined: 2005-06-26 20:30

Post by doak »

Got the answer griam01

It's so somethings stupids all you have to do is copy the key's from [HKEY_CURRENT_USER\Software\ORL\WinVNC3] TO --> [HKEY_LOCAL_MACHINE\SOFTWARE\ORL\WinVNC3\Default] now it won't prompt for the password anymore !! This is my batch + reg file

Code: Select all

Batch:
@echo off 
rem made by DiannemaN for the lovers of UltraVnc
echo Importing vnc settings...
start /wait regedit /s vnc.reg

start /wait %systemdrive%\temp\UltraVNC-1.0-Setup.exe /loadinf="%systemdrive%\temp\saveinf.inf" /props="vnc.reg" /silent

echo Importing vnc settings...
rem yeah i know twice, just for sure
start /wait regedit /s vnc.reg

echo Copy the MSRC plugin...
copy /y "%programfiles%\UltraVNC\plugin\MSRC4Plugin_NoReg.dsm" "%programfiles%\UltraVNC"

echo 128 Bit encryption key...
copy /y rc4.key "%programfiles%\UltraVNC"

net start "VNC Server"

exit

vnc.reg

Code: Select all

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\ORL]

[HKEY_LOCAL_MACHINE\SOFTWARE\ORL\WinVNC3]
"DebugMode"=dword:00000000
"DebugLevel"=dword:00000000
"AllowLoopback"=dword:00000000
"LoopbackOnly"=dword:00000000
"DisableTrayIcon"=dword:00000000
"MSLogonRequired"=dword:00000000
"NewMSLogon"=dword:00000000
"UseDSMPlugin"=dword:00000001
"ConnectPriority"=dword:00000000
"DSMPlugin"=hex:4d,53,52,43,34,50,6c,75,67,69,6e,5f,4e,6f,52,65,67,2e,64,73,6d,\
  00,03,00,b8,66,4a,00,00,00,00,00,01,00,00,00,13,04,00,00,00,00,00,00,7c,fd,\
  12,00,80,fe,12,00,00,00,00,00,55,1f,57,79,c0,cb,03,00,ff,ff,ff,ff,00,60,4a,\
  00,d0,fd,12,00,28,ff,12,00,88,fe,12,00,00,00,8f,00,c8,6e,57,79,ff,ff,ff,ff,\
  98,fe,12,00,dd,6a,57,79,00,00,40,00,03,00,00,00,7c,fe,12,00,00,00,00,00,fd,\
  10,62,79,00,00,40,00,30,54,8f,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\
  00,00,00,00,00,00,e0,52,75,6e,6e,69,6e,67,00,fe,12,00,55,1f,57,79,18,25,57,\
  79,ff,ff,ff,ff,c8,fe,12,00,24,3c,46,00,00,00,8f,00,00,00,00,00,10,00,00,00,\
  00,00,00,00,e0,3f,4a,00,00,00,40,00,01,00,00,00,00,00,00,00,00,00,00,00,28,\
  ff,12,00,00,00,00,00,20,57,8f,00,c6,03,25,00,13,01,00,00,01,00,00,00,00,00,\
  00,00,26,9f,b3,00,67,03,00,00

[HKEY_LOCAL_MACHINE\SOFTWARE\ORL\WinVNC3\Default]
"AllowShutdown"=dword:00000001
"AllowProperties"=dword:00000001
"AllowEditClients"=dword:00000001
"FileTransferEnabled"=dword:00000001
"FTUserImpersonation"=dword:00000001
"BlankMonitorEnabled"=dword:00000001
"CaptureAlphaBlending"=dword:00000000
"BlackAlphaBlending"=dword:00000000
"DefaultScale"=dword:00000001
"UseDSMPlugin"=dword:00000001
"DSMPlugin"=hex:4d,53,52,43,34,50,6c,75,67,69,6e,5f,4e,6f,52,65,67,2e,64,73,6d,\
  00,03,00,b8,66,4a,00,00,00,00,00,01,00,00,00,13,04,00,00,00,00,00,00,7c,fd,\
  12,00,80,fe,12,00,00,00,00,00,55,1f,57,79,c0,cb,03,00,ff,ff,ff,ff,00,60,4a,\
  00,d0,fd,12,00,28,ff,12,00,88,fe,12,00,00,00,8f,00,c8,6e,57,79,ff,ff,ff,ff,\
  98,fe,12,00,dd,6a,57,79,00,00,40,00,03,00,00,00,7c,fe,12,00,00,00,00,00,fd,\
  10,62,79,00,00,40,00,30,54,8f,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\
  00,00,00,00,00,00,e0,52,75,6e,6e,69,6e,67,00,fe,12,00,55,1f,57,79,18,25,57,\
  79,ff,ff,ff,ff,c8,fe,12,00,24,3c,46,00,00,00,8f,00,00,00,00,00,10,00,00,00,\
  00,00,00,00,e0,3f,4a,00,00,00,40,00,01,00,00,00,00,00,00,00,00,00,00,00,28,\
  ff,12,00,01,00,00,00,20,57,8f,00,ff,ff,ff,ff,34,ff,12,00,1b,3b,46,00,0b,00,\
  00,00,08,3b,46,00,0b,00,00,00
"SocketConnect"=dword:00000001
"HTTPConnect"=dword:00000001
"XDMCPConnect"=dword:00000000
"AutoPortSelect"=dword:00000001
"InputsEnabled"=dword:00000001
"LocalInputsDisabled"=dword:00000000
"IdleTimeout"=dword:00000000
"QuerySetting"=dword:00000004
"QueryTimeout"=dword:0000000a
"QueryAccept"=dword:00000001
"LockSetting"=dword:00000000
"RemoveWallpaper"=dword:00000001
"Password"=hex:passwordhex

[HKEY_CURRENT_USER\Software\ORL]

[HKEY_CURRENT_USER\Software\ORL\WinVNC3]
"FileTransferEnabled"=dword:00000001
"FTUserImpersonation"=dword:00000001
"BlankMonitorEnabled"=dword:00000001
"CaptureAlphaBlending"=dword:00000000
"BlackAlphaBlending"=dword:00000000
"DefaultScale"=dword:00000001
"UseDSMPlugin"=dword:00000001
"DSMPlugin"=hex:4d,53,52,43,34,50,6c,75,67,69,6e,5f,4e,6f,52,65,67,2e,64,73,6d,\
  00,03,00,b8,66,4a,00,00,00,00,00,01,00,00,00,13,04,00,00,00,00,00,00,7c,fd,\
  12,00,80,fe,12,00,00,00,00,00,55,1f,57,79,c0,cb,03,00,ff,ff,ff,ff,00,60,4a,\
  00,d0,fd,12,00,28,ff,12,00,88,fe,12,00,00,00,8f,00,c8,6e,57,79,ff,ff,ff,ff,\
  98,fe,12,00,dd,6a,57,79,00,00,40,00,03,00,00,00,7c,fe,12,00,00,00,00,00,fd,\
  10,62,79,00,00,40,00,30,54,8f,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\
  00,00,00,00,00,00,e0,52,75,6e,6e,69,6e,67,00,fe,12,00,55,1f,57,79,18,25,57,\
  79,ff,ff,ff,ff,c8,fe,12,00,24,3c,46,00,00,00,8f,00,00,00,00,00,10,00,00,00,\
  00,00,00,00,e0,3f,4a,00,00,00,40,00,01,00,00,00,00,00,00,00,00,00,00,00,28,\
  ff,12,00,01,00,00,00,20,57,8f,00,ff,ff,ff,ff,34,ff,12,00,1b,3b,46,00,0b,00,\
  00,00,08,3b,46,00,0b,00,00,00
"SocketConnect"=dword:00000001
"HTTPConnect"=dword:00000001
"XDMCPConnect"=dword:00000000
"AutoPortSelect"=dword:00000001
"InputsEnabled"=dword:00000001
"LocalInputsDisabled"=dword:00000000
"IdleTimeout"=dword:00000000
"QuerySetting"=dword:00000004
"QueryTimeout"=dword:0000000a
"QueryAccept"=dword:00000001
"LockSetting"=dword:00000000
"RemoveWallpaper"=dword:00000001
"Password"=hex:passwordhex
Our problem is solved :)
Mr Schnabel

Post by Mr Schnabel »

I've tried that but it doesn't work :-((( any other idea?
doak wrote:Got the answer griam01

It's so somethings stupids all you have to do is copy the key's from [HKEY_CURRENT_USER\Software\ORL\WinVNC3] TO --> [HKEY_LOCAL_MACHINE\SOFTWARE\ORL\WinVNC3\Default] now it won't prompt for the password anymore !! This is my batch + reg file
[mod=494,1131463547]removed full quote to short one[/mod]
Last edited by Mr Schnabel on 2005-11-08 15:25, edited 1 time in total.
MrSchnabel

The problem still persists!

Post by MrSchnabel »

... and automated installation is still prompting for Admin Properties. :-(

Does anyone have an idea??
new guy

Same problem

Post by new guy »

I have the same problem and everything is correct with my reg file. I have noticed one thing though - my silent install works perfectly on a machine that never had a previous version of WinVNC. It only fails when they had a previous version.
bevtech
800
800
Posts: 2168
Joined: 2005-08-03 14:07
Location: Pennsylvania, United States

Post by bevtech »

new guy,
I would look to make sure that the old regristry settings are cleaned up before you do a automated install sounds like you have a bad key or setting issue from the previous version.
Bevtech

Windows XP Home, Pro SP2, Windows 2003 SBS server SP2(EN), Windows Media Center Editon 2005,Windows Vista Home Prem.,Fedora Core 6,Win9X, PChelpware Rel 1.0,
UVNC V 1.0.8.2

User not developer..;)
MrSchnabel

Post by MrSchnabel »

I've tried with a fresh installed laptop where a previous version was definitely NOT installed. So this can't be the reason.
MrSchnabel

Post by MrSchnabel »

Does anyone have an idea?
redge
1000
1000
Posts: 6797
Joined: 2004-07-03 17:05
Location: Switzerland - Geneva

Post by redge »

read vnc-related product to push your vnc server on next computers !

http://forum.ultravnc.net/viewforum.php?f=27
Last edited by redge on 2005-11-08 15:20, edited 1 time in total.
UltraVNC 1.0.9.6.1 (built 20110518)
OS Win: xp home + vista business + 7 home
only experienced user, not developer
MrSchnabel

Post by MrSchnabel »

@Redge:

Thx for your answer but all I'm trying to do is to create a silent UltraVNC installation with pre-defined settings and without any dialogue boxes or prompts. Do you have an idea to solve the described problem?
littlemuck

Post by littlemuck »

Hi there,

I got the same problem.
I want to install UVNC with a STARTSCRIPT NOT a LOGONSCRIPT!

Installation is no problem, but the password setting...

As I see that the password is stored und HKCU\Software\ORL\WINVNC3

BUT

When a startscript is used, no user is logged in. So SYSTEM user is used to install the software and when e.g. Administrator logs in, the registry settings in HKCU are not there

Another interresting thing is, when I set the Registry entrys in HKLM\software\orl\winvnc3 and ...\winvnc3\default, I get the error message if a user logs on

BUT

when I then start the VNC Service, it's running without problems and with the password, I used in the registry settings...
rune_schonemann
Posts: 3
Joined: 2006-01-04 14:38

MSI File

Post by rune_schonemann »

what about a msi file to use with active directory..... ?
gepeto
Posts: 3
Joined: 2005-12-29 16:16

Post by gepeto »

I wrote a guide to making an MSI with WiX and posted it on this forum..
It works #1 for me here...tried on about 70computers as of now..
AlienEclipse

Post by AlienEclipse »

I got a silent install to work which loads an acl file and all my settings including passwords without prompting you to configure the settings.

Here is my inf file: vncinstall.inf

Code: Select all

[Setup]
Lang=en
Dir=C:\Program Files\UltraVNC
Group=Accessories\System Tools\UltraVNC
NoIcons=0
Components=server,server\driver,dsm
Tasks=installservice,startservice,acl
AclFile=c:\vnc\acl.txt
PropertiesFile=c:\vnc\vncsettings.reg
Note: Under Tasks there is no 'properties' and 'cleanreg'. This is the key to getting it to work. Also you need to have absolute paths to your reg settings and ACL file. (Haven't tested with using variables, e.g. %SYSTEMROOT%)

Here is my batch install script:

Code: Select all

echo Installing UltraVNC 1.0.1
start /wait c:\vnc\UltraVNC-101-Setup.exe /verysilent /loadinf="c:\vnc\vncinstall.inf"
ACL File: (optional)
After adding your list of MS Logon users in UltraVNC. Use the MSLogonACL.exe tool in the program folder to create the ACL.txt file.
HOW: At command prompt navigate to your UltraVNC install path e.g.
C:\Program Files\UltraVNC\

Run the tool with the following commands:

MSLogonACL /e C:\vnc\ACL.txt

This will create the ACL file you need.
This is my file.

Code: Select all

allow	0x00000003	"..\Domain Admins"
allow	0x00000003	..\scl
The vncsettings.reg file is just a registry export from
[HKEY_LOCAL_MACHINE\SOFTWARE\ORL]

I hope this helps anyone trying to do a unattended install.
Post Reply