Autodesk Revit 2023.1.2 Package

Questions about WAPT Packaging / Requests and help regarding Wapt packages.
Forum Rules
Community Forum Rules
* English support on www.reddit.com/r/wapt
* French community support is available on this forum
* Please prefix the topic title with [RESOLVED] if it is resolved.
* Please do not edit a topic that is tagged [RESOLVED]. Open a new topic referencing the old one.
* Specify the installed WAPT version, full version, and build number (2.2.1.11957 / 2.2.2.12337 / etc.) as well as the Enterprise/Discovery edition.
* Versions 1.8.2 and earlier are no longer supported. The only questions accepted regarding version 1.8.2 are related to upgrading to a supported version (2.1, 2.2, etc.).
* Specify the server OS (Linux/Windows) and version (Debian Buster/Bullseye - CentOS 7 - Windows Server 2012/2016/2019).
* Specify the OS of the administration/package creation machine and the machine with the problematic agent, if applicable (Windows 7/10/11/Debian 11/etc.).
* Avoid asking multiple questions when opening a topic, otherwise it may be ignored. If there are multiple topics, open separate topics, preferably one after the other and not all at the same time (i.e., do not spam the forum).
* Include code snippets, screenshots, and other images directly in the post. Links to Pastebin, Bitly, and other third-party sites will be systematically removed.
* As with any community forum, support is provided voluntarily by members. If you require commercial support, you can contact Tranquil IT's sales department at 02.40.97.57.55
Locked
olaplanche
Messages: 178
Registration: January 26, 2017 - 11:11

June 16, 2023 - 09:20

Good morning,

I'm sharing my package for the Revit 2023 network license.
Since version 2023, you need to create your custom installation from your Autodesk account.
:!: In my case, I created a custom image to install, not to deploy from a deployment image :!:
Once the Revit2023.exe file has been downloaded and executed, cancel the installation on the dev machine and retrieve the image folder in c:\Autodesk\{GUID} to copy it to the root of the package.

:!: The run command of the uninstall function should accept error code 1603 due to an uninstallable patch: https://learn.microsoft.com/en-us/windo ... the patches :!:

control file:

Code: Select all

depends           : wapt-vcredist2013
setup.py file:

Code: Select all

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

"""
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

def install():
    # Installing the software
    install_exe_if_needed('%s\image\Installer.exe' % basedir,silentflags="-i deploy --offline_mode --ui_mode silent -o %s\image\Collection.xml" % basedir,key="{B4E35F04-D559-35E9-AB70-E0131AF7AB5B}",min_version=control.get_software_version(),timeout=3900)
    uninstallkey.remove('{B4E35F04-D559-35E9-AB70-E0131AF7AB5B}')

def uninstall():
    # Uninstalling the software
    print('Uninstalling Autodesk Revit 2023')
    run(r'"%s\Autodesk\AdODIS\V1\Installer.exe" -i uninstall -q --trigger_point system -m C:\ProgramData\Autodesk\ODIS\metadata\{B4E35F04-D559-35E9-AB70-E0131AF7AB5B}\bundleManifest.xml -x C:\ProgramData\Autodesk\ODIS\metadata\{B4E35F04-D559-35E9-AB70-E0131AF7AB5B}\SetupRes\manifest.xsd --extension_manifest C:\ProgramData\Autodesk\ODIS\metadata\{B4E35F04-D559-35E9-AB70-E0131AF7AB5B}\setup_ext.xml --extension_manifest_xsd C:\ProgramData\Autodesk\ODIS\metadata\{B4E35F04-D559-35E9-AB70-E0131AF7AB5B}\SetupRes\manifest_ext.xsd -o C:\ProgramData\Autodesk\ODIS\metadata\{B4E35F04-D559-35E9-AB70-E0131AF7AB5B}\deploymentCollection.xml' % programfiles64,timeout=1200,accept_returncodes=[0, 3010, 1603, 1605])
    print('Uninstalling OpenStudio CLI For Revit 2023')
    run(r'"MsiExec.exe" /X{E50FE9B5-C219-45A8-B1E2-8A8AD4A02FB3} /passive')
    print('Uninstalling Autodesk Revit Unit Schemas 2023')
    run(r'"MsiExec.exe" /X{CDCC6F31-2023-4907-8E9B-D562B70697B6} /passive')
    print('Uninstalling Autodesk Identity Manager')
    run(r'"%s\Autodesk\AdskIdentityManager\uninstall.exe" --mode unattended' % programfiles64)
    print('Uninstalling Autodesk Single Sign On Component')
    run(r'"MsiExec.exe" /X{50645519-0F31-4E92-B590-C806EA1A60A4} /passive')
    print('Uninstalling REX Framework')
    run(r'"MsiExec.exe" /X{FCA7436F-424A-48A4-85E0-E3F400355279} /passive')
    print('Uninstalling Autodesk Material Library Medium Resolution Image Library 2023')
    run(r'"MsiExec.exe" /X{2ED470F3-3989-458D-AF24-8B2C4364A8CC} /passive')
    print('Uninstalling Autodesk Material Library Base Resolution Image Library 2023')
    run(r'"MsiExec.exe" /X{3B564A94-BA47-4E42-ACD6-B5C35291210B} /passive')
    print('Uninstalling Autodesk Advanced Material Library Medium Resolution Image Library 2023')
    run(r'"MsiExec.exe" /X{489B5559-69A0-4165-A044-CEB510C6CBBF} /passive')
    print('Uninstalling Autodesk Material Library 2023')
    run(r'"MsiExec.exe" /X{8E133591-B0FD-4DB0-B60E-FB593CAF72B0} /passive')
    print('Uninstalling Autodesk Advanced Material Library Low Resolution Image Library 2023')
    run(r'"MsiExec.exe" /X{93A8D797-F224-4238-8E87-EE673E0BAC8A} /passive')
    print('Uninstalling Autodesk Material Library Low Resolution Image Library 2023')
    run(r'"MsiExec.exe" /X{9E728FC7-CC88-4CBD-A1A2-094E27F05EF1} /passive')
    print('Uninstalling Autodesk Advanced Material Library Base Resolution Image Library 2023')
    run(r'"MsiExec.exe" /X{C90A4CC0-0862-4FC3-A07F-31F903659946} /passive')
    print('Uninstalling Microsoft SQL Server 2014 Express LocalDB')
    run(r'"MsiExec.exe" /X{BAF67399-85CD-4555-9B49-1F80EB921C35} /quiet')
    print('Uninstalling Autodesk Desktop Licensing Service')
    service_stop("AdskLicensingService")
    run(r'"%s\Common Files\Autodesk Shared\AdskLicensing\uninstall.exe" --mode unattended' % programfiles32)
    print('Uninstalling Autodesk Genuine Service')
    remove_file('%s\Autodesk\Adlm\ProductInformation.pit' % programdata) # Mandatory for uninstalling Autodesk Genuine Service crap software
    remove_file('%s\config\systemprofile\AppData\Local\Autodesk\Genuine Autodesk Service\id.dat' % system32()) # Mandatory for uninstalling Autodesk Genuine Service crap software
    run(r'"MsiExec.exe" /X{AE03BA43-D561-4555-BAAE-D8B1D59AD03A} /quiet')
    print('Uninstalling Autodesk ODIS Installer')
    run(r'"%s\Autodesk\AdODIS\V1\RemoveODIS.exe" --mode unattended' % programfiles64)
- Installed WAPT version: 2.6.0.16795 Enterprise
- Server OS: Linux / Debian Bookworm
- Administration/package creation machine OS: Windows 10
Locked