[SOLVED] tis-ultravnc - Improved ini file installation
Published: June 29, 2026 - 5:53 PM
Good morning,
I propose a modification of the tis-ultravnc package (latest version 1.8.2.4-38).
Today's setup is as follows:
However, since version 1.8, the ini config file should no longer be placed in the installation folder but in %ProgramData%\UltraVNC\ (if installed as a service).
I propose the following setup:
Thank you for your feedback and comments
I propose a modification of the tis-ultravnc package (latest version 1.8.2.4-38).
Today's setup is as follows:
Code: Select all
# -*- coding: utf-8 -*-
from setuphelpers import *
import time
def install():
# Declaring local variables
package_version = control.get_software_version()
bin_name = glob.glob("*.exe")[0]
# Installing the software
print("Installing: %s" % bin_name)
install_exe_if_needed(
bin_name,
silentflags="/VERYSILENT /NORESTART /RESTARTEXITCODE=3010 /SP- /SUPPRESSMSGBOXES /CLOSEAPPLICATIONS /FORCECLOSEAPPLICATIONS",
key="Ultravnc2_is1",
min_version=package_version,
)
# Arbitrary server options (may be unsecure if the configuration remain untouched !)
print("WARNING: Applying Arbitrary server options (may be unsecure if the configuration remain untouched !)")
path_uvnc = makepath(install_location("Ultravnc2_is1"), "winvnc.exe")
run('"%s" -install' % (path_uvnc))
remove_file(makepath(path_uvnc, "ultravnc.ini"))
filecopyto("ultravnc.ini", makepath(install_location("Ultravnc2_is1"), "ultravnc.ini"))
run("regedit /s acl_vnc.reg")
run_notfatal("net stop uvnc_service")
time.sleep(5)
run("net start uvnc_service")I propose the following setup:
Code: Select all
# -*- coding: utf-8 -*-
from setuphelpers import *
import time
def install():
# Declaring local variables
package_version = control.get_software_version()
bin_name = glob.glob("*.exe")[0]
# Installing the software
print("Installing: %s" % bin_name)
install_exe_if_needed(
bin_name,
silentflags="/VERYSILENT /NORESTART /RESTARTEXITCODE=3010 /SP- /SUPPRESSMSGBOXES /CLOSEAPPLICATIONS /FORCECLOSEAPPLICATIONS",
key="Ultravnc2_is1",
min_version=package_version,
)
# Arbitrary server options (may be unsecure if the configuration remain untouched !)
print("WARNING: Applying Arbitrary server options (may be unsecure if the configuration remain untouched !)")
path_uvnc_dir = install_location("Ultravnc2_is1")
path_uvnc = makepath(path_uvnc_dir, "winvnc.exe")
run('"%s" -install' % (path_uvnc))
# Cleanup old config location (migration from pre-1.8)
remove_file(makepath(path_uvnc_dir, "ultravnc.ini"))
remove_file(makepath(path_uvnc_dir, "ultravnc.portable"))
# Copy config to new ProgramData location
path_programdata_uvnc = makepath(programdata(), "UltraVNC")
mkdirs(path_programdata_uvnc)
filecopyto("ultravnc.ini", makepath(path_programdata_uvnc, "ultravnc.ini"))
# Registering ACL
run("regedit /s acl_vnc.reg")
# Service restart
run_notfatal("net stop uvnc_service")
time.sleep(5)
run("net start uvnc_service")Thank you for your feedback and comments