We recommend that you uninstall any previous versions of Office before installing Microsoft 365 Apps. Use the Office Deployment Tool and specify the RemoveMSI element in your configuration.xml file to uninstall Office versions that use Windows Installer (MSI).