V4.1.3 - Strange Issue with Revit 2026 Package

I have been beating my head against the keyboard...well not really but felt real close to it. For some reason I cannot get Revit 2026 to install properly from the PSADT toolkit. I have recreated the package from a clean new ADT template and still is has a strange error that pops up and hopefully some other pairs of eyes can help resolve it.

Error after trying to run locally via admin powershell with: .\Invoke-AppDeployToolkit.ps1

`PS C:\Users\Admin-RW\Downloads\Task Sequence Deployment> .\Invoke-AppDeployToolkit.ps1
[2026-02-10T13:55:28.7677591-06:00] [Initialization] [Open-ADTSession] [Info] :: -------------------------------------------------------------------------------
[2026-02-10T13:55:28.7687599-06:00] [Initialization] [Open-ADTSession] [Info] :: [PSAppDeployToolkit_4.1.3_EN_01] install started.
[2026-02-10T13:55:28.7697617-06:00] [Initialization] [Open-ADTSession] [Info] :: [PSAppDeployToolkit_4.1.3_EN_01] script version is [1.0.0].
[2026-02-10T13:55:28.7707596-06:00] [Initialization] [Open-ADTSession] [Info] :: [PSAppDeployToolkit_4.1.3_EN_01] script date is [2025-12-05].
[2026-02-10T13:55:28.7717604-06:00] [Initialization] [Open-ADTSession] [Info] :: [Invoke-AppDeployToolkit.ps1] script version is [4.1.3].
[2026-02-10T13:55:28.7717604-06:00] [Initialization] [Open-ADTSession] [Info] :: [PSAppDeployToolkit] module version is [4.1.3].
[2026-02-10T13:55:28.7727595-06:00] [Initialization] [Open-ADTSession] [Info] :: [PSAppDeployToolkit] module imported in [1.5602399] seconds.
[2026-02-10T13:55:28.7737592-06:00] [Initialization] [Open-ADTSession] [Info] :: [PSAppDeployToolkit] module initialized in [0.8197942] seconds.
[2026-02-10T13:55:28.7747581-06:00] [Initialization] [Open-ADTSession] [Info] :: [PSAppDeployToolkit] module path is ['C:\Users\Admin\Downloads\Task Sequence Deployment\PSAppDeployToolkit'].
[2026-02-10T13:55:28.7756173-06:00] [Initialization] [Open-ADTSession] [Info] :: [PSAppDeployToolkit] config path is ['C:\Users\Admin\Downloads\Task Sequence Deployment\Config'].
[2026-02-10T13:55:28.7756173-06:00] [Initialization] [Open-ADTSession] [Info] :: [PSAppDeployToolkit] string path is ['C:\Users\Admin\Downloads\Task Sequence Deployment\Strings'].
[2026-02-10T13:55:28.7767580-06:00] [Initialization] [Open-ADTSession] [Info] :: [PSAppDeployToolkit] session mode is [Native].
[2026-02-10T13:55:28.7787595-06:00] [Initialization] [Open-ADTSession] [Info] :: Computer Name is [Win11-Test-07.hei-kc.com].
[2026-02-10T13:55:28.7797583-06:00] [Initialization] [Open-ADTSession] [Info] :: Current User is [DOMAIN\admin-rw].
[2026-02-10T13:55:28.7797583-06:00] [Initialization] [Open-ADTSession] [Info] :: OS Version is [Microsoft Windows 11 Enterprise X64 10.0.26100.7623].
[2026-02-10T13:55:28.7807597-06:00] [Initialization] [Open-ADTSession] [Info] :: OS Type is [WorkStation].
[2026-02-10T13:55:28.7817608-06:00] [Initialization] [Open-ADTSession] [Info] :: Hardware Platform is [Virtual:VMware].
[2026-02-10T13:55:28.7827586-06:00] [Initialization] [Open-ADTSession] [Info] :: Current Culture is [en-US], language is [EN] and UI language is [EN].
[2026-02-10T13:55:28.7837579-06:00] [Initialization] [Open-ADTSession] [Info] :: PowerShell Host is [ConsoleHost] with version [5.1.26100.7462].
[2026-02-10T13:55:28.7847594-06:00] [Initialization] [Open-ADTSession] [Info] :: PowerShell Version is [5.1.26100.7462 X64].
[2026-02-10T13:55:28.7857598-06:00] [Initialization] [Open-ADTSession] [Info] :: PowerShell Process Path is [C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe].
[2026-02-10T13:55:28.7867608-06:00] [Initialization] [Open-ADTSession] [Info] :: PowerShell CLR (.NET) version is [4.0.30319.42000].
[2026-02-10T13:55:28.7877673-06:00] [Initialization] [Open-ADTSession] [Info] :: The following users are logged on to the system: [DOMAIN\admin].
[2026-02-10T13:55:28.7887723-06:00] [Initialization] [Open-ADTSession] [Info] :: Current process is running with user account [DOMAIN\admin] under logged on user session for [DOMAIN\admin].
[2026-02-10T13:55:28.7897732-06:00] [Initialization] [Open-ADTSession] [Info] :: There is no console user logged on (user with control of physical monitor, keyboard, and mouse).
[2026-02-10T13:55:28.7907733-06:00] [Initialization] [Open-ADTSession] [Info] :: The active logged on user who will receive UI elements is [DOMAIN\admin-rw].
[2026-02-10T13:55:28.7917736-06:00] [Initialization] [Open-ADTSession] [Info] :: The current execution context has a primary UI language of [en-US].
[2026-02-10T13:55:28.7927745-06:00] [Initialization] [Open-ADTSession] [Info] :: The following locale was used to import UI messages from the strings.psd1 files: [en-US].
[2026-02-10T13:55:28.7937731-06:00] [Initialization] [Open-ADTSession] [Info] :: Unable to find COM object [Microsoft.SMS.TSEnvironment]. Therefore, script is not currently running from a SCCM Task Sequence.
[2026-02-10T13:55:28.7977773-06:00] [Initialization] [Open-ADTSession] [Info] :: Device has completed the OOBE and toolkit is not running with an active ESP in progress.
[2026-02-10T13:55:28.7992887-06:00] [Initialization] [Open-ADTSession] [Info] :: Session 0 not detected, toolkit running as non-SYSTEM user account.
[2026-02-10T13:55:28.7992887-06:00] [Initialization] [Open-ADTSession] [Info] :: No processes were specified as requiring closure.
[2026-02-10T13:55:28.8002883-06:00] [Initialization] [Open-ADTSession] [Info] :: Installation is running in [Interactive] mode.
[2026-02-10T13:55:28.8012883-06:00] [Initialization] [Open-ADTSession] [Info] :: Deployment type is [Install].
[2026-02-10T13:55:28.8148044-06:00] [Initialization] [PSAppDeployToolkit.Extensions.psm1] [Info] :: Module [PSAppDeployToolkit.Extensions] imported successfully.
[2026-02-10T13:55:29.0855835-06:00] [Pre-Install] [Show-ADTInstallationProgress] [Info] :: Creating the progress dialog in a separate thread with [StatusMessage: Installation in progress. Please wait…], [StatusMessageDetail: This window will close automatically when the installation is complete.].
[2026-02-10T13:55:29.0875833-06:00] [Pre-Install] [Invoke-ADTClientServerOperation] [Info] :: Instantiating user client/server process.
[2026-02-10T13:55:29.9913562-06:00] [Install] [Show-ADTInstallationProgress] [Info] :: Updating the progress dialog with [StatusMessage: Installing Microsoft Visual C++ 2015-2022 Redistributable (x86). Please Wait...], [StatusMessageDetail: This window will close automatically when the installation is complete.].
[2026-02-10T13:55:29.9988702-06:00] [Install] [Start-ADTProcess] [Info] :: Preparing to execute process [C:\Users\Admin\Downloads\Task Sequence Deployment\Files\vc_redist.x86.exe C:\Users\Admin\Downloads\Task Sequence Deployment\Files\RVT_2026_en-US\3rdParty\x86\VCRedist\2022\VC_redist.x86.exe]...
[2026-02-10T13:55:30.0008702-06:00] [Install] [Start-ADTProcess] [Info] :: Please use [-SuccessExitCodes] and/or [-RebootExitCodes] to specify your process's exit codes.
[2026-02-10T13:55:30.0018699-06:00] [Install] [Start-ADTProcess] [Info] :: CreateNoWindow not specified, StdOut/StdErr streams will not be available.
[2026-02-10T13:55:30.0028704-06:00] [Install] [Start-ADTProcess] [Info] :: Working Directory is [C:\Users\Admin\Downloads\Task Sequence Deployment\Files\vc_redist.x86.exe C:\Users\Admin\Downloads\Task Sequence Deployment\Files\RVT_2026_en-US\3rdParty\x86\VCRedist\2022].
[2026-02-10T13:55:30.0048700-06:00] [Install] [Start-ADTProcess] [Info] :: Executing ["C:\Users\Admin\Downloads\Task Sequence Deployment\Files\vc_redist.x86.exe C:\Users\Admin\Downloads\Task Sequence Deployment\Files\RVT_2026_en-US\3rdParty\x86\VCRedist\2022\VC_redist.x86.exe" /install /quiet /norestart /log "C:\WINDOWS\Logs\Software\VisualC++2015-2022_x86.log"]...
[2026-02-10T13:55:30.0218955-06:00] [Install] [Start-ADTProcess] [Error] :: Error occurred while attempting to start the specified process.
Error Record:
-------------

Message               : Exception calling "LaunchAsync" with "1" argument(s): "The directory name is invalid"
InnerException        : System.ComponentModel.Win32Exception (0x80004005): The directory name is invalid
                           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 282
                           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 : Win32Exception,Start-ADTProcess
ScriptStackTrace      : at Start-ADTProcess<Process>, C:\Users\Admin\Downloads\Task Sequence Deployment\PSAppDeployToolkit\PSAppDeployToolkit.psm1: line 21708
                        at Install-ADTDeployment, C:\Users\Admin\Downloads\Task Sequence Deployment\Invoke-AppDeployToolkit.ps1: line 181
                        at <ScriptBlock>, C:\Users\Admin-RW\Downloads\Task Sequence Deployment\Invoke-AppDeployToolkit.ps1: line 407
                        at <ScriptBlock>, <No file>: line 1

PositionMessage       : At C:\Users\Admin\Downloads\Task Sequence Deployment\Invoke-AppDeployToolkit.ps1:181 char:9
                        +         Start-ADTProcess -FilePath "$($vc2022x86.FullName)" -Argument ...
                        +         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[2026-02-10T13:55:30.0328978-06:00] [Install] [Invoke-AppDeployToolkit.ps1] [Error] :: An unhandled error within [Invoke-AppDeployToolkit.ps1] has occurred.
Error Record:
-------------

Message               : Exception calling "LaunchAsync" with "1" argument(s): "The directory name is invalid"
InnerException        : System.ComponentModel.Win32Exception (0x80004005): The directory name is invalid
                           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 282
                           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 : Win32Exception,Start-ADTProcess
ScriptStackTrace      : at Start-ADTProcess<Process>, C:\Users\Admin\Downloads\Task Sequence Deployment\PSAppDeployToolkit\PSAppDeployToolkit.psm1: line 21708
                        at Install-ADTDeployment, C:\Users\Admin\Downloads\Task Sequence Deployment\Invoke-AppDeployToolkit.ps1: line 181
                        at <ScriptBlock>, C:\Users\Admin\Downloads\Task Sequence Deployment\Invoke-AppDeployToolkit.ps1: line 407
                        at <ScriptBlock>, <No file>: line 1

PositionMessage       : At C:\Users\Admin\Downloads\Task Sequence Deployment\Invoke-AppDeployToolkit.ps1:181 char:9
                        +         Start-ADTProcess -FilePath "$($vc2022x86.FullName)" -Argument ...
                        +         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[2026-02-10T13:55:30.1545296-06:00] [Finalization] [Close-ADTInstallationProgress] [Info] :: Closing the installation progress dialog.
[2026-02-10T13:55:30.1755504-06:00] [Finalization] [Close-ADTClientServerProcess] [Info] :: Closing user client/server process.
[2026-02-10T13:55:30.6983346-06:00] [Finalization] [Close-ADTSession] [Error] :: [PSAppDeployToolkit_4.1.3_EN_01] install completed in [1.9315708] seconds with exit code [60001].`

