Force files to install if the REINSTALL property is set.

This commit is contained in:
Aric Stewart 2005-11-02 14:21:17 +00:00 committed by Alexandre Julliard
parent cf8594f0fd
commit d5655f90cf
1 changed files with 3 additions and 0 deletions

View File

@ -1607,6 +1607,8 @@ static UINT SetFeatureStates(MSIPACKAGE *package)
{'A','D','D','L','O','C','A','L',0};
static const WCHAR szRemove[] =
{'R','E','M','O','V','E',0};
static const WCHAR szReinstall[] =
{'R','E','I','N','S','T','A','L','L',0};
BOOL override = FALSE;
MSICOMPONENT* component;
MSIFEATURE *feature;
@ -1642,6 +1644,7 @@ static UINT SetFeatureStates(MSIPACKAGE *package)
*/
override |= process_state_property(package,szAddLocal,INSTALLSTATE_LOCAL);
override |= process_state_property(package,szRemove,INSTALLSTATE_ABSENT);
override |= process_state_property(package,szReinstall,INSTALLSTATE_LOCAL);
if (!override)
{