Autodesk Revit Updates and Hotfix install issues

The install codes for Revit 2021/22/23/24 work and install the default version. But if you want to install updates and hotfixes where they are more than 1 and have a pre-req of a specific version, it seems to be an issue.

What options do we have here?

I have built a deployment for 2022 where I have one code for Autodesk Revit 2022.1 Update and another for Autodesk Revit 2022.1.4 Hotfix. However, the 2022.1.4 hotfix requires Revit version 2022.1 or higher to be applied before applying this update. So I have added a pre-req to install 2022.1 before this, but it’s always timing out. It did install but failed the deployment. Then I have to run the 2022.1.4 deployment again to make it work.

Can you please take a look into this:


@DarrenDK
@DimitriRodis
@Anthony_Birone

Could that be because the install took more than 40 minutes and the timeout was set to default at 30 minutes?
I will try to see after incresing that timeout window.
Also, any idea on the custom detetion script and dynamic script for Autodesk Revit installers ?

@Jason_Lang has some working custom scripts for the updates perhaps he would be willing to share them here to shows you some examples. Not sure if he has ones for Revit or not.

Otherwise if your in the MSPGeek discord server there has been some previous chatter with some examples if you search the history in the Immy channel MSPGeek

Thank you @Gav
@Jason_Lang Can you help me here if you have any details for Revit or related examples?

I got the deployment working by increasing the time-out period.
Also, I have a custom detection script built that checks for the version:

$revit = Get-Item “C:\Program Files*\Autodesk\Revit 2022\Revit.exe” -ErrorAction SilentlyContinue
if($revit) {
return $revit[0].VersionInfo.FileVersion
}
return $null

But I am facing another challenge. For instance, for the Revit 2022.1.4 update, you should have at least the 2022.1 version installed.
I have a deployment for 2022. 1 version (with the pre-requisite of a Revit 2022 install), and it does install.
However, when I try to install with 2022.1.4 and set 2022.1 as a pre-requisite, it doesn’t install 2022.1 and just checks if 2022 is present, then bypasses 2022.1 and tries 2022.1.4 and fails.

So could you help me with a logic that it should check for version and if 2022.1 is not installed, it should install it rather than bypass it?

https://help.autodesk.com/view/RVT/2022/ENU/?guid=RevitReleaseNotes_2022updates_2022_1_4_html

Is this the correct uninstall for Revit 2022:

Start-Process “C:\Program Files\Autodesk\AdODIS\V1\Installer.exe” -ArgumentList “-i uninstall -q --trigger_point system -m C:\ProgramData\Autodesk\ODIS\metadata{03BD6A4A-C858-3AD2-9353-DF2974C9918B}\bundleManifest.xml -x C:ProgramDataAutodeskODISmetadata03BD6A4A-C858-3AD2-9353-DF2974C9918B}\SetupRes\manifest.xsd” -Wait

I created a logic as per Immy Support to make a depend condition for Revit 2022 update.

This won’t work as only two versions of updates are available on the Autodesk Website.

2022.1.4 Hotfix - 22.1.40.58

2022.1 Update - 22.1.1.516

I have updated the code to be based on the same.

The 2022.1.4 Hotfix requires Revit version 2022.1 or higher before applying this update. So if the device had only the base version, the script would work. However, in the cases that I am seeing, most of the devices either have the 2022.1.1 Hotfix (22.1.10.541), the 2022.1.2 Hotfix (22.1.21.13), or the 2022.1.3 Hotfix (22.1.30.34). So, in that case, I just need to execute the 2022.1.4 Hotfix directly without any dependent conditions. If I do, it fails as the version (2022.1 Update: 22.1.1.516) is older than the above. So, I have to use two separate deployments, one with dependent features and the other directly.

Is that correct, or am I missing something here?

Hi Amanpal,

If you need to uninstall any Autodesk product completely, the uninstallers are located in the following directory C:\programdata\Autodesk\Uninstallers.

Example:

$Revit2024Uninstaller = Join-Path -Path “C:\programdata\Autodesk\Uninstallers\Autodesk Revit 2024” -ChildPath “AdskUninstallHelper.exe”
Start-Process -FilePath $Revit2024Uninstaller -Verbose -Wait

Hope it helps! :slight_smile:

1 Like

Can we make a copy of Revit Installer. I dont see the option to download the installer. Does someone has the Revit 2021 default installer with version 21.0.0.383 ?
I need to run that as a pre-req with install directory as Program Files and not %Program Files%. I am running it as a pre-req for 2021.1.9 update.
It is installing in the wildcard and need to build a custom 2021 so sot use with the install directory as Program Files.

Thanks. I was able to make the corrections.