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
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
Rolling out UltraVNC - pre configure VNC Password
Rolling out UltraVNC - pre configure VNC Password
Hello
I am in the process of rolling out ultravnc 1.0.4 or 1.0.5.
I have created a config.ini file that answers all the install questions, which I will use with the /silent switch to push out to my users, probably by SMS.
I am only installing the Server Only install, not the viewer on my clients.
Is there a command line I can add to the config.ini file I have which will pre set the VNC Password?
Any help appreciated.
I am in the process of rolling out ultravnc 1.0.4 or 1.0.5.
I have created a config.ini file that answers all the install questions, which I will use with the /silent switch to push out to my users, probably by SMS.
I am only installing the Server Only install, not the viewer on my clients.
Is there a command line I can add to the config.ini file I have which will pre set the VNC Password?
Any help appreciated.
- Rudi De Vos
- Admin & Developer
- Posts: 6863
- Joined: 2004-04-23 10:21
- Contact:
Re: Rolling out UltraVNC - pre configure VNC Password
In 105 all configs are in the ultravnc.ini file, the only thing you need to do
is to place this file in the same folder as the winvnc.exe.
You can preset all options you want, not only password.
If you want to install the server only, no drivers
you require
ultravnc.ini
winvnc.exe
schook.dll
cad.exe
hookdll.dll
zip32.dll
unzip32.dll
If you run vnc only in application mode, you can copy them where ever you want, if you want to install them as service (on Vista) it need to be somewhere in "program files"
is to place this file in the same folder as the winvnc.exe.
You can preset all options you want, not only password.
If you want to install the server only, no drivers
you require
ultravnc.ini
winvnc.exe
schook.dll
cad.exe
hookdll.dll
zip32.dll
unzip32.dll
If you run vnc only in application mode, you can copy them where ever you want, if you want to install them as service (on Vista) it need to be somewhere in "program files"
Last edited by Rudi De Vos on 2008-09-03 13:53, edited 1 time in total.
Re: Rolling out UltraVNC - pre configure VNC Password
Thank you for response.
But I want to bundle up the password within the config.ini file so when a client is pushed to install vncset.exe /verysilent /loadinf="c:\UltraVNC.inf"" it also forces the password down to the client.
I understand what you say if I simply copy the .ini file that is gernated post install to all other clients, but that is more work to have to overwrite them. Can it not be done during the install itself?
But I want to bundle up the password within the config.ini file so when a client is pushed to install vncset.exe /verysilent /loadinf="c:\UltraVNC.inf"" it also forces the password down to the client.
I understand what you say if I simply copy the .ini file that is gernated post install to all other clients, but that is more work to have to overwrite them. Can it not be done during the install itself?
- Rudi De Vos
- Admin & Developer
- Posts: 6863
- Joined: 2004-04-23 10:21
- Contact:
Re: Rolling out UltraVNC - pre configure VNC Password
Not with the default setup exe.
If you want it in a single setup you need to create your own setup exe.
1) You need to install inno setup
http://www.innosetup.com/isdl.php
ispack-5.2.3.exe
2) download the binW32 zip version of Ultravnc
http://www.uvnc.com/download
3) download the cad.exe and schook.dll and driver.zip
http://sc.uvnc.com/cad.exe
http://sc.uvnc.com/schook.dll
http://sc.uvnc.com/drivers.zip
4) extract all in the same directory
5) add your custom ultravnc.ini to that folder
6) click the INTERNAL_UltraVnc_installer_script.iss, this open inno setup
now press compile and you get your own custom installer.
No internet access needed to load the non GPL components
Ultravnc.ini is installed with installer. The script expect the drivers.zip, he just put the driver files in the uvnc folder , manual install of drivers is needed if you want to use them.
If you want it in a single setup you need to create your own setup exe.
1) You need to install inno setup
http://www.innosetup.com/isdl.php
ispack-5.2.3.exe
2) download the binW32 zip version of Ultravnc
http://www.uvnc.com/download
3) download the cad.exe and schook.dll and driver.zip
http://sc.uvnc.com/cad.exe
http://sc.uvnc.com/schook.dll
http://sc.uvnc.com/drivers.zip
4) extract all in the same directory
5) add your custom ultravnc.ini to that folder
6) click the INTERNAL_UltraVnc_installer_script.iss, this open inno setup
now press compile and you get your own custom installer.
No internet access needed to load the non GPL components
Ultravnc.ini is installed with installer. The script expect the drivers.zip, he just put the driver files in the uvnc folder , manual install of drivers is needed if you want to use them.
Re: Rolling out UltraVNC - pre configure VNC Password
Thank you , you are very helpful. However, ins tep 2) download the binW32 zip version of Ultravnc http://www.uvnc.com/download. What am I looking for what is the software name?
- Rudi De Vos
- Admin & Developer
- Posts: 6863
- Joined: 2004-04-23 10:21
- Contact:
Re: Rolling out UltraVNC - pre configure VNC Password
WIN32 UltraVNC 1.0.5 Binaries archive
Re: Rolling out UltraVNC - pre configure VNC Password
pre configuring vnc password will require you to use the vnc.ini or you can capture the settings to a .reg file import that as a part of your custom setup.
i find this method the most flexible because it can capture all your settings tweaked as required and you can also add encryption plugins with keys as pre generated keys.
i find this method the most flexible because it can capture all your settings tweaked as required and you can also add encryption plugins with keys as pre generated keys.
- Rudi De Vos
- Admin & Developer
- Posts: 6863
- Joined: 2004-04-23 10:21
- Contact:
Re: Rolling out UltraVNC - pre configure VNC Password
105 doesn't use registry... all is in ultravnc.ini
unless you put a parameter in the ini file, to tell to use the registry instead... but not tested on Vista, the virtual registry is a mess on Vista.
unless you put a parameter in the ini file, to tell to use the registry instead... but not tested on Vista, the virtual registry is a mess on Vista.
Last edited by Rudi De Vos on 2008-09-04 12:13, edited 1 time in total.
-
- 8
- Posts: 21
- Joined: 2005-10-29 12:30
- Contact:
Re: Rolling out UltraVNC - pre configure VNC Password
I'm sorry to hijack your thread, but I'm trying to do something almost exactly the same.
I would like to use Rudi De Vos' original suggestion. When he says:
Also, I can find all the above files except hookdll.dll
I would like to use Rudi De Vos' original suggestion. When he says:
Am I correct in thinking that if I copy the above files to %programfiles%\UVNC105 and then run winvnc.exe -install, winvnc.exe -startservice then we're ready to go?If you want to install the server only, no drivers
you require
ultravnc.ini
winvnc.exe
schook.dll
cad.exe
hookdll.dll
zip32.dll
unzip32.dll
Also, I can find all the above files except hookdll.dll
Re: Rolling out UltraVNC - pre configure VNC Password
@drewgraham:
That is the method that I used. I have a network shared drive that I stored all the files on and then wrote a batch file that creates the folder, copies the files, opens the ports on the firewall and then installs the service.
The -install option will install the service and then start it and if your users have admin rights on their computers this can be added to a logon script and you will never have to touch their computers.
Euro*Brew
That is the method that I used. I have a network shared drive that I stored all the files on and then wrote a batch file that creates the folder, copies the files, opens the ports on the firewall and then installs the service.
Code: Select all
@echo off
IF EXIST "%programfiles%\UltraVNC\winvnc.exe" GOTO END
cd "%programfiles%"
mkdir UltraVNC
copy "\\networkdrive\UltraVNC\ultravnc.ini" "%programfiles%\UltraVNC\ultravnc.ini"
copy "\\networkdrive\UltraVNC\unzip32.dll" "%programfiles%\UltraVNC\unzip32.dll"
copy "\\networkdrive\UltraVNC\winvnc.exe" "%programfiles%\UltraVNC\winvnc.exe"
copy "\\networkdrive\UltraVNC\zip32.dll" "%programfiles%\UltraVNC\zip32.dll"
copy "\\networkdrive\UltraVNC\cad.exe" "%programfiles%\UltraVNC\cad.exe"
copy "\\networkdrive\UltraVNC\SCHook.dll" "%programfiles%\UltraVNC\SCHook.dll"
netsh firewall set portopening protocol=TCP port=5800 name=vnc5800 mode=ENABLE profile=All
netsh firewall set portopening protocol=TCP port=5900 name=vnc5900 mode=ENABLE profile=All
cd "%programfiles%\ultravnc"
start "" "winvnc.exe" -install
END
The -install option will install the service and then start it and if your users have admin rights on their computers this can be added to a logon script and you will never have to touch their computers.
Euro*Brew
Last edited by eurobrew on 2008-10-01 19:39, edited 1 time in total.
-
- 8
- Posts: 21
- Joined: 2005-10-29 12:30
- Contact:
Re: Rolling out UltraVNC - pre configure VNC Password
Amazingly, I ended up doing almost the same today:
See [post=53181][/post]
See [post=53181][/post]
Re: Rolling out UltraVNC - pre configure VNC Password
Nice; I always wanted to know what to do with the iss file! I figured it could be used for something like this but there's so little documentation for this stuff....Rudi De Vos wrote:Not with the default setup exe.
If you want it in a single setup you need to create your own setup exe.
1) You need to install inno setup
http://www.innosetup.com/isdl.php
ispack-5.2.3.exe
2) download the binW32 zip version of Ultravnc
http://www.uvnc.com/download
3) download the cad.exe and schook.dll and driver.zip
http://sc.uvnc.com/cad.exe
http://sc.uvnc.com/schook.dll
http://sc.uvnc.com/drivers.zip
4) extract all in the same directory
5) add your custom ultravnc.ini to that folder
6) click the INTERNAL_UltraVnc_installer_script.iss, this open inno setup
now press compile and you get your own custom installer.
No internet access needed to load the non GPL components
Ultravnc.ini is installed with installer. The script expect the drivers.zip, he just put the driver files in the uvnc folder , manual install of drivers is needed if you want to use them.
I do have a few questions/concerns though...
- 1: Where, in the iss file, can one set the password that has to be set up before using the app?
Code: Select all
en.Passwd=Check set initial password...
de.Passwd=Check set initial password...
fr.Passwd=Check set initial password...
This might get fixed by the question above but I had to ask 'cause I figured placing the file in the source directory would work.
- 2: I placed the ultravnc.ini file in the source files but it didn't get dumped to the install directory like I thought it would. Then it asked me to set all that up via the settings gui. Did I misunderstand your instructions?
Code: Select all
Source: ultravnc.ini; DestDir: {app}; Components: UltraVNC_Server; Flags: restartreplace ignoreversion replacesameversion
- 3: I ran the compiled executable with the switches below. What else can I tweak in the iss file that would keep me from having to use the /loadinf=file.inf in order to install it the way I'd like? Furthermore, did they remove the /silent switch?
Code: Select all
setup.exe /silent /loadinf=config.inf
Code: Select all
[Setup]
Lang=en
Dir=C:\Program Files\UltraVNC
Group=UltraVNC
NoIcons=0
SetupType=server_silent
Components=ultravnc_server_s
Tasks=installservice,startservice
11-04-08
1626 EST
Re: Rolling out UltraVNC - pre configure VNC Password
Has there been any update on this?
I compiled a new setup.exe with the instructions above, but the custom ultravnc.ini file i placed in the directory doesnt seem to be taking effect. Infact, after the installation, that file is in its default form.
Is there a setting in the iss file that is installing a default ultravnc.ini file that we need to change in order for the custom ultravnc.ini file to work?
Thanks ahead!
I compiled a new setup.exe with the instructions above, but the custom ultravnc.ini file i placed in the directory doesnt seem to be taking effect. Infact, after the installation, that file is in its default form.
Is there a setting in the iss file that is installing a default ultravnc.ini file that we need to change in order for the custom ultravnc.ini file to work?
Thanks ahead!
Re: Rolling out UltraVNC - pre configure VNC Password
Found the issue.
Go ino the INTERNAL iss file with the installation creator tool( ispack installed )
go to "files and directories"
Go down to ultravnc.ini and double click it
Click on the component tab and check "ultravnc server silent"
( I also unchecked "replace same version" and "replace on restart" on the file tab page ).
Make sure your customized ultravnc.ini file is in the build directory
Then rebuild your installation
Here is my config file i am using when doing the installation:
My Setup command line:
Just note that i named my installer "UltraVNC_105_Setup.exe" in the iss config file.... but thats something that can be renamed.
Now i just need to figure out how to auto-install the vista driver from the driver.zip file..
sigh.
Go ino the INTERNAL iss file with the installation creator tool( ispack installed )
go to "files and directories"
Go down to ultravnc.ini and double click it
Click on the component tab and check "ultravnc server silent"
( I also unchecked "replace same version" and "replace on restart" on the file tab page ).
Make sure your customized ultravnc.ini file is in the build directory
Then rebuild your installation
Here is my config file i am using when doing the installation:
Code: Select all
[Setup]
Lang=en
Dir=C:\Program Files\UltraVNC
Group=UltraVNC
NoIcons=1
Types=server_silent
Components=UltraVNC_Server_S
Tasks=installservice,startservice
Code: Select all
\\myserver\Software\VNC\UltraVNC_105_Setup.exe /verysilent /loadinf="\\myserver\Software\VNC\ultravnc\installvista\setup.txt"
Now i just need to figure out how to auto-install the vista driver from the driver.zip file..
sigh.
Last edited by Icetoad on 2008-11-12 23:38, edited 2 times in total.