I am happy to post the code too if needed but I'll start with this. I look forward to seeing replies.

At a quick glance (As it's Patch Tuesday I'm currently patching numerous systems :grin:)...
I see you are using PSADT 4.1.3 - 4.1.8 is currently the latest

It would be useful to see a snippet of your script, as the error message:

Message               : Exception calling "LaunchAsync" with "1" argument(s): "The directory name is invalid"

infers that the script is looking for something that is not there, and...

ScriptStackTrace      : at Start-ADTProcess<Process>, C:\Users\Admin\Downloads\Task Sequence Deployment\PSAppDeployToolkit\PSAppDeployToolkit.psm1: line 21708
                        at Install-ADTDeployment, C:\Users\Admin\Downloads\Task Sequence Deployment\Invoke-AppDeployToolkit.ps1: line 181
                        at <ScriptBlock>, C:\Users\Admin-RW\Downloads\Task Sequence Deployment\Invoke-AppDeployToolkit.ps1: line 407
                        at <ScriptBlock>, <No file>: line 1

more specifically

Start-ADTProcess<Process>

does not look correct.

It definitely would help to see (some of) your code, Therefore, please could you paste the lines from you script within the Install section from the Show-ADTInstallationProgress to a few lines after line 181 (where this fell over)

Returning to the ScriptStackTrace above, I notice the path to C:\Users\Admin\Downloads\Task Sequence Deployment\Invoke-AppDeployToolkit.ps1 and the : C:\Users\Admin-RW\Downloads\Task Sequence Deployment\Invoke-AppDeployToolkit.ps1 are different - This could be an issue :man_shrugging:

