Issue with some autodesk apps
I have a requirement from a client that is heavily invested in multiple Autodesk products. They are removing any Autodesk app that is earlier than 2024.
I've hit a few issues where Uninstall-ADTApplication is unable to find the file that its trying to uninstall.
[Install] :: Found installed application [Autodesk DWG TrueView 2021 - English 24.0.47.0]. Get-ADTApplication 31/03/2026 09:24:11 8692 (0x21F4)
[Install] :: Found installed application [DWG TrueView 2021 - English 24.0.47.0]. Get-ADTApplication 31/03/2026 09:24:11 8692 (0x21F4)
[Install] :: Bypassing Show-ADTInstallationProgress [Mode: Silent]. Status message: Application Uninstallation in progress Show-ADTInstallationProgress 31/03/2026 09:24:11 8692 (0x21F4)
[Install] :: Getting information for installed applications... Get-ADTApplication 31/03/2026 09:24:11 8692 (0x21F4)
[Install] :: Found installed application [Autodesk DWG TrueView 2021 - English 24.0.47.0]. Get-ADTApplication 31/03/2026 09:24:11 8692 (0x21F4)
[Install] :: Removing EXE application [Autodesk DWG TrueView 2021 - English 24.0.47.0]. Uninstall-ADTApplication 31/03/2026 09:24:12 8692 (0x21F4)
[Install] :: Preparing to execute process [C:\Program Files\Autodesk\DWG TrueView 2021]... Start-ADTProcess 31/03/2026 09:24:12 8692 (0x21F4)
[Install] :: Checking to see if mutex [Global\_MSIExecute] is available. Wait up to [10 minute(s)] for the mutex to become available. Test-ADTMutexAvailability 31/03/2026 09:24:12 8692 (0x21F4)
[Install] :: Mutex [Global\_MSIExecute] is available for an exclusive lock. Test-ADTMutexAvailability 31/03/2026 09:24:12 8692 (0x21F4)
[Install] :: Working Directory is [C:\WINDOWS\IMECache\a2abe27c-6a5e-4d9c-a3ef-26ed852e30a3_9\Files]. Start-ADTProcess 31/03/2026 09:24:13 8692 (0x21F4)
[Install] :: Executing ["C:\Program Files\Autodesk\DWG TrueView 2021" - English\Setup\en-us\Setup\Setup.exe /P {28B89EEF-4128-0409-0100-CF3F3A09B77D} /M AOEM /language en-US -q]... Start-ADTProcess 31/03/2026 09:24:13 8692 (0x21F4)
[Install] :: Error occurred while attempting to start the specified process.
Error Record:
-------------
Message : Exception calling "LaunchAsync" with "1" argument(s): "The system cannot find the file specified.
The system cannot find the file specified.
"
InnerException : System.IO.FileNotFoundException: The system cannot find the file specified.
The system cannot find the file specified.
at PSADT.LibraryInterfaces.Kernel32.CreateProcess(String lpApplicationName, Span`1& lpCommandLine, Nullable`1 lpProcessAttributes, Nullable`1 lpThreadAttributes, BOOL bInheritHandles, PROCESS_CREATION_FLAGS dwCreationFlags, SafeEnvironmentBlockHandle lpEnvironment, String lpCurrentDirectory, STARTUPINFOW& lpStartupInfo, PROCESS_INFORMATION& lpProcessInformation) in D:\a\PSAppDeployToolkit\PSAppDeployToolkit\src\PSADT\PSADT\LibraryInterfaces\Kernel32.cs:line 281
at PSADT.ProcessManagement.ProcessManager.LaunchAsync(ProcessLaunchInfo launchInfo) in D:\a\PSAppDeployToolkit\PSAppDeployToolkit\src\PSADT\PSADT\ProcessManagement\ProcessManager.cs:line 0
at CallSite.Target(Closure , CallSite , Type , Object )
FullyQualifiedErrorId : FileNotFoundException,Start-ADTProcess
ScriptStackTrace : at Start-ADTProcess<Process>, C:\WINDOWS\IMECache\a2abe27c-6a5e-4d9c-a3ef-26ed852e30a3_9\PSAppDeployToolkit\PSAppDeployToolkit.psm1: line 22246
at Uninstall-ADTApplication<Process>, C:\WINDOWS\IMECache\a2abe27c-6a5e-4d9c-a3ef-26ed852e30a3_9\PSAppDeployToolkit\PSAppDeployToolkit.psm1: line 24967
at Install-ADTDeployment, C:\WINDOWS\IMECache\a2abe27c-6a5e-4d9c-a3ef-26ed852e30a3_9\Invoke-AppDeployToolkit.ps1: line 264
at <ScriptBlock>, C:\WINDOWS\IMECache\a2abe27c-6a5e-4d9c-a3ef-26ed852e30a3_9\Invoke-AppDeployToolkit.ps1: line 375
at <ScriptBlock>, <No file>: line 1
PositionMessage : At C:\WINDOWS\IMECache\a2abe27c-6a5e-4d9c-a3ef-26ed852e30a3_9\PSAppDeployToolkit\PSAppDeployToolkit.psm1:24967 char:25
+ ... & $Script:CommandTable.'Start-ADTProcess' @sapParams -Err ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Start-ADTProcess 31/03/2026 09:24:13 8692 (0x21F4)
[Install] :: Exception calling "LaunchAsync" with "1" argument(s): "The system cannot find the file specified.
The system cannot find the file specified.
"
Error Record:
-------------
Message : Exception calling "LaunchAsync" with "1" argument(s): "The system cannot find the file specified.
The system cannot find the file specified.
"
InnerException : System.IO.FileNotFoundException: The system cannot find the file specified.
The system cannot find the file specified.
at PSADT.LibraryInterfaces.Kernel32.CreateProcess(String lpApplicationName, Span`1& lpCommandLine, Nullable`1 lpProcessAttributes, Nullable`1 lpThreadAttributes, BOOL bInheritHandles, PROCESS_CREATION_FLAGS dwCreationFlags, SafeEnvironmentBlockHandle lpEnvironment, String lpCurrentDirectory, STARTUPINFOW& lpStartupInfo, PROCESS_INFORMATION& lpProcessInformation) in D:\a\PSAppDeployToolkit\PSAppDeployToolkit\src\PSADT\PSADT\LibraryInterfaces\Kernel32.cs:line 281
at PSADT.ProcessManagement.ProcessManager.LaunchAsync(ProcessLaunchInfo launchInfo) in D:\a\PSAppDeployToolkit\PSAppDeployToolkit\src\PSADT\PSADT\ProcessManagement\ProcessManager.cs:line 0
at CallSite.Target(Closure , CallSite , Type , Object )
FullyQualifiedErrorId : FileNotFoundException,Uninstall-ADTApplication
ScriptStackTrace : at Start-ADTProcess<Process>, C:\WINDOWS\IMECache\a2abe27c-6a5e-4d9c-a3ef-26ed852e30a3_9\PSAppDeployToolkit\PSAppDeployToolkit.psm1: line 22246
at Uninstall-ADTApplication<Process>, C:\WINDOWS\IMECache\a2abe27c-6a5e-4d9c-a3ef-26ed852e30a3_9\PSAppDeployToolkit\PSAppDeployToolkit.psm1: line 24967
at Install-ADTDeployment, C:\WINDOWS\IMECache\a2abe27c-6a5e-4d9c-a3ef-26ed852e30a3_9\Invoke-AppDeployToolkit.ps1: line 264
at <ScriptBlock>, C:\WINDOWS\IMECache\a2abe27c-6a5e-4d9c-a3ef-26ed852e30a3_9\Invoke-AppDeployToolkit.ps1: line 375
at <ScriptBlock>, <No file>: line 1
PositionMessage : At C:\WINDOWS\IMECache\a2abe27c-6a5e-4d9c-a3ef-26ed852e30a3_9\Invoke-AppDeployToolkit.ps1:264 char:13
+ Uninstall-ADTApplication -Name $App -ApplicationType EXE ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Uninstall-ADTApplication 31/03/2026 09:24:14 8692 (0x21F4)
[Install] :: An unhandled error within [Invoke-AppDeployToolkit.ps1] has occurred.
Error Record:
-------------
Message : Exception calling "LaunchAsync" with "1" argument(s): "The system cannot find the file specified.
The system cannot find the file specified.
"
InnerException : System.IO.FileNotFoundException: The system cannot find the file specified.
The system cannot find the file specified.
at PSADT.LibraryInterfaces.Kernel32.CreateProcess(String lpApplicationName, Span`1& lpCommandLine, Nullable`1 lpProcessAttributes, Nullable`1 lpThreadAttributes, BOOL bInheritHandles, PROCESS_CREATION_FLAGS dwCreationFlags, SafeEnvironmentBlockHandle lpEnvironment, String lpCurrentDirectory, STARTUPINFOW& lpStartupInfo, PROCESS_INFORMATION& lpProcessInformation) in D:\a\PSAppDeployToolkit\PSAppDeployToolkit\src\PSADT\PSADT\LibraryInterfaces\Kernel32.cs:line 281
at PSADT.ProcessManagement.ProcessManager.LaunchAsync(ProcessLaunchInfo launchInfo) in D:\a\PSAppDeployToolkit\PSAppDeployToolkit\src\PSADT\PSADT\ProcessManagement\ProcessManager.cs:line 0
at CallSite.Target(Closure , CallSite , Type , Object )
FullyQualifiedErrorId : FileNotFoundException,Uninstall-ADTApplication
ScriptStackTrace : at Start-ADTProcess<Process>, C:\WINDOWS\IMECache\a2abe27c-6a5e-4d9c-a3ef-26ed852e30a3_9\PSAppDeployToolkit\PSAppDeployToolkit.psm1: line 22246
at Uninstall-ADTApplication<Process>, C:\WINDOWS\IMECache\a2abe27c-6a5e-4d9c-a3ef-26ed852e30a3_9\PSAppDeployToolkit\PSAppDeployToolkit.psm1: line 24967
at Install-ADTDeployment, C:\WINDOWS\IMECache\a2abe27c-6a5e-4d9c-a3ef-26ed852e30a3_9\Invoke-AppDeployToolkit.ps1: line 264
at <ScriptBlock>, C:\WINDOWS\IMECache\a2abe27c-6a5e-4d9c-a3ef-26ed852e30a3_9\Invoke-AppDeployToolkit.ps1: line 375
at <ScriptBlock>, <No file>: line 1
PositionMessage : At C:\WINDOWS\IMECache\a2abe27c-6a5e-4d9c-a3ef-26ed852e30a3_9\Invoke-AppDeployToolkit.ps1:264 char:13
+ Uninstall-ADTApplication -Name $App -ApplicationType EXE ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Invoke-AppDeployToolkit.ps1 31/03/2026 09:24:14 8692 (0x21F4)
When i am querying the app on that machine Using Get-ADTapplication i can see the UninstallFilePath is split incorrectly.
DisplayName : Autodesk DWG TrueView 2021 - English
DisplayVersion : 24.0.172.0
UninstallString : C:\Program Files\Autodesk\DWG TrueView 2021 - English\Setup\en-us\Setup\Setup.exe /P
{28B89EEF-4128-0409-0100-CF3F3A09B77D} /M AOEM /language en-US
UninstallStringFilePath : C:\Program Files\Autodesk\DWG TrueView 2021
UninstallStringArgumentList : {-, English\Setup\en-us\Setup\Setup.exe, /P, {28B89EEF-4128-0409-0100-CF3F3A09B77D}...}
The UninstallString Path should be
"C:\Program Files\Autodesk\DWG TrueView 2021 - English\Setup\en-us\Setup\Setup.exe"
and not
"C:\Program Files\Autodesk\DWG TrueView 2021"