How to diz wixtoolset.dtf error

Fran Powell 0 Reputation points
2026-07-15T00:12:20.4333333+00:00

Looking for help with the below error - unable to repair / remove or upgrade entra connect sycn

Thanks

Fran

User's image

Microsoft Security | Microsoft Entra | Microsoft Entra ID
0 comments No comments

1 answer

Sort by: Oldest
  1. AI answer

    2026-07-15T00:12:46.4266667+00:00

    This failure commonly occurs when Microsoft Entra Connect setup detects inconsistent or stale Windows Installer product information from a previous Entra Connect / Azure AD Sync / DirSync installation.

    Use this troubleshooting path:

    1. Start the Microsoft Entra Connect wizard and wait for the first page to open.
    2. Open %ProgramData%\AADConnect\ and review the latest installation trace log.
    3. In the log, look for entries related to GetInstalledPackagesByUpgradeCode to identify whether setup is detecting an old or stale sync engine product code.

    If a stale or inconsistent product code is present:

    1. Open an elevated Command Prompt.
    2. Set the product code GUID found in the trace log:
         SET productcode={<12345678-0000-abcd-0000-0123456789ab>}
      
    3. Run the uninstall command:
         SET /a counter+=1
         & MSIEXEC /x %productcode% /qn /norestart /l*v "%ProgramData%\AADConnect\AADConnect_Uninstall-ForcedUninstall_%counter%.log" EXECUTE_UNINSTALL="1"
      
    4. Repeat the uninstall command if needed, then restart the server.
    5. Start the Microsoft Entra Connect wizard again, open %ProgramData%\AADConnect\, and confirm the stale product code no longer appears in the latest trace log.
    6. If the stale code is gone, continue the wizard and complete the installation.

    If the stale product code remains:

    1. Run the Program Install and Uninstall troubleshooter to repair install/remove issues and corrupted registry keys.
    2. Restart the server.
    3. Start the wizard again and recheck the latest trace log in %ProgramData%\AADConnect\.
    4. If the stale product code is still present after that, the documented recommendation is to reinstall Windows because the Windows Installer database can't be recovered from an inconsistent state.

    Additional checks from the documented upgrade guidance:

    • If automatic upgrade is involved, run Get-ADSyncAutoUpgrade.
    • If the state is suspended, run Get-ADSyncAutoUpgrade -Detail to get the suspension reason.
    • Check Event Viewer > Application log and filter for source Microsoft Entra Connect Upgrade with event IDs 300-399.

    Important: avoid directly editing the Windows registry. That approach is explicitly not supported, and incorrect registry changes can cause serious problems.


    AI-generated content may be incorrect. Read our transparency notes for more information.

    Was this answer helpful?

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.