Fix: Microsoft Office Error Codes 0-2048(0) and 0-2054(0) During Installation
Office installation may fail with error codes 0-2048(0) or 0-2054(0) when the setup cannot access a valid configuration file or source path. Error 0-2048(0) usually means that the XML configuration file is missing or points to an invalid path, while error 0-2054(0) indicates a general installation failure.
These issues often occur due to corrupted configuration files, leftover components from older Office versions, or insufficient administrative permissions. Incorrect version references inside the XML file or running the setup without elevated rights are also common triggers.
To fix this issue, you need to completely remove all previous Office components and install Office again using a freshly generated configuration file. This ensures that no corrupted leftovers or outdated paths interfere with the new installation.
Follow these steps carefully:
Step 1: Uninstall Office and Remove All Leftovers
- Open your browser and visit the Revo Uninstaller webpage and click Free Download.
- Install Revo by running the downloaded setup file.
- Open Revo Uninstaller, go to the Uninstaller tab, search for Office, right-click it, and select Uninstall.
- Uncheck “Create a Restore Point” when prompted, then click Continue and confirm uninstallation.
- Once Revo completes the process, choose Advanced scanning mode and click Scan.
- Select all leftover registry items and click Delete.
- Remove all leftover files when prompted.
Step 2: Clear Temporary and App Data Folders
- Press Win + R, type
%temp%
, and delete all contents. Repeat the same fortemp
andPrefetch
. - Type
%appdata%
in Run, press Enter, go to Roaming > Microsoft, and delete Office-related folders (Word, Excel, PowerPoint, etc.). - Restart your computer.
Step 3: Generate a Fresh XML Configuration File
- Go to the Office Customization Tool.
- Select the correct architecture (64-bit or 32-bit). (Check under “About my PC” in Start.)
- Choose your Office version (e.g., Microsoft 365 for Enterprise) and select the apps you need.
- Set Update Channel to Current and version to Latest.
- Choose your language and select Office Content Delivery Network as the installation method.
- Under Upgrade options, enable uninstalling older MSI versions.
- Set your licensing and preferences, then click Finish.
- Click Export, select Open XML formats, name the file, and download it.
Step 4: Install Office with the Deployment Tool
- Download the Office Deployment Tool and install it.
- Place the new XML file inside the Deployment Tool folder.
- Temporarily disable Windows Defender’s Real-Time Protection.
- Open Command Prompt as Administrator, navigate to the Deployment Tool folder using
cd
, and run:setup /configure configuration.xml
(Replace
configuration.xml
with your XML filename.) - Once installation completes, re-enable all security settings.
What If This Still Doesn’t Work?
If the issue persists, try these additional steps:
- Use Microsoft’s Office Uninstall Support Tool to ensure complete removal.
- Install Office using an offline installer from your Microsoft account’s download page.
- Check your disk for errors and ensure you have enough free space for the installation.