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

Can silent install, load inf, without .reg properties?

Post Reply
lost_guy
Posts: 5
Joined: 2006-11-21 20:16

Can silent install, load inf, without .reg properties?

Post by lost_guy »

Hello all, I'm not new to VNC but UVNC is something I've never used before. With that said, I'm trying to configure an installation of UVNC that is fully automated. With the help of [topic=7014][/topic] I was able to configure a Ultra VNC 1.02 installation to load the proper .inf file, and silently install just fine. Toward the end of the OP's instruction, they say to add the following line to the .inf used for installation:

PropertiesFile=c:\pathtoacl\someregfile.reg

where the .reg is an export of the key

hkey_local_machine > software > ORL

I've verified the export as including all the options I have pre-configured. Problem is, when I run ultravnc-102-setup.exe /verysilent /loadinf=c:\someconfigfile.inf, the installation program runs through flawlessly (loading everything as the custom .inf does) but comes up with an error message stating that there is no password configured. I also notice that the program is using default options instead of my custom settings in the .reg. However, the settings specified in the .inf are all correct, as in I have deselected the vncviewer component in my initial setup and can verify that the vncviewer component is not there after I use the /loadinf=... Basically, it's not pulling or using my .reg file.

Anyone know what's going on? Do I have a syntax error? In version 1.02 does the .inf need a different line instead of "PropertiesFile=c:\..."?
Last edited by lost_guy on 2006-11-29 19:36, edited 5 times in total.
xpoirier
Posts: 1
Joined: 2006-11-28 14:30

Re: Can silent install, load inf, without .reg properties?

Post by xpoirier »

Hi

I have the same problem too, any solution around there gurus ?

thanks

Xavier
lost_guy
Posts: 5
Joined: 2006-11-21 20:16

Re: Can silent install, load inf, without .reg properties?

Post by lost_guy »

Okay, well I've figured out a semi-helpful-almost-solution. For my purposes, a Novell login script entry that points to my batch will actually take care of installation. Also necessary is a global drive letter to use in the batch. We have this, you may not. You may have other capabilities such as scripting with UNC paths, I do not with our current Novell setup.

The beginning. The problem lies in the fact that the .inf file will not load the .reg file even if you add the following to the .inf file: PropertiesFile=c:\vnconfig.reg. I tried in vain to get this to work, so I'm doing things a bit differently. Prepare for a lengthy reply.

If you can import the registry settings BEFORE you install the program, and be sure to specify (either manually in the .inf or when configuring the program using the /saveinf=c:\vnconfig.inf) not to clean old VNC registry keys, it is possible to have your settings there when installing. This will then immediately allow you to take advantage of your settings after the service has started.

What I've done, is configure a client that installs with the mirror driver, VNC server, and uses UltraVNC Server as sys service. At least, that is my understanding of what I've done. I saved that install .inf (using the /saveinf=vnconfig.inf command when installing). I configured the program to my liking under admin properties. After you've finished, this configuration is found in the hkey_local_machine > software > ORL. Export that and call it whatever, for my purposes vnconfig.reg.

Then, I created a batch file that performs three tasks. Call it vnconfig.bat, or whatever. I'll just rip the code:

@ echo off
rem This batch file will:
rem 1. Configure registry to show hidden system tray icons
rem 2. Import vnconfig.reg
rem 3. Initiate VNC installation
rem 4. Do this silently using regedit.exe /s "full path/file.reg"
rem A batch file to run the registry edit is necessary because we need our login to
rem execute this silently. By default, windows would prompt the user to accept or
rem refuse the import.

regedit.exe /s H:\Shared\UltraVNC\nohide.reg

rem /s denotes the silent import using regedit.exe, on file vnconfig.reg
rem This .reg file contains all the settings that are used in UltraVNC.

regedit.exe /s H:\Shared\UltraVNC\vnconfig.reg

rem Now we execute the program, using specific parameters.
rem /verysilent on the .exe will bypass user input, and awareness
rem /loadinf=[path] will load the program with specified modules

H:\Shared\UltraVNC\Ultra102.exe /verysilent /loadinf=H:\Shared\UltraVNC\vnconfig.inf


That's the batch, let it be known that I'm not a programmer if you didn't figure that out already.

Here's the contents of the nohide.reg

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer]
"EnableAutoTray"=dword:00000000


This will show unused systray icons, however the change won't take effect until you restart explorer.exe. We'll just have them restart the PC anyways, cause VNC needs it too (sort of). This regedit may be useful for the users because you may not want to explain how to expand the systray.

Other than that, the comments in my batch pretty much explain what it does.

Also, just to mention there appears to be more options in the registry compared to the GUI. I see on the site it is not recommended to make changes in the registry because these values/keys could change in future versions. However, to have the admin options locked down, I'll take such a risk.

Something I'm still playing around with is some sort of error checking for the existence of the \Program Files\UltraVNC directory. If I can, I don't want this thing executed more than once. If anyone has a clue how to do this, send me a PM.

Any questions or comments please post a reply. I'll be checking on this post for about another week.
Last edited by lost_guy on 2006-11-29 19:35, edited 1 time in total.
ZahurKho
Posts: 1
Joined: 2015-06-15 17:11

Re: Can silent install, load inf, without .reg properties?

Post by ZahurKho »

Hello,
1: First download UltraVNC_1_2_06_X64_Setup.exe
(http://www.uvnc.com/downloads/ultravnc.html)

2: Creat a txt file name ultravnc.txt, copy the below in it then rename it to ultravnc.inf

[Setup]
Lang=fr
Dir=C:\Program Files (x86)\uvnc bvba\UltraVNC
Group=UltraVNC
NoIcons=0
SetupType=custom
Components=ultravnc_server
Tasks=installservice,startservice


3: Creat a txt file name UltraVNC_Setuptxt, copy the below in it then rename it to UltraVNC_Setup.bat (source_folder may be also c:, d:, \\your server path etc..)

@echo off
\\Source_folder\UltraVNC_1_2_06_X64_Setup.exe /verysilent /loadinf=\\Source_folder\ultravnc.inf
xcopy "\\Source_folder\ultravnc.ini" "C:\Program Files (x86)\uvnc bvba\UltraVNC\ultravnc.ini" /Y
exit

4: By only double clik on the bat file the setup is done, and the service is on.
No reg file is needed what so ever
Cheers Zahur (Fantome)
jpf
Posts: 1
Joined: 2015-10-15 16:18

Re: Can silent install, load inf, without .reg properties?

Post by jpf »

How do I make it so that the VNC server is password protected? What do I have to include in the inf file?
Post Reply