
R"""Changing start mode of a service and changing his running status accordingly # Validating or not update-package-sourcesĭef set_service_start_mode(service_name, start_mode, change_state=True): Print("Software version updated (from: %s to: %s)" % (control.get_software_version(), Version(version)))Ĭontrol.version = "%s-%s" % (Version(version), ("-", 1)) If uninstall Version(control.get_software_version()): # Uninstalling older versions of the softwareįor uninstall in installed_softwares(name=r"\bNoMachine\b"): Package_version = control.get_software_version()īin_name = glob.glob("*%s*.exe" % bin_contains)

Node_cfg_file = makepath(programfiles32, "NoMachine", "etc", "node.cfg") Server_cfg_file = makepath(programfiles32, "NoMachine", "etc", "server.cfg") Silent_args = '/usbinstall="0" /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-' # Silent # '/usbinstall="0" /silent' # Semi-silent # Declaring global variables - Warnings: 1) WAPT context is only available in package functions 2) Global variables are not persistent between calls Usable WAPT package functions: install(), uninstall(), session_setup(), audit(), update_package()

maintainer : WAPT Team,Tranquil IT,Jimmy PELÉ.
