This howto details how to export a registry file from any Windows 9x and NT/2000/XP system. You should follow this howto if you plan to roll out VNC with a custom setup program, with VNC's own installer or by a manual install.
You should not use this how to to save your details for fastpush. That requires a different technique.
Physical access to the machine
A working install of WinVNC (you did test it didn't you?
)
I'm not going to repeat what's on the VNC website about all the little tricks you can do with registry keys. Briefly, these include adding access limitations by IP address, displaying a warning panel, (dis)allowing the properties' box, (dis)allowing closing VNC, logging the current user off on disconnect, etc.
Instead, here's a link to the AT&T website that has a list of the numerous registry keys you can use (do a text find on "WinVNC - Advanced Settings). It's also well worth reading the VNC mailing list as these topics have been covered again and again.
On a personal note, I strongly recommend that you don't allow users to view the property panel or let them shutdown the service. If you were really paranoid, you could cacl the registry to only allow admin and system access to the key (but that's only going to work on NT, 2000 or XP).
I suppose I should warn you that messing about with the registry may screw your PC up. I strongly suggest you test any work out on a beta machine, but we're all grown up boys and girls so I'll leave that executive decision to you.
Load up regedit (not regedt32) and have a look under Hkey Local Machine\Software\Orl\Winvnc3. There should be a key marked default. This is where WinVNC keeps it default password (albeit in an encrypted form). Click the folder to highlight it and then choose REGISTRY and then EXPORT REGISTRY FILE. Save this somewhere safe and call it defaultvnc.reg.
This is all you really need and you can jump on to step 4. However, if you want to have some application settings set ready to go, then you'll need to follow the proceduce below:
VNC creates a list of preferences for all the applications you might run. Now, as far as I know, you shouldn't need to make a copy of these keys as they are created on the fly. If for some reason you want to, you can find them under Hkey Current User\Software\ORL\VNCHooks\Application_Prefs and again you should use REGISTRY and EXPORT to save the file as appprefs.reg.
You should open this appprefs.reg file and change the key title from:
[HKEY_CURRENT_USER\Software\ORL\VNCHooks\Application_Prefs]
to:
[HKEY_USERS\.DEFAULT\Software\orl\VNCHooks\Application_Prefs]
Notice the dot "." just before the word DEFAULT. Now copy all the text apart from the REGEDIT4 part and paste the contents to the end of the defaultvnc.reg file. You can delete the appprefs.reg file as you no longer need it.
Copy the registry to your WinVNC install. Follow the howto for a manual install and just before you install the service (with the command winvnc -install), double click the reg file to import it