tis-nomachine-server

7.8.2-7
NoMachine is a cross-platform remote desktop program developed by NoMachine S.à r.l. The software provides access to remote desktops and applications running on Linux, Windows, Mac and Linux ARM devices
15 downloads
Download
View on luti logo
tis-nomachine-server icon

  Description 

  • package : tis-nomachine-server
  • version : 7.8.2-7
  • architecture : all
  • categories : Utilities
  • maintainer : WAPT Team,Tranquil IT,Jimmy PELÉ
  • description : NoMachine is a cross-platform remote desktop program developed by NoMachine S.à r.l. The software provides access to remote desktops and applications running on Linux, Windows, Mac and Linux ARM devices
  • locale : all
  • target_os : windows
  • min_wapt_version : 2.0
  • sources : https://www.nomachine.com/download
  • installed_size : 144113664
  • impacted_process : nxclient,nxagent,nxauth,nxclient,nxd,nxdisplay,nxdx32,nxdx64,nxexec,nxfs,nxnode,nxplayer,nxserver,nxservice32,nxservice64
  • description_fr :
  • description_pl :
  • description_de :
  • description_es :
  • description_pt :
  • description_it :
  • description_nl :
  • description_ru :
  • editor : NoMachine S.à r.l.
  • licence : Proprietary,GPL
  • signature_date : 2022-03-15T22:13:08.792162
  • Homepage : https://www.nomachine.com/
  • Conflicts :

  Setup.py 

# -*- coding: utf-8 -*-
from setuphelpers import *
import time

r"""
Usable WAPT package functions: install(), uninstall(), session_setup(), audit(), update_package()

"""
# Declaring global variables - Warnings: 1) WAPT context is only available in package functions; 2) Global variables are not persistent between calls
bin_contains = "nomachine_"
silent_args = '/usbinstall="0" /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-'  # Silent # '/usbinstall="0" /silent' # Semi-silent
app_uninstallkey = "NoMachine_is1"
app_name = "NoMachine"
server_cfg_file = makepath(programfiles32, "NoMachine", "etc", "server.cfg")
node_cfg_file = makepath(programfiles32, "NoMachine", "etc", "node.cfg")


def install():
    # Declaring local variables
    package_version = control.get_software_version()
    bin_name = glob.glob("*%s*.exe" % bin_contains)[0]

    # Uninstalling older versions of the software
    for uninstall in installed_softwares(name=r"\bNoMachine\b"):
        if uninstall["version"] < control.get_software_version() or force:
            print("Removing: %s (%s)" % (uninstall["name"], uninstall["version"]))
            run(uninstall_cmd(uninstall["key"]))
            wait_uninstallkey_absent(uninstall["key"])
            time.sleep(60)

    # Installing the software
    print("Installing: %s" % bin_name)
    install_exe_if_needed(
        bin_name,
        silentflags=silent_args,
        key=app_uninstallkey,
        min_version=package_version,
        timeout=600,
    )

    # Configuring server.cfg default preferences
    if isfile(server_cfg_file):
        file = open(server_cfg_file, "r")
        old_data = file.read()
        file.close()

        data = old_data
        data = data.replace("#UpdateFrequency 172800", "UpdateFrequency 0")

        new_data = data
        if not old_data == new_data:
            print("Writing configuration file with minimum instrusion parameters (%s)" % server_cfg_file)
            file = open(server_cfg_file, "w")
            file.write(data)
            file.close()


def update_package():
    # Declaring local variables
    result = False
    proxies = get_proxies()
    if not proxies:
        proxies = get_proxies_from_wapt_console()
    app_name = control.name
    sub_bin_name = bin_contains + "%s.exe"
    url = "https://www.nomachine.com/download/download&id=8"

    # Getting latest version from official sources
    print("URL used is: %s" % url)
    for bs_search in bs_find_all(url, "a", "href", "javascript:void(0)", proxies=proxies):
        if bin_contains in bs_search["onclick"]:
            latest_bin = bs_search["onclick"].split("'")[1]
            version = latest_bin.split("_")[1]
            download_url = bs_search["onclick"].split("'")[-2]
            break

    print("Latest %s version is: %s" % (app_name, version))
    print("Download url is: %s" % download_url)

    # Downloading latest binaries
    if not isfile(latest_bin):
        print("Downloading: %s" % latest_bin)
        wget(download_url, latest_bin, proxies=proxies)

        # Checking version from file
        version_from_file = get_version_from_binary(latest_bin)
        if Version(version) != Version(version_from_file) and version_from_file != "":
            print("Changing version to the version number of the binary (from: %s to: %s)" % (version, version_from_file))
            os.rename(latest_bin, sub_bin_name % version_from_file)
            version = version_from_file
        else:
            print("Binary file version correspond to online version")

    # Changing version of the package
    if Version(version) > Version(control.get_software_version()):
        print("Software version updated (from: %s to: %s)" % (control.get_software_version(), Version(version)))
        result = True
    else:
        print("Software version up-to-date (%s)" % Version(version))
    control.version = "%s-%s" % (Version(version), control.version.split("-", 1)[-1])
    # control.set_software_version(version)
    control.save_control_to_wapt()

    # Deleting outdated binaries
    remove_outdated_binaries(version)

    # Validating update-package-sources
    return result

										

  Changelog 



Changelog software url : https://www.nomachine.com/softwareupdates



No changelog.txt.
									
  manifest.sha256