Steps to get - Office 365/2021/2019 Error code 0-1018(0)
Error code 0-1018(0) occurs if another installation , or uninstallation was tried before you attempted to install Office 365/2021/2019
https://officesupportcontact.com/error-code-0-1018-0-solved-office-365-office-2010/