ODIS requires a string from the registry to uninstall any Autodesk applications. This makes uninstalling apps silently impossible (according to a number of posts on here at least).
I have created a solution to this. The below Powershell script will get the relevant string from the registry, strip out what is not needed and run it in CMD.
I have tested this using an admin account and the SYSTEM user on TrueView 2023,24&25. I have not yet tried other Autodesk applications but it should work in theory. Replace TrueView 2024 in the first line with whatever application you want to uninstall silently.
There might be an easier way to do this (it feels a bit hacky), but it gets the job done.
$uninstallCommand = Get-ChildItem -Path HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall, HKLM:\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall | Get-ItemProperty | Where-Object {($_.DisplayName -match "TrueView 2024") -and ($_.Publisher -match "Autodesk")} | Select-Object -Property UninstallString | Out-String -Width 500
$uninstallCommand =($uninstallCommand -split '\r?\n')[3]
$uninstallCommand = $uninstallCommand.Insert(0,"""")
$uninstallCommand = $uninstallCommand.Insert(50,'" -q')
& "cmd.exe" /c $uninstallCommand