Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
cbf7a1e8
Commit
cbf7a1e8
authored
Dec 24, 2010
by
Hans Leidekker
Committed by
Alexandre Julliard
Dec 24, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi: Set the Preselected property if the default feature selection is modified in a dialog.
parent
7a041d52
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
35 deletions
+27
-35
events.c
dlls/msi/events.c
+27
-35
No files found.
dlls/msi/events.c
View file @
cbf7a1e8
...
...
@@ -163,58 +163,50 @@ static UINT ControlEvent_DoAction(MSIPACKAGE* package, LPCWSTR argument,
return
ERROR_SUCCESS
;
}
static
UINT
ControlEvent_AddLocal
(
MSIPACKAGE
*
package
,
LPCWSTR
argument
,
msi_dialog
*
dialog
)
static
UINT
ControlEvent_AddLocal
(
MSIPACKAGE
*
package
,
LPCWSTR
argument
,
msi_dialog
*
dialog
)
{
MSIFEATURE
*
feature
=
NULL
;
MSIFEATURE
*
feature
;
if
(
strcmpW
(
szAll
,
argument
)
)
LIST_FOR_EACH_ENTRY
(
feature
,
&
package
->
features
,
MSIFEATURE
,
entry
)
{
MSI_SetFeatureStateW
(
package
,
argument
,
INSTALLSTATE_LOCAL
);
}
else
{
LIST_FOR_EACH_ENTRY
(
feature
,
&
package
->
features
,
MSIFEATURE
,
entry
)
msi_feature_set_state
(
package
,
feature
,
INSTALLSTATE_LOCAL
);
ACTION_UpdateComponentStates
(
package
,
argument
);
if
(
!
strcmpW
(
argument
,
feature
->
Feature
)
||
!
strcmpW
(
argument
,
szAll
))
{
if
(
feature
->
ActionRequest
!=
INSTALLSTATE_LOCAL
)
msi_set_property
(
package
->
db
,
szPreselected
,
szOne
);
MSI_SetFeatureStateW
(
package
,
feature
->
Feature
,
INSTALLSTATE_LOCAL
);
}
}
return
ERROR_SUCCESS
;
}
static
UINT
ControlEvent_Remove
(
MSIPACKAGE
*
package
,
LPCWSTR
argument
,
msi_dialog
*
dialog
)
static
UINT
ControlEvent_Remove
(
MSIPACKAGE
*
package
,
LPCWSTR
argument
,
msi_dialog
*
dialog
)
{
MSIFEATURE
*
feature
=
NULL
;
MSIFEATURE
*
feature
;
if
(
strcmpW
(
szAll
,
argument
))
{
MSI_SetFeatureStateW
(
package
,
argument
,
INSTALLSTATE_ABSENT
);
}
else
LIST_FOR_EACH_ENTRY
(
feature
,
&
package
->
features
,
MSIFEATURE
,
entry
)
{
LIST_FOR_EACH_ENTRY
(
feature
,
&
package
->
features
,
MSIFEATURE
,
entry
)
msi_feature_set_state
(
package
,
feature
,
INSTALLSTATE_ABSENT
);
ACTION_UpdateComponentStates
(
package
,
argument
);
if
(
!
strcmpW
(
argument
,
feature
->
Feature
)
||
!
strcmpW
(
argument
,
szAll
))
{
if
(
feature
->
ActionRequest
!=
INSTALLSTATE_ABSENT
)
msi_set_property
(
package
->
db
,
szPreselected
,
szOne
);
MSI_SetFeatureStateW
(
package
,
feature
->
Feature
,
INSTALLSTATE_ABSENT
);
}
}
return
ERROR_SUCCESS
;
}
static
UINT
ControlEvent_AddSource
(
MSIPACKAGE
*
package
,
LPCWSTR
argument
,
msi_dialog
*
dialog
)
static
UINT
ControlEvent_AddSource
(
MSIPACKAGE
*
package
,
LPCWSTR
argument
,
msi_dialog
*
dialog
)
{
MSIFEATURE
*
feature
=
NULL
;
MSIFEATURE
*
feature
;
if
(
strcmpW
(
szAll
,
argument
)
)
LIST_FOR_EACH_ENTRY
(
feature
,
&
package
->
features
,
MSIFEATURE
,
entry
)
{
MSI_SetFeatureStateW
(
package
,
argument
,
INSTALLSTATE_SOURCE
);
}
else
{
LIST_FOR_EACH_ENTRY
(
feature
,
&
package
->
features
,
MSIFEATURE
,
entry
)
msi_feature_set_state
(
package
,
feature
,
INSTALLSTATE_SOURCE
);
ACTION_UpdateComponentStates
(
package
,
argument
);
if
(
!
strcmpW
(
argument
,
feature
->
Feature
)
||
!
strcmpW
(
argument
,
szAll
))
{
if
(
feature
->
ActionRequest
!=
INSTALLSTATE_SOURCE
)
msi_set_property
(
package
->
db
,
szPreselected
,
szOne
);
MSI_SetFeatureStateW
(
package
,
feature
->
Feature
,
INSTALLSTATE_SOURCE
);
}
}
return
ERROR_SUCCESS
;
}
...
...
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