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
b7669153
Commit
b7669153
authored
Oct 30, 2006
by
Mike McCormack
Committed by
Alexandre Julliard
Oct 30, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi: Split ACTION_UpdateInstallStates into two separate functions.
parent
0e71d0e1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
8 deletions
+13
-8
action.c
dlls/msi/action.c
+13
-8
No files found.
dlls/msi/action.c
View file @
b7669153
...
...
@@ -1592,15 +1592,10 @@ static MSIFOLDER *load_folder( MSIPACKAGE *package, LPCWSTR dir )
return
folder
;
}
/* scan for and update current install states */
static
void
ACTION_UpdateInstallStates
(
MSIPACKAGE
*
package
)
static
void
ACTION_GetComponentInstallStates
(
MSIPACKAGE
*
package
)
{
MSICOMPONENT
*
comp
;
MSIFEATURE
*
feature
;
/* FIXME: component's installed state should be determined
* by the component's registration
*/
LIST_FOR_EACH_ENTRY
(
comp
,
&
package
->
components
,
MSICOMPONENT
,
entry
)
{
INSTALLSTATE
res
;
...
...
@@ -1608,12 +1603,19 @@ static void ACTION_UpdateInstallStates(MSIPACKAGE *package)
if
(
!
comp
->
ComponentId
)
continue
;
res
=
MsiGetComponentPathW
(
package
->
ProductCode
,
res
=
MsiGetComponentPathW
(
package
->
ProductCode
,
comp
->
ComponentId
,
NULL
,
NULL
);
if
(
res
<
0
)
res
=
INSTALLSTATE_ABSENT
;
comp
->
Installed
=
res
;
}
}
/* scan for and update current install states */
static
void
ACTION_UpdateFeatureInstallStates
(
MSIPACKAGE
*
package
)
{
MSICOMPONENT
*
comp
;
MSIFEATURE
*
feature
;
LIST_FOR_EACH_ENTRY
(
feature
,
&
package
->
features
,
MSIFEATURE
,
entry
)
{
...
...
@@ -1972,6 +1974,9 @@ static UINT ACTION_CostFinalize(MSIPACKAGE *package)
msiobj_release
(
&
view
->
hdr
);
}
/* read components states from the registry */
ACTION_GetComponentInstallStates
(
package
);
TRACE
(
"File calculations
\n
"
);
LIST_FOR_EACH_ENTRY
(
file
,
&
package
->
files
,
MSIFILE
,
entry
)
...
...
@@ -2053,7 +2058,7 @@ static UINT ACTION_CostFinalize(MSIPACKAGE *package)
MSI_SetPropertyW
(
package
,
szlevel
,
szOne
);
msi_free
(
level
);
ACTION_UpdateInstallStates
(
package
);
ACTION_Update
Feature
InstallStates
(
package
);
return
MSI_SetFeatureStates
(
package
);
}
...
...
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