To repair a package using the command line

  1. Open Command Prompt

  2. From the command window, type msiexec /f[p][o][e][d][c][a][u][m][s][v] {package|ProductCode} and then press ENTER.


    /f enables one or more of the following command-line options:

    p - Reinstall only if the file is missing.

    o - Reinstall if the file is missing or if an older version is installed.

    e - Reinstall if the file is missing or an equal or older version is installed.

    d - Reinstall if the file is missing or a different version is installed.

    c - Reinstall if the file is missing or the stored checksum does not match the calculated value.

    a - Force all the files to be reinstalled.

    u - Rewrite all the required user-specific registry entries.

    m - Rewrite all the required computer-specific registry entries.

    s - Overwrite all the existing shortcuts.

    v - Run from source and re-cache the local package.

    package is the name of the Windows Installer package file.

    ProductCode is the globally unique identifier (GUID) of the Windows Installer package.


  • To open command prompt, click Start, point to All Programs, point to Accessories, and then click Command Prompt..

  • Windows Installer command-line switches are not case-sensitive.

  • The default parameter for this command-line option is /fpecms.

  • For more information on the command-line options, see Related Topics.