Commit 3cd55cc9 authored by Hans Leidekker's avatar Hans Leidekker Committed by Alexandre Julliard

msi Set the feature action to INSTALLSTATE_UNKNOWN if…

msi Set the feature action to INSTALLSTATE_UNKNOWN if msidbFeatureAttributesUIDisallowAbsent is set.
parent 85874c07
...@@ -29,6 +29,7 @@ ...@@ -29,6 +29,7 @@
#include "fdi.h" #include "fdi.h"
#include "msi.h" #include "msi.h"
#include "msiquery.h" #include "msiquery.h"
#include "msidefs.h"
#include "objbase.h" #include "objbase.h"
#include "objidl.h" #include "objidl.h"
#include "winnls.h" #include "winnls.h"
...@@ -929,6 +930,10 @@ static inline void msi_feature_set_state(MSIPACKAGE *package, ...@@ -929,6 +930,10 @@ static inline void msi_feature_set_state(MSIPACKAGE *package,
feature->ActionRequest = state; feature->ActionRequest = state;
feature->Action = state; feature->Action = state;
} }
if (feature->Attributes & msidbFeatureAttributesUIDisallowAbsent)
{
feature->Action = INSTALLSTATE_UNKNOWN;
}
} }
static inline void msi_component_set_state(MSIPACKAGE *package, static inline void msi_component_set_state(MSIPACKAGE *package,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment