tis-autodesk-dwg-trueview

24.2.153.0-2
View DWG files or convert them to work with older versions of AutoCAD software
4937 downloads
Download
See build result See VirusTotal scan
tis-autodesk-dwg-trueview icon
  • package : tis-autodesk-dwg-trueview
  • name : DWG TrueView
  • version : 24.2.153.0-2
  • categories : Utilities,Media
  • maintainer : WAPT Team,Tranquil IT,Gaëtan SEGAT,Clément BAZIRET
  • editor : Autodesk
  • licence : proprietary_free,wapt_public
  • locale : all
  • target_os : windows
  • impacted_process : dwgviewr
  • architecture : x64
  • signature_date : 2023-11-12 17:02
  • size : 1.16 Go
  • installed_size : 936.20 Mo
  • homepage : https://www.autodesk.fr/viewers
  • depends :
package           : tis-autodesk-dwg-trueview
version           : 24.2.153.0-2
architecture      : x64
section           : base
priority          : optional
name              : DWG TrueView
categories        : Utilities,Media
maintainer        : WAPT Team,Tranquil IT,Gaëtan SEGAT,Clément BAZIRET
description       : View DWG files or convert them to work with older versions of AutoCAD software
depends           : tis-dotnetfx,tis-vcredist,tis-dotnet7
conflicts         : 
maturity          : PROD
locale            : all
target_os         : windows
min_wapt_version  : 2.3
sources           : https://www.autodesk.fr/viewers
installed_size    : 936198353
impacted_process  : dwgviewr
description_fr    : Affichez les fichiers DWG ou convertissez-les pour travailler avec les anciennes versions du logiciel AutoCAD
description_pl    : Przeglądaj pliki DWG lub konwertuj je do pracy ze starszymi wersjami oprogramowania AutoCAD
description_de    : DWG-Dateien anzeigen oder konvertieren, um mit älteren Versionen von AutoCAD-Software zu arbeiten
description_es    : Visualice archivos DWG o conviértalos para trabajar con versiones anteriores del software AutoCAD
description_pt    : Ver ficheiros DWG ou convertê-los para trabalhar com versões mais antigas do software AutoCAD
description_it    : Visualizzare i file DWG o convertirli per lavorare con le versioni precedenti di AutoCAD
description_nl    : DWG-bestanden bekijken of converteren om met oudere versies van AutoCAD-software te werken
description_ru    : Просмотр файлов DWG или их преобразование для работы с более старыми версиями программы AutoCAD
audit_schedule    : 
editor            : Autodesk
keywords          : 3D,AutoCAD,Revit,Fusion 360,3ds Max,BIM 360,Civil 3D
licence           : proprietary_free,wapt_public
homepage          : https://www.autodesk.fr/viewers
package_uuid      : 654a9cbc-df48-425c-95a3-43b826f4d2a3
valid_from        : 
valid_until       : 
forced_install_on : 
changelog         : 
min_os_version    : 10.0
max_os_version    : 
icon_sha256sum    : ed6088fcc162008d7c4e086bce6e355dca66e709154bfa38079ef5a3c7b4409f
signer            : Tranquil IT
signer_fingerprint: 8c5127a75392be9cc9afd0dbae1222a673072c308c14d88ab246e23832e8c6bb
signature         : agTD39hjBqW/yeWiA0h1FZQSTGX7xyB/OislDbGhTWD7ofrMXtV+xEEeDjgQXTv7g7vZ9NIirBG75AHlmy4orn3BSWTTGSV7/UwWXda94Q7wpoNQDF/ZH4F3+K4ivfwKoSmYx7YuPSTK6+YlNhZkqdG2ZVB8DqPV22CFBQY651qN9xLGt9WFjLRzFPkROlmlWHhAgrUwD4jtZFjhWBnllQrdvDNFZ7GND5EDD9gmB1okSoFr16KL1vWK+KV1m8RZaFta4YljmSXJ9oqgonAmSte1qKwlSwrTwQylBqdn42iXT8QyAcRSSb4eaAHuwwmiU6+BrM8Stuzwjt4YjnnKFA==
signature_date    : 2023-11-12T17:02:34.439965
signed_attributes : package,version,architecture,section,priority,name,categories,maintainer,description,depends,conflicts,maturity,locale,target_os,min_wapt_version,sources,installed_size,impacted_process,description_fr,description_pl,description_de,description_es,description_pt,description_it,description_nl,description_ru,audit_schedule,editor,keywords,licence,homepage,package_uuid,valid_from,valid_until,forced_install_on,changelog,min_os_version,max_os_version,icon_sha256sum,signer,signer_fingerprint,signature_date,signed_attributes
# -*- coding: utf-8 -*-
from setuphelpers import *

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

"""

app_uninstallkey = "{90724C52-B524-362B-ABEA-A47B4B045A1A}"


def install():
    # Declaring local variables
    bin_name = glob.glob("DWGTrueView_*_French_64bit_dlm.sfx.exe")[0]
    dir_path = bin_name.split(".sfx.exe")[0]

    # Extract the software
    print(f"Extracting content from: {bin_name}")
    if isdir(dir_path):
        remove_tree(dir_path)
    run(f'{bin_name} -suppresslaunch -d "{os.getcwd()}"')

    # Getting setup.exe path
    install_bin_name = glob.glob(makepath(dir_path, "Setup.exe"))[0]

    # Installing software
    install_exe_if_needed(
        install_bin_name,
        silentflags="-q",
        key=app_uninstallkey,
        min_version=control.get_software_version(),
        timeout=2700,
    )

    silent_uninstall_cmd = f'"{makepath(programfiles, "Autodesk", "AdoDIS", "V1", "Installer.exe")}" -i uninstall -q -m {makepath(programdata, "Autodesk", "ODIS", "metadata", app_uninstallkey, "bundleManifest.xml")}'

    # Add a silent uninstall command to the registry
    register_uninstall(app_uninstallkey, quiet_uninstall_string=silent_uninstall_cmd)
# -*- coding: utf-8 -*-
from setuphelpers import *
import os
import sys


def update_package():
    # Declaring local variables
    package_updated = False
    proxies = get_proxies()
    if not proxies:
        proxies = get_proxies_from_wapt_console()
    version = control.get_software_version()
    url = "https://www.autodesk.fr/viewers"

    # Deleting binaries
    remove_outdated_binaries("*")

    # Importing Selenium using package tis-wapt-selenium
    wapt_selenium_dir = os.sep.join([sys.executable.rsplit(os.path.sep, 1)[0].replace("/bin", "").replace("\\Scripts", ""), "selenium"])
    driver_path = makepath(wapt_selenium_dir, "chromedriver.exe")
    sys.path.insert(0, wapt_selenium_dir)
    from selenium import webdriver
    from selenium.webdriver.chrome.options import Options
    from selenium.webdriver.chrome.service import Service
    from selenium.webdriver.common.by import By

    # Selenium WebDriver initialization
    driver_options = Options()
    driver_options.add_argument("--lang=en-us")
    driver_options.add_argument("--disable-notifications")
    driver_options.add_argument("--safebrowsing-disable-download-protection")
    driver_options.add_experimental_option(
        "prefs",
        {
            "download.default_directory": f"{basedir}",
            "download.prompt_for_download": False,
            "download.directory_upgrade": True,
            "safebrowsing_for_trusted_sources_enabled": False,
            "safebrowsing.enabled": True,
        },
    )
    driver = webdriver.Chrome(options=driver_options, service=Service(driver_path))
    driver.get(url)

    # Getting informations using Selenium
    xpath = r"/html/body/div[3]/div/div[2]/div/div/div/div[2]/div/div/div/div/div/div/div[3]/div/div[2]/div/div/div/div/div/div/div[3]/a"
    download_url = driver.find_element(By.XPATH, xpath)
    download_url = download_url.get_attribute("href")
    latest_bin = download_url.split("/")[-1].split("?")[0]

    print("Download URL is: %s" % download_url)
    if not isfile(latest_bin):
        print("Downloading: %s" % latest_bin)
        wget(download_url, latest_bin, proxies=proxies)
    else:
        print("Binary is present: %s" % latest_bin)

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

    # Validating or not update-package-sources
    return package_updated
20991eec42bd700b3ad432bccdc901ae0038697f7ccc81f80bc60198bb8233e4 : setup.py
 : __pycache__
4e7835ea7f5afb14d548728b304183285427ea4fd494b5663630bf1a44dd1801 : update_package.py
ed6088fcc162008d7c4e086bce6e355dca66e709154bfa38079ef5a3c7b4409f : WAPT/icon.png
a5a97261381e1d0ad46ee15916abec9c2631d0201f5cc50ceb0197a165a0bbbf : WAPT/certificate.crt
7cf2c92a98410e43a8d6cb867d0d149e759e03ed22581f44e48c9adbbbc16e6c : WAPT/changelog.txt
555d7afb6e370792c0bef940f960837c834c7e24b829f2389136c07396395879 : luti.json
bdc83b8a6a768c571056866719ef33011b765238d5f97ec98a4ac43a0e248119 : DWGTrueView_2023_French_64bit_dlm.sfx.exe
ce9bf45714d052dc6278c4528c441deb5c4c7d3ab6cb90d49f7f5043f919251c : WAPT/control
24.1.154.0
===
Improve code
Add update package
24.2.72.0
===
Update version
Add icon