tis-autodesk-dwg-trueview

24.2.72.0-0
View DWG files or convert them to work with older versions of AutoCAD software
0 downloads
Download
View on luti logo
tis-autodesk-dwg-trueview icon

  Description 

  • package : tis-autodesk-dwg-trueview
  • version : 24.2.72.0-0
  • architecture : x64
  • categories : Utilities,Media
  • maintainer : WAPT Team,Tranquil IT,Gaëtan SEGAT
  • description : View DWG files or convert them to work with older versions of AutoCAD software
  • locale :
  • target_os : windows
  • min_wapt_version : 2.0
  • sources : https://www.autodesk.fr/viewers
  • installed_size : 5368709120
  • impacted_process : dwgviewr
  • description_fr : Affichez les fichiers DWG ou convertissez-les pour travailler avec les anciennes versions du logiciel AutoCAD
  • description_pl :
  • description_de :
  • description_es :
  • description_pt :
  • description_it :
  • description_nl :
  • description_ru :
  • editor : Autodesk
  • licence :
  • signature_date : 2022-07-06T19:11:37.033977
  • Homepage : https://www.autodesk.fr/viewers

  Setup.py 

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

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 = "DWGTrueView_"
silentflags = "-q"
app_uninstallkey = "{9F180917-4277-3998-AFDB-C9477508D3AE}"
install_path = makepath(programfiles, "Autodesk")
silent_uninstall_cmd = (
    '"C:\\Program Files\\Autodesk\\AdODIS\\V1\\Installer.exe" -i uninstall -q -m C:\\ProgramData\\Autodesk\\ODIS\\metadata\\%s\\bundleManifest.xml'
    % app_uninstallkey
)


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

    # Skip if already installed
    if need_install(app_uninstallkey):

        # Extract the software
        run('%s -suppresslaunch -d "%s"' % (bin_name, extract_path))

        # Get setup installer path
        extract_path_version = glob.glob(r"%s\*" % extract_path)[0]
        bin_name_install = glob.glob(r"%s\*.exe" % extract_path_version)[0]

        # Installing the software
        print("Installing: %s (%s)" % (control.name, package_version))
        install_exe_if_needed(
            bin_name_install,
            silentflags=silentflags,
            key=app_uninstallkey,
            min_version=package_version,
            timeout=2700,
        )
    else:
        # Making sure uninstallkey is known
        uninstallkey.append(app_uninstallkey)

    # Add a silent uninstall command to the registry
    register_uninstall(app_uninstallkey, quiet_uninstall_string=silent_uninstall_cmd)

    # Delete extract files
    if isdir(extract_path):
        remove_tree(extract_path)

										

  Changelog 



24.1.154.0
===
Improve code
Add update package
24.2.72.0
===
Update version
Add icon
									
  manifest.sha256