No worries Adrian, thanks and good luck with patching!

 if ($vc2022x86.Count -gt 0) {
        Show-ADTInstallationProgress -StatusMessage 'Installing Microsoft Visual C++ 2015-2022 Redistributable (x86). Please Wait...'
        Start-ADTProcess -FilePath "$($vc2022x86.FullName)" -ArgumentList "/install /quiet /norestart /log `"$((Get-ADTConfig).Toolkit.LogPath)\VisualC++2015-2022_x86.log`"" -WindowStyle 'Hidden' -IgnoreExitCodes '1638'
        Start-Sleep -Seconds 5
    }

    if ($vc2022x64.Count -gt 0) {
        Show-ADTInstallationProgress -StatusMessage 'Installing Microsoft Visual C++ 2015-2022 Redistributable (x64). Please Wait...'
        Start-ADTProcess -FilePath "$($vc2022x64.FullName)" -ArgumentList "/install /quiet /norestart /log `"$((Get-ADTConfig).Toolkit.LogPath)\VisualC++2015-2022_x64.log`"" -WindowStyle 'Hidden' -IgnoreExitCodes '1638'
        Start-Sleep -Seconds 5
    }

    if ($desktopRuntime.Count -gt 0) {
        Show-ADTInstallationProgress -StatusMessage 'Installing Microsoft Windows .NET Desktop Runtime 8.0 (x64). Please Wait...'
        Start-ADTProcess -FilePath "$($desktopRuntime.FullName)" -ArgumentList "/install /quiet /norestart /log `"$((Get-ADTConfig).Toolkit.LogPath)\NETDesktopRuntime80_x64.log`"" -WindowStyle 'Hidden' -IgnoreExitCodes '1638'
        Start-Sleep -Seconds 5
    }

    if ($aspNetCore.Count -gt 0) {
        Show-ADTInstallationProgress -StatusMessage 'Installing ASP.NET Core Runtime 8.0 (x64). Please Wait...'
        Start-ADTProcess -FilePath "$($aspNetCore.FullName)" -ArgumentList "/install /quiet /norestart /log `"$((Get-ADTConfig).Toolkit.LogPath)\ASPNETCoreRuntime80_x64.log`"" -WindowStyle 'Hidden' -IgnoreExitCodes '1638'
        Start-Sleep -Seconds 5
    }

    if ($webView2.Count -gt 0) {
        Show-ADTInstallationProgress -StatusMessage 'Installing Microsoft Edge WebView2 Runtime (x64). Please Wait...'
        Start-ADTProcess -FilePath "$($webView2.FullName)" -ArgumentList '/silent /install' -WindowStyle 'Hidden' -IgnoreExitCodes '-2147219187'
        Start-Sleep -Seconds 5
    }
    
    if ($exePath.Count -gt 0) {
        Show-ADTInstallationProgress -StatusMessage "Installing $($adtSession.AppName). Please Wait..."
        Start-ADTProcess -FilePath "$($exePath.FullName)" -ArgumentList "-i deploy -q -o `"$($adtSession.DirFiles)\Collection.xml`"" -WindowStyle 'Hidden'
        Start-Sleep -Seconds 5

        ## OPTIONAL: Apply Autodesk Revit 2026 Update if present
        if ($updatePath.Count -gt 0) {
            Show-ADTInstallationProgress -StatusMessage "Installing Autodesk Revit 2026 Update. Please Wait..."
            Start-ADTProcess -FilePath "$($updatePath.FullName)" -ArgumentList '-q' -WindowStyle 'Hidden'
            Start-Sleep -Seconds 5
            Write-ADTLogEntry -Message "Autodesk Revit 2026 Update installed successfully." -Severity 1
        } else {
            Write-ADTLogEntry -Message "Autodesk Revit 2026 Update not found. Skipping optional update step." -Severity 1
        }       

        ## Define JSON content to suppress Autodesk privacy settings pop-up
        Copy-ADTFile -SourcePath "$($adtSession.DirFiles)\UnNamed.json" -DestinationPath "$($env:AppData)\Autodesk\ADPASDK\UserConsent" -Force

        Write-ADTLogEntry -Message "Autodesk privacy policy settings update operation completed." -Severity 1 -Source "Config-AutodeskPreferences"
    }
    else {
        Write-ADTLogEntry -Message "$($adtSession.AppName) installer was not found. Installation aborted." -Severity 2
        Show-ADTInstallationPrompt -Message "$($adtSession.AppName) installer was not found. Installation aborted." -ButtonRightText 'OK'
    }

    ##================================================
    ## MARK: Post-Install
    ##================================================
    $adtSession.InstallPhase = "Post-$($adtSession.DeploymentType)"

    ## <Perform Post-Installation tasks here>


    ## Display a message at the end of the install.
    if (!$adtSession.UseDefaultMsi)
    {
        Show-ADTInstallationPrompt -Message 'You can customize text to appear at the end of an install or remove it completely for unattended installations.' -ButtonRightText 'OK' -Icon Information -NoWait
    }
}

Thanks, I can see what you are doing (But as we use Intune, I wouldn't personally do it all in one script, I'd create dependencies to install all those dependent apps before the Revit installer starts and thus simplifying your script, the advantage is you can change / update the dependent apps without having to repackage your Revit installer).

Anyhow, returning to your log, I think this line gives the necessary clue why it can't run:

It's trying to execute:

"C:\Users\Admin\Downloads\Task Sequence Deployment\Files\vc_redist.x86.exe C:\Users\Admin\Downloads\Task Sequence Deployment\Files\RVT_2026_en-US\3rdParty\x86\VCRedist\2022\VC_redist.x86.exe"

i.e. 2 executables
I'm guessing this is because the check

if ($vc2022x86.Count -gt 0) ....

contains 2 entries.

Gotcha, let me fix that up and see if it will run. Thank you!

I have reworked the logic but for some reason the Start-ADTProcess is still giving errors:

Install Area Code:
## <Perform Installation tasks here>
    $files = Get-ChildItem -Path "$($adtSession.DirFiles)" -File -Recurse -ErrorAction SilentlyContinue
    $exePath = $files | Where-Object { $_.Name -match 'Installer.exe$' }
    $updatePath = $files | Where-Object { $_.Name -match '^Revit_2026.*\.exe$'}
    
    if ($exePath.Count -gt 0) {
        Show-ADTInstallationProgress -StatusMessage "Installing $($adtSession.AppName). Please Wait..."
        Start-ADTProcess -FilePath "$($exePath.FullName)" -ArgumentList "-i deploy --offline_mode -q -o `"$($adtSession.DirFiles)\Collection.xml`"" -WaitForChildProcess -PassThru
        Start-Sleep -Seconds 5

        ## OPTIONAL: Apply Autodesk Revit 2026 Update if present
        if ($updatePath.Count -gt 0) {
            Show-ADTInstallationProgress -StatusMessage "Installing Autodesk Revit 2026 Update. Please Wait..."
            Start-ADTProcess -FilePath "$($updatePath.FullName)" -ArgumentList '-q' -WindowStyle 'Hidden'
            Start-Sleep -Seconds 5
            Write-ADTLogEntry -Message "Autodesk Revit 2026 Update installed successfully." -Severity 1
        } else {
            Write-ADTLogEntry -Message "Autodesk Revit 2026 Update not found. Skipping optional update step." -Severity 1
        }       

        ## Define JSON content to suppress Autodesk privacy settings pop-up
        Copy-ADTFile -SourcePath "$($adtSession.DirFiles)\UnNamed.json" -DestinationPath "$($env:AppData)\Autodesk\ADPASDK\UserConsent" -Force

        Write-ADTLogEntry -Message "Autodesk privacy policy settings update operation completed." -Severity 1 -Source "Config-AutodeskPreferences"
    }
    else {
        Write-ADTLogEntry -Message "$($adtSession.AppName) installer was not found. Installation aborted." -Severity 2
        Show-ADTInstallationPrompt -Message "$($adtSession.AppName) installer was not found. Installation aborted." -ButtonRightText 'OK'
    }

