Expand Minimize

REINSTALLMODE property

The REINSTALLMODE property is a string that contains letters specifying the type of reinstall to perform. Options are case-insensitive and order-independent. This property should normally always be used in conjunction with the REINSTALL property. However, this property can also be used during installation, not just reinstall.

Note  The Windows Installer ignores the REINSTALLMODE property during an administrative installation.

Reinstall Option Codes

By default the REINSTALLMODE is "omus".

CodeOption
pReinstall only if the file is missing.
oReinstall if the file is missing or is an older version.
eReinstall if the file is missing, or is an equal or older version.
dReinstall if the file is missing or a different version is present.
cVerify the checksum values, and reinstall the file if they are missing or corrupt. This flag only repairs files that have msidbFileAttributesChecksum in the Attributes column of the File Table.
aForce all files to be reinstalled, regardless of checksum or version.
uRewrite all required registry entries from the Registry Table that go to the

HKEY_CURRENT_USER

or

HKEY_USERS

registry hive.
mRewrite all required registry entries from the Registry Table that go to the

HKEY_LOCAL_MACHINE

or

HKEY_CLASSES_ROOT

registry hive. Rewrite all information from the Class Table, Verb Table, PublishComponent Table, ProgID Table, MIME Table, Icon Table, Extension Table, and AppID Table regardless of machine or user assignment. Reinstall all qualified components.

When reinstalling an application, this option runs the RegisterTypeLibraries and InstallODBC actions.

sReinstall all shortcuts and re-cache all icons overwriting any existing shortcuts and icons.
vUse to run from the source package and re-cache the local package. Do not use the v reinstall option code for the first installation of an application or feature.

 

If the REINSTALLMODE property is defined without also defining the REINSTALL property, then the specified "detection" modes still apply and specify the "overwrite" mode for a normal installation. The REINSTALLMODE property only affects those features that are selected normally for installation. The presence of the REINSTALLMODE property does not reinstall features. The reinstallation of features requires the presence of the REINSTALL property.

The option codes for this property correspond to the command-line option '/f'. The command-line option has a default value of 'pecms'.

Note  Only those files containing checksum information are ever verified and repaired. The REINSTALLMODE_FILEVERIFY flag (the ccode above) only repairs files that have msidbFileAttributesChecksum in the Attributes column of the File Table.

Requirements

Version

Windows Installer 5.0 on Windows Server 2012, Windows 8, Windows Server 2008 R2 or Windows 7. Windows Installer 4.0 or Windows Installer 4.5 on Windows Server 2008 or Windows Vista. Windows Installer on Windows Server 2003 or Windows XP. See the Windows Installer Run-Time Requirements for information about the minimum Windows service pack that is required by a Windows Installer version.

See also

Properties

 

 

Community Additions

ADD
Show:
© 2014 Microsoft