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
7edea0cc
Commit
7edea0cc
authored
Aug 01, 2006
by
James Hawkins
Committed by
Alexandre Julliard
Aug 02, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi: Set the install state to INSTALLSTATE_LOCAL for features with compressed files.
parent
0424424e
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
4 deletions
+9
-4
action.c
dlls/msi/action.c
+7
-0
action.h
dlls/msi/action.h
+1
-0
package.c
dlls/msi/tests/package.c
+1
-4
No files found.
dlls/msi/action.c
View file @
7edea0cc
...
...
@@ -1328,6 +1328,7 @@ static UINT load_file(MSIRECORD *row, LPVOID param)
if
(
file
->
Attributes
&
msidbFileAttributesCompressed
)
{
file
->
Component
->
ForceLocalState
=
TRUE
;
file
->
Component
->
Action
=
INSTALLSTATE_LOCAL
;
file
->
Component
->
ActionRequest
=
INSTALLSTATE_LOCAL
;
}
...
...
@@ -1755,6 +1756,12 @@ UINT MSI_SetFeatureStates(MSIPACKAGE *package)
}
}
}
if
(
component
->
ForceLocalState
)
{
feature
->
Action
=
INSTALLSTATE_LOCAL
;
feature
->
ActionRequest
=
INSTALLSTATE_LOCAL
;
}
}
}
...
...
dlls/msi/action.h
View file @
7edea0cc
...
...
@@ -59,6 +59,7 @@ typedef struct tagMSICOMPONENT
INSTALLSTATE
ActionRequest
;
INSTALLSTATE
Action
;
BOOL
ForceLocalState
;
BOOL
Enabled
;
INT
Cost
;
INT
RefCount
;
...
...
dlls/msi/tests/package.c
View file @
7edea0cc
...
...
@@ -1683,10 +1683,7 @@ static void test_states(void)
r
=
MsiGetFeatureState
(
hpkg
,
"three"
,
&
state
,
&
action
);
ok
(
r
==
ERROR_SUCCESS
,
"Expected ERROR_SUCCESS, got %d
\n
"
,
r
);
ok
(
state
==
INSTALLSTATE_ABSENT
,
"Expected INSTALLSTATE_ABSENT, got %d
\n
"
,
state
);
todo_wine
{
ok
(
action
==
INSTALLSTATE_LOCAL
,
"Expected INSTALLSTATE_LOCAL, got %d
\n
"
,
action
);
}
ok
(
action
==
INSTALLSTATE_LOCAL
,
"Expected INSTALLSTATE_LOCAL, got %d
\n
"
,
action
);
state
=
0xdeadbee
;
action
=
0xdeadbee
;
...
...
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