Output after running from an admin Powershell window and like this:
.\Invoke-AppDeployToolkit.ps1


[2026-02-16T10:17:11.1803316-06:00] [Install] [Start-ADTProcess] [Info] :: CreateNoWindow not specified, StdOut/StdErr streams will not be available.
[2026-02-16T10:17:11.1828505-06:00] [Install] [Start-ADTProcess] [Info] :: Working Directory is [C:\Temp\Clean Teamplate_Updated - Copy\Files\Installer.exe C:\Temp\Clean Teamplate_Updated - Copy\Files\RVT_2026_en-US\ODIS\AdODIS-installer.exe C:\Temp\Clean Teamplate_Updated - Copy\Files\RVT_2026_en-US\x64\Access\AdAccess-installer.exe C:\Temp\Clean Teamplate_Updated - Copy\Files\RVT_2026_en-US\x64\AdskIdentityManager\AdskIdentityManager-Installer.exe C:\Temp\Clean Teamplate_Updated - Copy\Files\RVT_2026_en-US\x86\Licensing\AdskLicensing-installer.exe C:\Temp\Clean Teamplate_Updated - Copy\Files\Setup\AdskAccessScheduledInstaller.exe C:\Temp\Clean Teamplate_Updated - Copy\Files\Setup\odis_uninstaller.exe C:\Temp\Clean Teamplate_Updated - Copy\Files\Setup].
[2026-02-16T10:17:11.1858526-06:00] [Install] [Start-ADTProcess] [Info] :: Executing ["C:\Temp\Clean Teamplate_Updated - Copy\Files\Installer.exe C:\Temp\Clean Teamplate_Updated - Copy\Files\RVT_2026_en-US\ODIS\AdODIS-installer.exe C:\Temp\Clean Teamplate_Updated - Copy\Files\RVT_2026_en-US\x64\Access\AdAccess-installer.exe C:\Temp\Clean Teamplate_Updated - Copy\Files\RVT_2026_en-US\x64\AdskIdentityManager\AdskIdentityManager-Installer.exe C:\Temp\Clean Teamplate_Updated - Copy\Files\RVT_2026_en-US\x86\Licensing\AdskLicensing-installer.exe C:\Temp\Clean Teamplate_Updated - Copy\Files\Setup\AdskAccessScheduledInstaller.exe C:\Temp\Clean Teamplate_Updated - Copy\Files\Setup\odis_uninstaller.exe C:\Temp\Clean Teamplate_Updated - Copy\Files\Setup\PurgeSideBySideInstaller.exe" -i deploy --offline_mode -q -o "C:\Temp\Clean Teamplate_Updated - Copy\Files\Collection.xml"]...
[2026-02-16T10:17:11.3149816-06:00] [Install] [Start-ADTProcess] [Error] :: Error occurred while attempting to start the specified process.
Error Record:
-------------

