Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
bca0fd6a
Commit
bca0fd6a
authored
Feb 03, 2012
by
Hans Leidekker
Committed by
Alexandre Julliard
Feb 05, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi: Follow the parent state for preselected features unless the parent is an advertised feature.
parent
2cbb3844
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
2 deletions
+22
-2
action.c
dlls/msi/action.c
+22
-2
No files found.
dlls/msi/action.c
View file @
bca0fd6a
...
...
@@ -1793,6 +1793,9 @@ UINT MSI_SetFeatureStates(MSIPACKAGE *package)
}
else
if
(
fl
->
feature
->
Attributes
&
msidbFeatureAttributesFollowParent
)
{
TRACE
(
"feature %s (level %d request %d) follows parent %s (level %d request %d)
\n
"
,
debugstr_w
(
fl
->
feature
->
Feature
),
fl
->
feature
->
Level
,
fl
->
feature
->
ActionRequest
,
debugstr_w
(
feature
->
Feature
),
feature
->
Level
,
feature
->
ActionRequest
);
fl
->
feature
->
Action
=
feature
->
Action
;
fl
->
feature
->
ActionRequest
=
feature
->
ActionRequest
;
}
...
...
@@ -1819,6 +1822,23 @@ UINT MSI_SetFeatureStates(MSIPACKAGE *package)
}
}
}
LIST_FOR_EACH_ENTRY
(
feature
,
&
package
->
features
,
MSIFEATURE
,
entry
)
{
FeatureList
*
fl
;
LIST_FOR_EACH_ENTRY
(
fl
,
&
feature
->
Children
,
FeatureList
,
entry
)
{
if
(
fl
->
feature
->
Attributes
&
msidbFeatureAttributesFollowParent
&&
(
!
(
feature
->
Attributes
&
msidbFeatureAttributesFavorAdvertise
)))
{
TRACE
(
"feature %s (level %d request %d) follows parent %s (level %d request %d)
\n
"
,
debugstr_w
(
fl
->
feature
->
Feature
),
fl
->
feature
->
Level
,
fl
->
feature
->
ActionRequest
,
debugstr_w
(
feature
->
Feature
),
feature
->
Level
,
feature
->
ActionRequest
);
fl
->
feature
->
Action
=
feature
->
Action
;
fl
->
feature
->
ActionRequest
=
feature
->
ActionRequest
;
}
}
}
}
/* now we want to set component state based based on feature state */
...
...
@@ -1826,7 +1846,7 @@ UINT MSI_SetFeatureStates(MSIPACKAGE *package)
{
ComponentList
*
cl
;
TRACE
(
"
Examining Feature %s (Level %d Installed %d Request %d A
ction %d)
\n
"
,
TRACE
(
"
examining feature %s (level %d installed %d request %d a
ction %d)
\n
"
,
debugstr_w
(
feature
->
Feature
),
feature
->
Level
,
feature
->
Installed
,
feature
->
ActionRequest
,
feature
->
Action
);
...
...
@@ -1941,7 +1961,7 @@ UINT MSI_SetFeatureStates(MSIPACKAGE *package)
component
->
ActionRequest
=
INSTALLSTATE_UNKNOWN
;
}
TRACE
(
"
Result: Component %s (Installed %d Request %d A
ction %d)
\n
"
,
TRACE
(
"
component %s (installed %d request %d a
ction %d)
\n
"
,
debugstr_w
(
component
->
Component
),
component
->
Installed
,
component
->
ActionRequest
,
component
->
Action
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment