Thanks for posting your question in the Microsoft Q&A forum.
On Windows Server 2025, uninstalling or updating the Azure Connected Machine Agent often prompts for the original MSI because Windows Installer can’t locate the initial package. The solution is to bypass the installer by uninstalling via the agent’s Product Code using msiexec or PowerShell, which forces removal without needing the original MSI. If that fails, manually clean leftover files, processes, and registry keys. For Azure Arc installed as a Windows feature, use PowerShell feature removal commands. This approach resolves the blockage and allows reinstallation, update, or full removal.
Please don't forget to close up the thread here by upvoting and accept it as an answer if it is helpful