Message               : Exception calling "LaunchAsync" with "1" argument(s): "The directory name is invalid"
InnerException        : System.ComponentModel.Win32Exception (0x80004005): The directory name is invalid
                           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 293
                           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 : Win32Exception,Start-ADTProcess
ScriptStackTrace      : at Start-ADTProcess<Process>, C:\Temp\Clean Teamplate_Updated - Copy\PSAppDeployToolkit\PSAppDeployToolkit.psm1: line 22407
                        at Install-ADTDeployment, C:\Temp\Clean Teamplate_Updated - Copy\Invoke-AppDeployToolkit.ps1: line 173
                        at <ScriptBlock>, C:\Temp\Clean Teamplate_Updated - Copy\Invoke-AppDeployToolkit.ps1: line 369
                        at <ScriptBlock>, <No file>: line 1

PositionMessage       : At C:\Temp\Clean Teamplate_Updated - Copy\Invoke-AppDeployToolkit.ps1:173 char:9
                        +         Start-ADTProcess -FilePath "$($exePath.FullName)" -ArgumentLi ...
                        +         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[2026-02-16T10:17:11.3710632-06:00] [Install] [Invoke-AppDeployToolkit.ps1] [Error] :: An unhandled error within [Invoke-AppDeployToolkit.ps1] has occurred.
