Every guide lists its sources, tips, and warnings. Read our editorial policy.

How to Fix Error 0x80070057 When Running an MSI Installer

Error 0x80070057 means the installer was handed a parameter it cannot use — a bad command line, an invalid path, or a damaged Installer service registration. Fix the argument, reset the Installer service, and clear the broken leftover entry.

The short answer

0x80070057 is ERROR_INVALID_PARAMETER. If you launched the MSI from a command line, check the syntax first — a stray quote or backslash is the classic cause. Otherwise re-register the Installer service with `msiexec /unregister` followed by `msiexec /regserver`, and clear leftover entries with Microsoft's Install and Uninstall troubleshooter.

Download the full guide (PDF) Print checklist
Share
Set 52runoob as a preferred source on Google

The MSI starts, you choose the options, and it quits with `0x80070057: The parameter is incorrect.` Sometimes it never opens at all. This is Windows Installer telling you one of the inputs it was given is unusable — either the command launching it, the destination it is writing to, or its own registration in Windows.

Quick steps

  1. Check the msiexec command line for a syntax mistake
  2. Re-register Windows Installer with msiexec /regserver
  3. Confirm the Installer service is running
  4. Remove leftover entries with the Install and Uninstall troubleshooter
  5. Install from a simple path without special characters
  6. Run sfc and DISM if the error follows every MSI

Things you'll need

  • The MSI file that fails
  • An administrator account on the PC
  • Microsoft's Install and Uninstall troubleshooter
  • A log file: add /l*v install.log to see the exact failing parameter

Step-by-step

Method 1 of 3

Method 1 of 3: Check the Command Line and the Path

PDF
Step 1: Write Down the Exact Command You Ran Download image

Step 1: Write Down the Exact Command You Ran

If you started the MSI from a terminal, the first suspect is the command itself. A correct install command is `msiexec /i "C:\Setup\app.msi"` — `/i` for install, path in quotes. Common mistakes that produce 0x80070057: a trailing backslash inside quotes, `/i` after the path instead of before it, and mixing `/i` with `/a` in the same command.

Step 2: Run It With Verbose Logging to See the Real Parameter Download image

Step 2: Run It With Verbose Logging to See the Real Parameter

Add logging to see exactly which parameter the Installer rejects: `msiexec /i "C:\Setup\app.msi" /l*v "C:\Setup\install.log"`. Open the log and search for `return value 3` — the lines above it name the property or path that failed. This turns a vague error into the exact input to fix.

Step 3: Move the MSI to a Simple Path Download image

Step 3: Move the MSI to a Simple Path

A path containing special characters — an ampersand, a hash sign, a trailing space — is itself the invalid parameter. Copy the MSI to a plain folder like `C:\Setup` and run it from there with the name in quotes. A successful install from the simple path proves the original path was the problem, not the package.

Step 4: Double-Click the MSI Instead of Commanding It Download image

Step 4: Double-Click the MSI Instead of Commanding It

Bypass the command line entirely: double-click the `.msi` file. Explorer launches it through the registered handler with no parameters at all. If it installs cleanly this way, your command line was the problem and the package was never damaged.

Step 5: Check the Destination Folder the Installer Chooses Download image

Step 5: Check the Destination Folder the Installer Chooses

On the destination screen, watch for a path that ends in a space or period, or one that points at a drive that does not exist. Both are invalid parameters the installer rejects with 0x80070057. Retype the destination by hand to a plain folder like `C:\Program Files\AppName` and continue.

Method 2 of 3

Method 2 of 3: Reset the Windows Installer Service

PDF
Step 6: Confirm the Installer Service Is Running Download image

Step 6: Confirm the Installer Service Is Running

Press Start, type `services.msc`, and find Windows Installer. Its status should be Running or Manual, and its startup type must not be Disabled. If it is stopped, right-click and start it, then run the MSI again. A disabled Installer service returns parameter errors on perfectly valid packages.

Step 7: Re-register the Installer Engine Download image

Step 7: Re-register the Installer Engine

Damaged registration makes the service misread its own inputs. In an elevated terminal run `msiexec /unregister`, then `msiexec /regserver`. No output appears on success — the commands silently rebuild the Installer's registry entries. Run the MSI afterwards.

Step 8: Clear the Installer Cache for the Broken Package Download image

Step 8: Clear the Installer Cache for the Broken Package

A failed earlier attempt leaves a cached copy that the new run trips over. Download Microsoft's Program Install and Uninstall troubleshooter, run it, choose Installing, and let it remove the broken entry. Then install fresh. The troubleshooter is the supported way to clear Installer-cache leftovers.

Step 9: Clean Out the Temp Folder the Installer Uses Download image

Step 9: Clean Out the Temp Folder the Installer Uses

The Installer unpacks into your temp folder, and a temp directory full of stale files produces odd parameter failures. Run `%temp%` in the address bar, select everything that deletes cleanly, and remove it. Rerun the installer with a fresh temp folder.

Step 10: Try the Install Under a New Administrator Account Download image

Step 10: Try the Install Under a New Administrator Account

If the error follows your account but the package is known-good, your profile's Installer data is damaged. Create a new local administrator account under `Settings > Accounts > Other users`, sign in there, and run the MSI. A clean install under the new account confirms the profile, not the package.

Method 3 of 3

Method 3 of 3: System-Level Repairs

PDF
Step 11: Run SFC to Restore Installer Components Download image

Step 11: Run SFC to Restore Installer Components

When every MSI fails with 0x80070057, Windows Installer's own files are damaged. Run `sfc /scannow` in an elevated terminal. It checks the Installer engine and its dependencies and restores any modified files. Reboot, then run the MSI again.

Step 12: Follow With DISM When SFC Cannot Finish the Job Download image

Step 12: Follow With DISM When SFC Cannot Finish the Job

If SFC reports damage it cannot repair, rebuild the component store first: `DISM /Online /Cleanup-Image /RestoreHealth`, then `sfc /scannow` again. Installer errors that survive both commands are rare — this pair resolves the system-level causes of 0x80070057.

Step 13: Check Date, Time, and Regional Settings Download image

Step 13: Check Date, Time, and Regional Settings

The Installer validates date-dependent parameters against the system clock, and a clock set years off can make every parameter fail validation. Confirm the date and time under `Settings > Time & language`, sync with the time server, and rerun the installer.

Step 14: Try a Clean Boot and Install Again Download image

Step 14: Try a Clean Boot and Install Again

Third-party services hook into installs and feed bad parameters to the Installer engine. Run `msconfig`, hide Microsoft services, disable the rest, and reboot into the clean state. Install the MSI there. If it works, re-enable services in halves to find the one interfering.

Step 15: Extract the MSI and Install Its Contents Directly Download image

Step 15: Extract the MSI and Install Its Contents Directly

For an MSI that still refuses, open it in 7-Zip and extract its payload to a folder. Many MSIs contain a self-contained app directory you can copy into place and run directly. You skip the Installer engine entirely — the trade-off is losing the registered uninstall entry.

Tips

  • 0x80070057 is about inputs, not corruption. Check your command line and destination path before repairing Windows.
  • The /l*v log tells you exactly which parameter failed. Read it instead of guessing.
  • msiexec /unregister followed by /regserver is a silent, safe reset — no output is the expected success state.
  • The official Install and Uninstall troubleshooter clears broken leftovers without touching the registry by hand.

Warnings

  • Do not edit Installer registry keys manually. The unregister/regserver pair does the same reset safely.
  • A trailing backslash inside a quoted path — "C:\Setup\" — escapes the quote and breaks the command. Remove it.
  • Never cancel an MSI mid-install to retry a different parameter. Let it roll back, then run clean.
  • Avoid third-party MSI fixer tools. The service reset and the official troubleshooter cover every cause here.

Frequently asked questions

What parameter is 0x80070057 complaining about?

Any input the Installer could not use: a malformed command line, a destination path with invalid characters, or its own damaged registration data. The /l*v install log names the exact property that failed — check it before changing anything.

Why does the MSI work when I double-click it but not from the command line?

Because double-clicking sends no parameters at all. Your command line has a syntax problem — most often a trailing backslash inside quotes or a misplaced /i flag. Rewrite it as msiexec /i "C:\path\app.msi" and it will match the double-click result.

Does msiexec /unregister break anything?

No. It removes the Installer's registration entries, and /regserver immediately re-creates them with defaults. Run the pair together and the service comes back with a clean configuration.

The error happens with every MSI, not just one. What is wrong?

The Installer engine or its registration is damaged system-wide. Re-register with /regserver, confirm the service is not disabled, then run SFC and DISM. A per-package error is a command line problem; a system-wide error is the engine.

References

  1. Microsoft Learn — System Error Codes 0–499 (0x80070057, ERROR_INVALID_PARAMETER). https://learn.microsoft.com/en-us/windows/win32/debug/system-error-codes--0-499-
  2. Microsoft Learn — msiexec command reference. https://learn.microsoft.com/en-us/windows-server/administration/windows-commands/msiexec
  3. Microsoft — Program Install and Uninstall troubleshooter. https://support.microsoft.com/en-us/windows/fix-problems-that-block-programs-from-being-installed-or-removed-cca7d1b6-65a9-3d98-426b-7202ab2a6729
  4. Microsoft Support — Use System File Checker in Windows. https://support.microsoft.com/en-us/windows/using-system-file-checker-in-windows-365e0031-36b1-6031-f804-8fd86e0ef4ca
  5. Microsoft Learn — Repair a Windows image with DISM. https://learn.microsoft.com/en-us/windows-hardware/manufacture/desktop/repair-a-windows-image
  6. Microsoft Support — How to perform a clean boot in Windows. https://support.microsoft.com/en-us/topic/how-to-perform-a-clean-boot-in-windows-da2f9573-6eec-00ad-2f8a-97a2b7b6fb24

Every guide is reviewed against its sources. See our editorial policy.

Get one fix like this every week

One short email with the most useful new guide and a printable checklist. No spam, unsubscribe anytime.

Reader comments

0 so far

Finished this guide? Tell other readers what worked, what didn't, and what you would change.

Stuck on a step? Tell us your device model and what happened — an editor reads every comment and usually replies within 48 hours.

Be kind and constructive. Comments are published instantly.