Error Record:
-------------

Message               : Exception calling "LaunchAsync" with "1" argument(s): "The directory name is invalid"
InnerException        : System.ComponentModel.Win32Exception (0x80004005): The directory name is invalid
                           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 293
                           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 : Win32Exception,Start-ADTProcess
ScriptStackTrace      : at Start-ADTProcess<Process>, C:\Temp\Clean Teamplate_Updated - Copy\PSAppDeployToolkit\PSAppDeployToolkit.psm1: line 22407
                        at Install-ADTDeployment, C:\Temp\Clean Teamplate_Updated - Copy\Invoke-AppDeployToolkit.ps1: line 173
                        at <ScriptBlock>, C:\Temp\Clean Teamplate_Updated - Copy\Invoke-AppDeployToolkit.ps1: line 369
                        at <ScriptBlock>, <No file>: line 1

PositionMessage       : At C:\Temp\Clean Teamplate_Updated - Copy\Invoke-AppDeployToolkit.ps1:173 char:9
                        +         Start-ADTProcess -FilePath "$($exePath.FullName)" -ArgumentLi ...
                        +         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[2026-02-16T10:17:11.5443281-06:00] [Finalization] [Close-ADTInstallationProgress] [Info] :: Closing the installation progress dialog.
[2026-02-16T10:17:11.5928818-06:00] [Finalization] [Close-ADTClientServerProcess] [Info] :: Closing user client/server process.
[2026-02-16T10:17:12.1276363-06:00] [Finalization] [Close-ADTSession] [Error] :: [PSAppDeployToolkit_4.1.8_EN_01] install completed in [3.1098406] seconds with exit code [60001].
[2026-02-16T10:17:12.1306270-06:00] [Finalization] [Close-ADTSession] [Info] :: -------------------------------------------------------------------------------
PS C:\Temp\Clean Teamplate_Updated - Copy>

When using get-childitem in this way the path returned has a space in it which then doesn't expand out properly when executed. Additionally, some Autodesk installers don't like that you have a space in the folder path.

I use these 3 lines instead:

$adODISInstaller = "$($adtSession.DirFiles)\image\Installer.exe"
$adODISCollection = "$($adtSession.DirFiles)\image\Collection.xml"
Start-ADTProcess -FilePath "$adODISInstaller" -ArgumentList "-i deploy --offline_mode -q -o `"$adODISCollection`"" -WaitForMsiExec

Many custom installers cannot handle spaces in paths. Some can handle anything other than 8.3 paths either.