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
3cd55cc9
Commit
3cd55cc9
authored
Oct 06, 2010
by
Hans Leidekker
Committed by
Alexandre Julliard
Oct 06, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi Set the feature action to INSTALLSTATE_UNKNOWN if…
msi Set the feature action to INSTALLSTATE_UNKNOWN if msidbFeatureAttributesUIDisallowAbsent is set.
parent
85874c07
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
291 additions
and
0 deletions
+291
-0
msipriv.h
dlls/msi/msipriv.h
+5
-0
package.c
dlls/msi/tests/package.c
+286
-0
No files found.
dlls/msi/msipriv.h
View file @
3cd55cc9
...
@@ -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
,
...
...
dlls/msi/tests/package.c
View file @
3cd55cc9
...
@@ -2680,6 +2680,13 @@ static void test_states(void)
...
@@ -2680,6 +2680,13 @@ static void test_states(void)
r
=
add_component_entry
(
hdb
,
"'chi', '{E6B539AB-5DA9-4236-A2D2-E341A50B4C38}', 'TARGETDIR', 1, '', 'chi_file'"
);
r
=
add_component_entry
(
hdb
,
"'chi', '{E6B539AB-5DA9-4236-A2D2-E341A50B4C38}', 'TARGETDIR', 1, '', 'chi_file'"
);
ok
(
r
==
ERROR_SUCCESS
,
"cannot add component: %d
\n
"
,
r
);
ok
(
r
==
ERROR_SUCCESS
,
"cannot add component: %d
\n
"
,
r
);
/* msidbFeatureAttributesUIDisallowAbsent */
r
=
add_feature_entry
(
hdb
,
"'eleven', '', '', '', 2, 1, '', 16"
);
ok
(
r
==
ERROR_SUCCESS
,
"cannot add feature: %d
\n
"
,
r
);
r
=
add_component_entry
(
hdb
,
"'psi', '{A06B23B5-746B-427A-8A6E-FD6AC8F46A95}', 'TARGETDIR', 1, '', 'psi_file'"
);
ok
(
r
==
ERROR_SUCCESS
,
"cannot add component: %d
\n
"
,
r
);
r
=
create_feature_components_table
(
hdb
);
r
=
create_feature_components_table
(
hdb
);
ok
(
r
==
ERROR_SUCCESS
,
"cannot create FeatureComponents table: %d
\n
"
,
r
);
ok
(
r
==
ERROR_SUCCESS
,
"cannot create FeatureComponents table: %d
\n
"
,
r
);
...
@@ -2749,6 +2756,9 @@ static void test_states(void)
...
@@ -2749,6 +2756,9 @@ static void test_states(void)
r
=
add_feature_components_entry
(
hdb
,
"'ten', 'chi'"
);
r
=
add_feature_components_entry
(
hdb
,
"'ten', 'chi'"
);
ok
(
r
==
ERROR_SUCCESS
,
"cannot add feature components: %d
\n
"
,
r
);
ok
(
r
==
ERROR_SUCCESS
,
"cannot add feature components: %d
\n
"
,
r
);
r
=
add_feature_components_entry
(
hdb
,
"'eleven', 'psi'"
);
ok
(
r
==
ERROR_SUCCESS
,
"cannot add feature components: %d
\n
"
,
r
);
r
=
create_file_table
(
hdb
);
r
=
create_file_table
(
hdb
);
ok
(
r
==
ERROR_SUCCESS
,
"cannot create File table: %d
\n
"
,
r
);
ok
(
r
==
ERROR_SUCCESS
,
"cannot create File table: %d
\n
"
,
r
);
...
@@ -2816,6 +2826,9 @@ static void test_states(void)
...
@@ -2816,6 +2826,9 @@ static void test_states(void)
r
=
add_file_entry
(
hdb
,
"'chi_file', 'chi', 'chi.txt', 100, '', '1033', 8192, 1"
);
r
=
add_file_entry
(
hdb
,
"'chi_file', 'chi', 'chi.txt', 100, '', '1033', 8192, 1"
);
ok
(
r
==
ERROR_SUCCESS
,
"cannot add file: %d
\n
"
,
r
);
ok
(
r
==
ERROR_SUCCESS
,
"cannot add file: %d
\n
"
,
r
);
r
=
add_file_entry
(
hdb
,
"'psi_file', 'psi', 'psi.txt', 100, '', '1033', 8192, 1"
);
ok
(
r
==
ERROR_SUCCESS
,
"cannot add file: %d
\n
"
,
r
);
MsiDatabaseCommit
(
hdb
);
MsiDatabaseCommit
(
hdb
);
/* these properties must not be in the saved msi file */
/* these properties must not be in the saved msi file */
...
@@ -2921,6 +2934,13 @@ static void test_states(void)
...
@@ -2921,6 +2934,13 @@ static void test_states(void)
state
=
0xdeadbee
;
state
=
0xdeadbee
;
action
=
0xdeadbee
;
action
=
0xdeadbee
;
r
=
MsiGetFeatureState
(
hpkg
,
"eleven"
,
&
state
,
&
action
);
ok
(
r
==
ERROR_UNKNOWN_FEATURE
,
"Expected ERROR_UNKNOWN_FEATURE, got %d
\n
"
,
r
);
ok
(
state
==
0xdeadbee
,
"Expected 0xdeadbee, got %d
\n
"
,
state
);
ok
(
action
==
0xdeadbee
,
"Expected 0xdeadbee, got %d
\n
"
,
action
);
state
=
0xdeadbee
;
action
=
0xdeadbee
;
r
=
MsiGetComponentState
(
hpkg
,
"alpha"
,
&
state
,
&
action
);
r
=
MsiGetComponentState
(
hpkg
,
"alpha"
,
&
state
,
&
action
);
ok
(
r
==
ERROR_UNKNOWN_COMPONENT
,
"Expected ERROR_UNKNOWN_COMPONENT, got %d
\n
"
,
r
);
ok
(
r
==
ERROR_UNKNOWN_COMPONENT
,
"Expected ERROR_UNKNOWN_COMPONENT, got %d
\n
"
,
r
);
ok
(
state
==
0xdeadbee
,
"Expected 0xdeadbee, got %d
\n
"
,
state
);
ok
(
state
==
0xdeadbee
,
"Expected 0xdeadbee, got %d
\n
"
,
state
);
...
@@ -3066,6 +3086,13 @@ static void test_states(void)
...
@@ -3066,6 +3086,13 @@ static void test_states(void)
ok
(
state
==
0xdeadbee
,
"Expected 0xdeadbee, got %d
\n
"
,
state
);
ok
(
state
==
0xdeadbee
,
"Expected 0xdeadbee, got %d
\n
"
,
state
);
ok
(
action
==
0xdeadbee
,
"Expected 0xdeadbee, got %d
\n
"
,
action
);
ok
(
action
==
0xdeadbee
,
"Expected 0xdeadbee, got %d
\n
"
,
action
);
state
=
0xdeadbee
;
action
=
0xdeadbee
;
r
=
MsiGetComponentState
(
hpkg
,
"psi"
,
&
state
,
&
action
);
ok
(
r
==
ERROR_UNKNOWN_COMPONENT
,
"Expected ERROR_UNKNOWN_COMPONENT, got %d
\n
"
,
r
);
ok
(
state
==
0xdeadbee
,
"Expected 0xdeadbee, got %d
\n
"
,
state
);
ok
(
action
==
0xdeadbee
,
"Expected 0xdeadbee, got %d
\n
"
,
action
);
r
=
MsiDoAction
(
hpkg
,
"CostInitialize"
);
r
=
MsiDoAction
(
hpkg
,
"CostInitialize"
);
ok
(
r
==
ERROR_SUCCESS
,
"cost init failed
\n
"
);
ok
(
r
==
ERROR_SUCCESS
,
"cost init failed
\n
"
);
...
@@ -3141,6 +3168,13 @@ static void test_states(void)
...
@@ -3141,6 +3168,13 @@ static void test_states(void)
state
=
0xdeadbee
;
state
=
0xdeadbee
;
action
=
0xdeadbee
;
action
=
0xdeadbee
;
r
=
MsiGetFeatureState
(
hpkg
,
"eleven"
,
&
state
,
&
action
);
ok
(
r
==
ERROR_SUCCESS
,
"Expected ERROR_SUCCESS, got %d
\n
"
,
r
);
ok
(
state
==
INSTALLSTATE_UNKNOWN
,
"Expected INSTALLSTATE_UNKNOWN, got %d
\n
"
,
state
);
ok
(
action
==
INSTALLSTATE_UNKNOWN
,
"Expected INSTALLSTATE_UNKNOWN, got %d
\n
"
,
action
);
state
=
0xdeadbee
;
action
=
0xdeadbee
;
r
=
MsiGetComponentState
(
hpkg
,
"alpha"
,
&
state
,
&
action
);
r
=
MsiGetComponentState
(
hpkg
,
"alpha"
,
&
state
,
&
action
);
ok
(
r
==
ERROR_SUCCESS
,
"Expected ERROR_SUCCESS, got %d
\n
"
,
r
);
ok
(
r
==
ERROR_SUCCESS
,
"Expected ERROR_SUCCESS, got %d
\n
"
,
r
);
ok
(
state
==
INSTALLSTATE_UNKNOWN
,
"Expected INSTALLSTATE_UNKNOWN, got %d
\n
"
,
state
);
ok
(
state
==
INSTALLSTATE_UNKNOWN
,
"Expected INSTALLSTATE_UNKNOWN, got %d
\n
"
,
state
);
...
@@ -3286,6 +3320,13 @@ static void test_states(void)
...
@@ -3286,6 +3320,13 @@ static void test_states(void)
ok
(
state
==
INSTALLSTATE_UNKNOWN
,
"Expected INSTALLSTATE_UNKNOWN, got %d
\n
"
,
state
);
ok
(
state
==
INSTALLSTATE_UNKNOWN
,
"Expected INSTALLSTATE_UNKNOWN, got %d
\n
"
,
state
);
ok
(
action
==
INSTALLSTATE_UNKNOWN
,
"Expected INSTALLSTATE_UNKNOWN, got %d
\n
"
,
action
);
ok
(
action
==
INSTALLSTATE_UNKNOWN
,
"Expected INSTALLSTATE_UNKNOWN, got %d
\n
"
,
action
);
state
=
0xdeadbee
;
action
=
0xdeadbee
;
r
=
MsiGetComponentState
(
hpkg
,
"psi"
,
&
state
,
&
action
);
ok
(
r
==
ERROR_SUCCESS
,
"Expected ERROR_SUCCESS, got %d
\n
"
,
r
);
ok
(
state
==
INSTALLSTATE_UNKNOWN
,
"Expected INSTALLSTATE_UNKNOWN, got %d
\n
"
,
state
);
ok
(
action
==
INSTALLSTATE_UNKNOWN
,
"Expected INSTALLSTATE_UNKNOWN, got %d
\n
"
,
action
);
r
=
MsiDoAction
(
hpkg
,
"FileCost"
);
r
=
MsiDoAction
(
hpkg
,
"FileCost"
);
ok
(
r
==
ERROR_SUCCESS
,
"file cost failed
\n
"
);
ok
(
r
==
ERROR_SUCCESS
,
"file cost failed
\n
"
);
...
@@ -3374,6 +3415,13 @@ static void test_states(void)
...
@@ -3374,6 +3415,13 @@ static void test_states(void)
state
=
0xdeadbee
;
state
=
0xdeadbee
;
action
=
0xdeadbee
;
action
=
0xdeadbee
;
r
=
MsiGetFeatureState
(
hpkg
,
"eleven"
,
&
state
,
&
action
);
ok
(
r
==
ERROR_SUCCESS
,
"Expected ERROR_SUCCESS, got %d
\n
"
,
r
);
ok
(
state
==
INSTALLSTATE_UNKNOWN
,
"Expected INSTALLSTATE_UNKNOWN, got %d
\n
"
,
state
);
ok
(
action
==
INSTALLSTATE_UNKNOWN
,
"Expected INSTALLSTATE_UNKNOWN, got %d
\n
"
,
action
);
state
=
0xdeadbee
;
action
=
0xdeadbee
;
r
=
MsiGetComponentState
(
hpkg
,
"alpha"
,
&
state
,
&
action
);
r
=
MsiGetComponentState
(
hpkg
,
"alpha"
,
&
state
,
&
action
);
ok
(
r
==
ERROR_SUCCESS
,
"Expected ERROR_SUCCESS, got %d
\n
"
,
r
);
ok
(
r
==
ERROR_SUCCESS
,
"Expected ERROR_SUCCESS, got %d
\n
"
,
r
);
ok
(
state
==
INSTALLSTATE_UNKNOWN
,
"Expected INSTALLSTATE_UNKNOWN, got %d
\n
"
,
state
);
ok
(
state
==
INSTALLSTATE_UNKNOWN
,
"Expected INSTALLSTATE_UNKNOWN, got %d
\n
"
,
state
);
...
@@ -3519,6 +3567,13 @@ static void test_states(void)
...
@@ -3519,6 +3567,13 @@ static void test_states(void)
ok
(
state
==
INSTALLSTATE_UNKNOWN
,
"Expected INSTALLSTATE_UNKNOWN, got %d
\n
"
,
state
);
ok
(
state
==
INSTALLSTATE_UNKNOWN
,
"Expected INSTALLSTATE_UNKNOWN, got %d
\n
"
,
state
);
ok
(
action
==
INSTALLSTATE_UNKNOWN
,
"Expected INSTALLSTATE_UNKNOWN, got %d
\n
"
,
action
);
ok
(
action
==
INSTALLSTATE_UNKNOWN
,
"Expected INSTALLSTATE_UNKNOWN, got %d
\n
"
,
action
);
state
=
0xdeadbee
;
action
=
0xdeadbee
;
r
=
MsiGetComponentState
(
hpkg
,
"psi"
,
&
state
,
&
action
);
ok
(
r
==
ERROR_SUCCESS
,
"Expected ERROR_SUCCESS, got %d
\n
"
,
r
);
ok
(
state
==
INSTALLSTATE_UNKNOWN
,
"Expected INSTALLSTATE_UNKNOWN, got %d
\n
"
,
state
);
ok
(
action
==
INSTALLSTATE_UNKNOWN
,
"Expected INSTALLSTATE_UNKNOWN, got %d
\n
"
,
action
);
r
=
MsiDoAction
(
hpkg
,
"CostFinalize"
);
r
=
MsiDoAction
(
hpkg
,
"CostFinalize"
);
ok
(
r
==
ERROR_SUCCESS
,
"cost finalize failed: %d
\n
"
,
r
);
ok
(
r
==
ERROR_SUCCESS
,
"cost finalize failed: %d
\n
"
,
r
);
...
@@ -3594,6 +3649,13 @@ static void test_states(void)
...
@@ -3594,6 +3649,13 @@ static void test_states(void)
state
=
0xdeadbee
;
state
=
0xdeadbee
;
action
=
0xdeadbee
;
action
=
0xdeadbee
;
r
=
MsiGetFeatureState
(
hpkg
,
"eleven"
,
&
state
,
&
action
);
ok
(
r
==
ERROR_SUCCESS
,
"Expected ERROR_SUCCESS, got %d
\n
"
,
r
);
ok
(
state
==
INSTALLSTATE_ABSENT
,
"Expected INSTALLSTATE_ABSENT, got %d
\n
"
,
state
);
ok
(
action
==
INSTALLSTATE_UNKNOWN
,
"Expected INSTALLSTATE_UNKNOWN, got %d
\n
"
,
action
);
state
=
0xdeadbee
;
action
=
0xdeadbee
;
r
=
MsiGetComponentState
(
hpkg
,
"alpha"
,
&
state
,
&
action
);
r
=
MsiGetComponentState
(
hpkg
,
"alpha"
,
&
state
,
&
action
);
ok
(
r
==
ERROR_SUCCESS
,
"Expected ERROR_SUCCESS, got %d
\n
"
,
r
);
ok
(
r
==
ERROR_SUCCESS
,
"Expected ERROR_SUCCESS, got %d
\n
"
,
r
);
ok
(
state
==
INSTALLSTATE_ABSENT
,
"Expected INSTALLSTATE_ABSENT, got %d
\n
"
,
state
);
ok
(
state
==
INSTALLSTATE_ABSENT
,
"Expected INSTALLSTATE_ABSENT, got %d
\n
"
,
state
);
...
@@ -3739,6 +3801,13 @@ static void test_states(void)
...
@@ -3739,6 +3801,13 @@ static void test_states(void)
ok
(
state
==
INSTALLSTATE_ABSENT
,
"Expected INSTALLSTATE_ABSENT, got %d
\n
"
,
state
);
ok
(
state
==
INSTALLSTATE_ABSENT
,
"Expected INSTALLSTATE_ABSENT, got %d
\n
"
,
state
);
ok
(
action
==
INSTALLSTATE_UNKNOWN
,
"Expected INSTALLSTATE_UNKNOWN, got %d
\n
"
,
action
);
ok
(
action
==
INSTALLSTATE_UNKNOWN
,
"Expected INSTALLSTATE_UNKNOWN, got %d
\n
"
,
action
);
state
=
0xdeadbee
;
action
=
0xdeadbee
;
r
=
MsiGetComponentState
(
hpkg
,
"psi"
,
&
state
,
&
action
);
ok
(
r
==
ERROR_SUCCESS
,
"Expected ERROR_SUCCESS, got %d
\n
"
,
r
);
ok
(
state
==
INSTALLSTATE_ABSENT
,
"Expected INSTALLSTATE_ABSENT, got %d
\n
"
,
state
);
ok
(
action
==
INSTALLSTATE_UNKNOWN
,
"Expected INSTALLSTATE_UNKNOWN, got %d
\n
"
,
action
);
MsiCloseHandle
(
hpkg
);
MsiCloseHandle
(
hpkg
);
/* publish the features and components */
/* publish the features and components */
...
@@ -3838,6 +3907,13 @@ static void test_states(void)
...
@@ -3838,6 +3907,13 @@ static void test_states(void)
state
=
0xdeadbee
;
state
=
0xdeadbee
;
action
=
0xdeadbee
;
action
=
0xdeadbee
;
r
=
MsiGetFeatureState
(
hpkg
,
"eleven"
,
&
state
,
&
action
);
ok
(
r
==
ERROR_UNKNOWN_FEATURE
,
"Expected ERROR_UNKNOWN_FEATURE, got %d
\n
"
,
r
);
ok
(
state
==
0xdeadbee
,
"Expected 0xdeadbee, got %d
\n
"
,
state
);
ok
(
action
==
0xdeadbee
,
"Expected 0xdeadbee, got %d
\n
"
,
action
);
state
=
0xdeadbee
;
action
=
0xdeadbee
;
r
=
MsiGetComponentState
(
hpkg
,
"alpha"
,
&
state
,
&
action
);
r
=
MsiGetComponentState
(
hpkg
,
"alpha"
,
&
state
,
&
action
);
ok
(
r
==
ERROR_UNKNOWN_COMPONENT
,
"Expected ERROR_UNKNOWN_COMPONENT, got %d
\n
"
,
r
);
ok
(
r
==
ERROR_UNKNOWN_COMPONENT
,
"Expected ERROR_UNKNOWN_COMPONENT, got %d
\n
"
,
r
);
ok
(
state
==
0xdeadbee
,
"Expected 0xdeadbee, got %d
\n
"
,
state
);
ok
(
state
==
0xdeadbee
,
"Expected 0xdeadbee, got %d
\n
"
,
state
);
...
@@ -3983,6 +4059,13 @@ static void test_states(void)
...
@@ -3983,6 +4059,13 @@ static void test_states(void)
ok
(
state
==
0xdeadbee
,
"Expected 0xdeadbee, got %d
\n
"
,
state
);
ok
(
state
==
0xdeadbee
,
"Expected 0xdeadbee, got %d
\n
"
,
state
);
ok
(
action
==
0xdeadbee
,
"Expected 0xdeadbee, got %d
\n
"
,
action
);
ok
(
action
==
0xdeadbee
,
"Expected 0xdeadbee, got %d
\n
"
,
action
);
state
=
0xdeadbee
;
action
=
0xdeadbee
;
r
=
MsiGetComponentState
(
hpkg
,
"psi"
,
&
state
,
&
action
);
ok
(
r
==
ERROR_UNKNOWN_COMPONENT
,
"Expected ERROR_UNKNOWN_COMPONENT, got %d
\n
"
,
r
);
ok
(
state
==
0xdeadbee
,
"Expected 0xdeadbee, got %d
\n
"
,
state
);
ok
(
action
==
0xdeadbee
,
"Expected 0xdeadbee, got %d
\n
"
,
action
);
r
=
MsiDoAction
(
hpkg
,
"CostInitialize"
);
r
=
MsiDoAction
(
hpkg
,
"CostInitialize"
);
ok
(
r
==
ERROR_SUCCESS
,
"cost init failed
\n
"
);
ok
(
r
==
ERROR_SUCCESS
,
"cost init failed
\n
"
);
...
@@ -4058,6 +4141,13 @@ static void test_states(void)
...
@@ -4058,6 +4141,13 @@ static void test_states(void)
state
=
0xdeadbee
;
state
=
0xdeadbee
;
action
=
0xdeadbee
;
action
=
0xdeadbee
;
r
=
MsiGetFeatureState
(
hpkg
,
"eleven"
,
&
state
,
&
action
);
ok
(
r
==
ERROR_SUCCESS
,
"Expected ERROR_SUCCESS, got %d
\n
"
,
r
);
ok
(
state
==
INSTALLSTATE_UNKNOWN
,
"Expected INSTALLSTATE_UNKNOWN, got %d
\n
"
,
state
);
ok
(
action
==
INSTALLSTATE_UNKNOWN
,
"Expected INSTALLSTATE_UNKNOWN, got %d
\n
"
,
action
);
state
=
0xdeadbee
;
action
=
0xdeadbee
;
r
=
MsiGetComponentState
(
hpkg
,
"alpha"
,
&
state
,
&
action
);
r
=
MsiGetComponentState
(
hpkg
,
"alpha"
,
&
state
,
&
action
);
ok
(
r
==
ERROR_SUCCESS
,
"Expected ERROR_SUCCESS, got %d
\n
"
,
r
);
ok
(
r
==
ERROR_SUCCESS
,
"Expected ERROR_SUCCESS, got %d
\n
"
,
r
);
ok
(
state
==
INSTALLSTATE_UNKNOWN
,
"Expected INSTALLSTATE_UNKNOWN, got %d
\n
"
,
state
);
ok
(
state
==
INSTALLSTATE_UNKNOWN
,
"Expected INSTALLSTATE_UNKNOWN, got %d
\n
"
,
state
);
...
@@ -4203,6 +4293,13 @@ static void test_states(void)
...
@@ -4203,6 +4293,13 @@ static void test_states(void)
ok
(
state
==
INSTALLSTATE_UNKNOWN
,
"Expected INSTALLSTATE_UNKNOWN, got %d
\n
"
,
state
);
ok
(
state
==
INSTALLSTATE_UNKNOWN
,
"Expected INSTALLSTATE_UNKNOWN, got %d
\n
"
,
state
);
ok
(
action
==
INSTALLSTATE_UNKNOWN
,
"Expected INSTALLSTATE_UNKNOWN, got %d
\n
"
,
action
);
ok
(
action
==
INSTALLSTATE_UNKNOWN
,
"Expected INSTALLSTATE_UNKNOWN, got %d
\n
"
,
action
);
state
=
0xdeadbee
;
action
=
0xdeadbee
;
r
=
MsiGetComponentState
(
hpkg
,
"psi"
,
&
state
,
&
action
);
ok
(
r
==
ERROR_SUCCESS
,
"Expected ERROR_SUCCESS, got %d
\n
"
,
r
);
ok
(
state
==
INSTALLSTATE_UNKNOWN
,
"Expected INSTALLSTATE_UNKNOWN, got %d
\n
"
,
state
);
ok
(
action
==
INSTALLSTATE_UNKNOWN
,
"Expected INSTALLSTATE_UNKNOWN, got %d
\n
"
,
action
);
r
=
MsiDoAction
(
hpkg
,
"FileCost"
);
r
=
MsiDoAction
(
hpkg
,
"FileCost"
);
ok
(
r
==
ERROR_SUCCESS
,
"file cost failed
\n
"
);
ok
(
r
==
ERROR_SUCCESS
,
"file cost failed
\n
"
);
...
@@ -4416,6 +4513,13 @@ static void test_states(void)
...
@@ -4416,6 +4513,13 @@ static void test_states(void)
ok
(
state
==
INSTALLSTATE_UNKNOWN
,
"Expected INSTALLSTATE_UNKNOWN, got %d
\n
"
,
state
);
ok
(
state
==
INSTALLSTATE_UNKNOWN
,
"Expected INSTALLSTATE_UNKNOWN, got %d
\n
"
,
state
);
ok
(
action
==
INSTALLSTATE_UNKNOWN
,
"Expected INSTALLSTATE_UNKNOWN, got %d
\n
"
,
action
);
ok
(
action
==
INSTALLSTATE_UNKNOWN
,
"Expected INSTALLSTATE_UNKNOWN, got %d
\n
"
,
action
);
state
=
0xdeadbee
;
action
=
0xdeadbee
;
r
=
MsiGetComponentState
(
hpkg
,
"psi"
,
&
state
,
&
action
);
ok
(
r
==
ERROR_SUCCESS
,
"Expected ERROR_SUCCESS, got %d
\n
"
,
r
);
ok
(
state
==
INSTALLSTATE_UNKNOWN
,
"Expected INSTALLSTATE_UNKNOWN, got %d
\n
"
,
state
);
ok
(
action
==
INSTALLSTATE_UNKNOWN
,
"Expected INSTALLSTATE_UNKNOWN, got %d
\n
"
,
action
);
r
=
MsiDoAction
(
hpkg
,
"CostFinalize"
);
r
=
MsiDoAction
(
hpkg
,
"CostFinalize"
);
ok
(
r
==
ERROR_SUCCESS
,
"cost finalize failed: %d
\n
"
,
r
);
ok
(
r
==
ERROR_SUCCESS
,
"cost finalize failed: %d
\n
"
,
r
);
...
@@ -4491,6 +4595,13 @@ static void test_states(void)
...
@@ -4491,6 +4595,13 @@ static void test_states(void)
state
=
0xdeadbee
;
state
=
0xdeadbee
;
action
=
0xdeadbee
;
action
=
0xdeadbee
;
r
=
MsiGetFeatureState
(
hpkg
,
"eleven"
,
&
state
,
&
action
);
ok
(
r
==
ERROR_SUCCESS
,
"Expected ERROR_SUCCESS, got %d
\n
"
,
r
);
ok
(
state
==
INSTALLSTATE_ABSENT
,
"Expected INSTALLSTATE_ABSENT, got %d
\n
"
,
state
);
ok
(
action
==
INSTALLSTATE_UNKNOWN
,
"Expected INSTALLSTATE_UNKNOWN, got %d
\n
"
,
action
);
state
=
0xdeadbee
;
action
=
0xdeadbee
;
r
=
MsiGetComponentState
(
hpkg
,
"alpha"
,
&
state
,
&
action
);
r
=
MsiGetComponentState
(
hpkg
,
"alpha"
,
&
state
,
&
action
);
ok
(
r
==
ERROR_SUCCESS
,
"Expected ERROR_SUCCESS, got %d
\n
"
,
r
);
ok
(
r
==
ERROR_SUCCESS
,
"Expected ERROR_SUCCESS, got %d
\n
"
,
r
);
ok
(
state
==
INSTALLSTATE_LOCAL
,
"Expected INSTALLSTATE_LOCAL, got %d
\n
"
,
state
);
ok
(
state
==
INSTALLSTATE_LOCAL
,
"Expected INSTALLSTATE_LOCAL, got %d
\n
"
,
state
);
...
@@ -4636,6 +4747,13 @@ static void test_states(void)
...
@@ -4636,6 +4747,13 @@ static void test_states(void)
ok
(
state
==
INSTALLSTATE_ABSENT
,
"Expected INSTALLSTATE_ABSENT, got %d
\n
"
,
state
);
ok
(
state
==
INSTALLSTATE_ABSENT
,
"Expected INSTALLSTATE_ABSENT, got %d
\n
"
,
state
);
ok
(
action
==
INSTALLSTATE_UNKNOWN
,
"Expected INSTALLSTATE_UNKNOWN, got %d
\n
"
,
action
);
ok
(
action
==
INSTALLSTATE_UNKNOWN
,
"Expected INSTALLSTATE_UNKNOWN, got %d
\n
"
,
action
);
state
=
0xdeadbee
;
action
=
0xdeadbee
;
r
=
MsiGetComponentState
(
hpkg
,
"psi"
,
&
state
,
&
action
);
ok
(
r
==
ERROR_SUCCESS
,
"Expected ERROR_SUCCESS, got %d
\n
"
,
r
);
ok
(
state
==
INSTALLSTATE_ABSENT
,
"Expected INSTALLSTATE_ABSENT, got %d
\n
"
,
state
);
ok
(
action
==
INSTALLSTATE_UNKNOWN
,
"Expected INSTALLSTATE_UNKNOWN, got %d
\n
"
,
action
);
MsiCloseHandle
(
hpkg
);
MsiCloseHandle
(
hpkg
);
/* uninstall the product */
/* uninstall the product */
...
@@ -4728,6 +4846,13 @@ static void test_states(void)
...
@@ -4728,6 +4846,13 @@ static void test_states(void)
state
=
0xdeadbee
;
state
=
0xdeadbee
;
action
=
0xdeadbee
;
action
=
0xdeadbee
;
r
=
MsiGetFeatureState
(
hpkg
,
"eleven"
,
&
state
,
&
action
);
ok
(
r
==
ERROR_UNKNOWN_FEATURE
,
"Expected ERROR_UNKNOWN_FEATURE, got %d
\n
"
,
r
);
ok
(
state
==
0xdeadbee
,
"Expected 0xdeadbee, got %d
\n
"
,
state
);
ok
(
action
==
0xdeadbee
,
"Expected 0xdeadbee, got %d
\n
"
,
action
);
state
=
0xdeadbee
;
action
=
0xdeadbee
;
r
=
MsiGetComponentState
(
hpkg
,
"alpha"
,
&
state
,
&
action
);
r
=
MsiGetComponentState
(
hpkg
,
"alpha"
,
&
state
,
&
action
);
ok
(
r
==
ERROR_UNKNOWN_COMPONENT
,
"Expected ERROR_UNKNOWN_COMPONENT, got %d
\n
"
,
r
);
ok
(
r
==
ERROR_UNKNOWN_COMPONENT
,
"Expected ERROR_UNKNOWN_COMPONENT, got %d
\n
"
,
r
);
ok
(
state
==
0xdeadbee
,
"Expected 0xdeadbee, got %d
\n
"
,
state
);
ok
(
state
==
0xdeadbee
,
"Expected 0xdeadbee, got %d
\n
"
,
state
);
...
@@ -4873,6 +4998,13 @@ static void test_states(void)
...
@@ -4873,6 +4998,13 @@ static void test_states(void)
ok
(
state
==
0xdeadbee
,
"Expected 0xdeadbee, got %d
\n
"
,
state
);
ok
(
state
==
0xdeadbee
,
"Expected 0xdeadbee, got %d
\n
"
,
state
);
ok
(
action
==
0xdeadbee
,
"Expected 0xdeadbee, got %d
\n
"
,
action
);
ok
(
action
==
0xdeadbee
,
"Expected 0xdeadbee, got %d
\n
"
,
action
);
state
=
0xdeadbee
;
action
=
0xdeadbee
;
r
=
MsiGetComponentState
(
hpkg
,
"psi"
,
&
state
,
&
action
);
ok
(
r
==
ERROR_UNKNOWN_COMPONENT
,
"Expected ERROR_UNKNOWN_COMPONENT, got %d
\n
"
,
r
);
ok
(
state
==
0xdeadbee
,
"Expected 0xdeadbee, got %d
\n
"
,
state
);
ok
(
action
==
0xdeadbee
,
"Expected 0xdeadbee, got %d
\n
"
,
action
);
r
=
MsiDoAction
(
hpkg
,
"CostInitialize"
);
r
=
MsiDoAction
(
hpkg
,
"CostInitialize"
);
ok
(
r
==
ERROR_SUCCESS
,
"cost init failed
\n
"
);
ok
(
r
==
ERROR_SUCCESS
,
"cost init failed
\n
"
);
...
@@ -4948,6 +5080,13 @@ static void test_states(void)
...
@@ -4948,6 +5080,13 @@ static void test_states(void)
state
=
0xdeadbee
;
state
=
0xdeadbee
;
action
=
0xdeadbee
;
action
=
0xdeadbee
;
r
=
MsiGetFeatureState
(
hpkg
,
"eleven"
,
&
state
,
&
action
);
ok
(
r
==
ERROR_SUCCESS
,
"Expected ERROR_SUCCESS, got %d
\n
"
,
r
);
ok
(
state
==
INSTALLSTATE_UNKNOWN
,
"Expected INSTALLSTATE_UNKNOWN, got %d
\n
"
,
state
);
ok
(
action
==
INSTALLSTATE_UNKNOWN
,
"Expected INSTALLSTATE_UNKNOWN, got %d
\n
"
,
action
);
state
=
0xdeadbee
;
action
=
0xdeadbee
;
r
=
MsiGetComponentState
(
hpkg
,
"alpha"
,
&
state
,
&
action
);
r
=
MsiGetComponentState
(
hpkg
,
"alpha"
,
&
state
,
&
action
);
ok
(
r
==
ERROR_SUCCESS
,
"Expected ERROR_SUCCESS, got %d
\n
"
,
r
);
ok
(
r
==
ERROR_SUCCESS
,
"Expected ERROR_SUCCESS, got %d
\n
"
,
r
);
ok
(
state
==
INSTALLSTATE_UNKNOWN
,
"Expected INSTALLSTATE_UNKNOWN, got %d
\n
"
,
state
);
ok
(
state
==
INSTALLSTATE_UNKNOWN
,
"Expected INSTALLSTATE_UNKNOWN, got %d
\n
"
,
state
);
...
@@ -5093,6 +5232,13 @@ static void test_states(void)
...
@@ -5093,6 +5232,13 @@ static void test_states(void)
ok
(
state
==
INSTALLSTATE_UNKNOWN
,
"Expected INSTALLSTATE_UNKNOWN, got %d
\n
"
,
state
);
ok
(
state
==
INSTALLSTATE_UNKNOWN
,
"Expected INSTALLSTATE_UNKNOWN, got %d
\n
"
,
state
);
ok
(
action
==
INSTALLSTATE_UNKNOWN
,
"Expected INSTALLSTATE_UNKNOWN, got %d
\n
"
,
action
);
ok
(
action
==
INSTALLSTATE_UNKNOWN
,
"Expected INSTALLSTATE_UNKNOWN, got %d
\n
"
,
action
);
state
=
0xdeadbee
;
action
=
0xdeadbee
;
r
=
MsiGetComponentState
(
hpkg
,
"psi"
,
&
state
,
&
action
);
ok
(
r
==
ERROR_SUCCESS
,
"Expected ERROR_SUCCESS, got %d
\n
"
,
r
);
ok
(
state
==
INSTALLSTATE_UNKNOWN
,
"Expected INSTALLSTATE_UNKNOWN, got %d
\n
"
,
state
);
ok
(
action
==
INSTALLSTATE_UNKNOWN
,
"Expected INSTALLSTATE_UNKNOWN, got %d
\n
"
,
action
);
r
=
MsiDoAction
(
hpkg
,
"FileCost"
);
r
=
MsiDoAction
(
hpkg
,
"FileCost"
);
ok
(
r
==
ERROR_SUCCESS
,
"file cost failed
\n
"
);
ok
(
r
==
ERROR_SUCCESS
,
"file cost failed
\n
"
);
...
@@ -5168,6 +5314,13 @@ static void test_states(void)
...
@@ -5168,6 +5314,13 @@ static void test_states(void)
state
=
0xdeadbee
;
state
=
0xdeadbee
;
action
=
0xdeadbee
;
action
=
0xdeadbee
;
r
=
MsiGetFeatureState
(
hpkg
,
"eleven"
,
&
state
,
&
action
);
ok
(
r
==
ERROR_SUCCESS
,
"Expected ERROR_SUCCESS, got %d
\n
"
,
r
);
ok
(
state
==
INSTALLSTATE_UNKNOWN
,
"Expected INSTALLSTATE_UNKNOWN, got %d
\n
"
,
state
);
ok
(
action
==
INSTALLSTATE_UNKNOWN
,
"Expected INSTALLSTATE_UNKNOWN, got %d
\n
"
,
action
);
state
=
0xdeadbee
;
action
=
0xdeadbee
;
r
=
MsiGetComponentState
(
hpkg
,
"alpha"
,
&
state
,
&
action
);
r
=
MsiGetComponentState
(
hpkg
,
"alpha"
,
&
state
,
&
action
);
ok
(
r
==
ERROR_SUCCESS
,
"Expected ERROR_SUCCESS, got %d
\n
"
,
r
);
ok
(
r
==
ERROR_SUCCESS
,
"Expected ERROR_SUCCESS, got %d
\n
"
,
r
);
ok
(
state
==
INSTALLSTATE_UNKNOWN
,
"Expected INSTALLSTATE_UNKNOWN, got %d
\n
"
,
state
);
ok
(
state
==
INSTALLSTATE_UNKNOWN
,
"Expected INSTALLSTATE_UNKNOWN, got %d
\n
"
,
state
);
...
@@ -5313,6 +5466,13 @@ static void test_states(void)
...
@@ -5313,6 +5466,13 @@ static void test_states(void)
ok
(
state
==
INSTALLSTATE_UNKNOWN
,
"Expected INSTALLSTATE_UNKNOWN, got %d
\n
"
,
state
);
ok
(
state
==
INSTALLSTATE_UNKNOWN
,
"Expected INSTALLSTATE_UNKNOWN, got %d
\n
"
,
state
);
ok
(
action
==
INSTALLSTATE_UNKNOWN
,
"Expected INSTALLSTATE_UNKNOWN, got %d
\n
"
,
action
);
ok
(
action
==
INSTALLSTATE_UNKNOWN
,
"Expected INSTALLSTATE_UNKNOWN, got %d
\n
"
,
action
);
state
=
0xdeadbee
;
action
=
0xdeadbee
;
r
=
MsiGetComponentState
(
hpkg
,
"psi"
,
&
state
,
&
action
);
ok
(
r
==
ERROR_SUCCESS
,
"Expected ERROR_SUCCESS, got %d
\n
"
,
r
);
ok
(
state
==
INSTALLSTATE_UNKNOWN
,
"Expected INSTALLSTATE_UNKNOWN, got %d
\n
"
,
state
);
ok
(
action
==
INSTALLSTATE_UNKNOWN
,
"Expected INSTALLSTATE_UNKNOWN, got %d
\n
"
,
action
);
r
=
MsiDoAction
(
hpkg
,
"CostFinalize"
);
r
=
MsiDoAction
(
hpkg
,
"CostFinalize"
);
ok
(
r
==
ERROR_SUCCESS
,
"cost finalize failed: %d
\n
"
,
r
);
ok
(
r
==
ERROR_SUCCESS
,
"cost finalize failed: %d
\n
"
,
r
);
...
@@ -5388,6 +5548,13 @@ static void test_states(void)
...
@@ -5388,6 +5548,13 @@ static void test_states(void)
state
=
0xdeadbee
;
state
=
0xdeadbee
;
action
=
0xdeadbee
;
action
=
0xdeadbee
;
r
=
MsiGetFeatureState
(
hpkg
,
"eleven"
,
&
state
,
&
action
);
ok
(
r
==
ERROR_SUCCESS
,
"Expected ERROR_SUCCESS, got %d
\n
"
,
r
);
ok
(
state
==
INSTALLSTATE_SOURCE
,
"Expected INSTALLSTATE_SOURCE, got %d
\n
"
,
state
);
ok
(
action
==
INSTALLSTATE_UNKNOWN
,
"Expected INSTALLSTATE_UNKNOWN, got %d
\n
"
,
action
);
state
=
0xdeadbee
;
action
=
0xdeadbee
;
r
=
MsiGetComponentState
(
hpkg
,
"alpha"
,
&
state
,
&
action
);
r
=
MsiGetComponentState
(
hpkg
,
"alpha"
,
&
state
,
&
action
);
ok
(
r
==
ERROR_SUCCESS
,
"Expected ERROR_SUCCESS, got %d
\n
"
,
r
);
ok
(
r
==
ERROR_SUCCESS
,
"Expected ERROR_SUCCESS, got %d
\n
"
,
r
);
ok
(
state
==
INSTALLSTATE_LOCAL
,
"Expected INSTALLSTATE_LOCAL, got %d
\n
"
,
state
);
ok
(
state
==
INSTALLSTATE_LOCAL
,
"Expected INSTALLSTATE_LOCAL, got %d
\n
"
,
state
);
...
@@ -5533,6 +5700,13 @@ static void test_states(void)
...
@@ -5533,6 +5700,13 @@ static void test_states(void)
ok
(
state
==
INSTALLSTATE_SOURCE
,
"Expected INSTALLSTATE_SOURCE, got %d
\n
"
,
state
);
ok
(
state
==
INSTALLSTATE_SOURCE
,
"Expected INSTALLSTATE_SOURCE, got %d
\n
"
,
state
);
todo_wine
ok
(
action
==
INSTALLSTATE_UNKNOWN
,
"Expected INSTALLSTATE_UNKNOWN, got %d
\n
"
,
action
);
todo_wine
ok
(
action
==
INSTALLSTATE_UNKNOWN
,
"Expected INSTALLSTATE_UNKNOWN, got %d
\n
"
,
action
);
state
=
0xdeadbee
;
action
=
0xdeadbee
;
r
=
MsiGetComponentState
(
hpkg
,
"psi"
,
&
state
,
&
action
);
ok
(
r
==
ERROR_SUCCESS
,
"Expected ERROR_SUCCESS, got %d
\n
"
,
r
);
ok
(
state
==
INSTALLSTATE_SOURCE
,
"Expected INSTALLSTATE_SOURCE, got %d
\n
"
,
state
);
ok
(
action
==
INSTALLSTATE_UNKNOWN
,
"Expected INSTALLSTATE_UNKNOWN, got %d
\n
"
,
action
);
MsiCloseHandle
(
hpkg
);
MsiCloseHandle
(
hpkg
);
/* uninstall the product */
/* uninstall the product */
...
@@ -5625,6 +5799,13 @@ static void test_states(void)
...
@@ -5625,6 +5799,13 @@ static void test_states(void)
state
=
0xdeadbee
;
state
=
0xdeadbee
;
action
=
0xdeadbee
;
action
=
0xdeadbee
;
r
=
MsiGetFeatureState
(
hpkg
,
"eleven"
,
&
state
,
&
action
);
ok
(
r
==
ERROR_UNKNOWN_FEATURE
,
"Expected ERROR_UNKNOWN_FEATURE, got %d
\n
"
,
r
);
ok
(
state
==
0xdeadbee
,
"Expected 0xdeadbee, got %d
\n
"
,
state
);
ok
(
action
==
0xdeadbee
,
"Expected 0xdeadbee, got %d
\n
"
,
action
);
state
=
0xdeadbee
;
action
=
0xdeadbee
;
r
=
MsiGetComponentState
(
hpkg
,
"alpha"
,
&
state
,
&
action
);
r
=
MsiGetComponentState
(
hpkg
,
"alpha"
,
&
state
,
&
action
);
ok
(
r
==
ERROR_UNKNOWN_COMPONENT
,
"Expected ERROR_UNKNOWN_COMPONENT, got %d
\n
"
,
r
);
ok
(
r
==
ERROR_UNKNOWN_COMPONENT
,
"Expected ERROR_UNKNOWN_COMPONENT, got %d
\n
"
,
r
);
ok
(
state
==
0xdeadbee
,
"Expected 0xdeadbee, got %d
\n
"
,
state
);
ok
(
state
==
0xdeadbee
,
"Expected 0xdeadbee, got %d
\n
"
,
state
);
...
@@ -5770,6 +5951,13 @@ static void test_states(void)
...
@@ -5770,6 +5951,13 @@ static void test_states(void)
ok
(
state
==
0xdeadbee
,
"Expected 0xdeadbee, got %d
\n
"
,
state
);
ok
(
state
==
0xdeadbee
,
"Expected 0xdeadbee, got %d
\n
"
,
state
);
ok
(
action
==
0xdeadbee
,
"Expected 0xdeadbee, got %d
\n
"
,
action
);
ok
(
action
==
0xdeadbee
,
"Expected 0xdeadbee, got %d
\n
"
,
action
);
state
=
0xdeadbee
;
action
=
0xdeadbee
;
r
=
MsiGetComponentState
(
hpkg
,
"psi"
,
&
state
,
&
action
);
ok
(
r
==
ERROR_UNKNOWN_COMPONENT
,
"Expected ERROR_UNKNOWN_COMPONENT, got %d
\n
"
,
r
);
ok
(
state
==
0xdeadbee
,
"Expected 0xdeadbee, got %d
\n
"
,
state
);
ok
(
action
==
0xdeadbee
,
"Expected 0xdeadbee, got %d
\n
"
,
action
);
r
=
MsiDoAction
(
hpkg
,
"CostInitialize"
);
r
=
MsiDoAction
(
hpkg
,
"CostInitialize"
);
ok
(
r
==
ERROR_SUCCESS
,
"cost init failed
\n
"
);
ok
(
r
==
ERROR_SUCCESS
,
"cost init failed
\n
"
);
...
@@ -5845,6 +6033,13 @@ static void test_states(void)
...
@@ -5845,6 +6033,13 @@ static void test_states(void)
state
=
0xdeadbee
;
state
=
0xdeadbee
;
action
=
0xdeadbee
;
action
=
0xdeadbee
;
r
=
MsiGetFeatureState
(
hpkg
,
"eleven"
,
&
state
,
&
action
);
ok
(
r
==
ERROR_SUCCESS
,
"Expected ERROR_SUCCESS, got %d
\n
"
,
r
);
ok
(
state
==
INSTALLSTATE_UNKNOWN
,
"Expected INSTALLSTATE_UNKNOWN, got %d
\n
"
,
state
);
ok
(
action
==
INSTALLSTATE_UNKNOWN
,
"Expected INSTALLSTATE_UNKNOWN, got %d
\n
"
,
action
);
state
=
0xdeadbee
;
action
=
0xdeadbee
;
r
=
MsiGetComponentState
(
hpkg
,
"alpha"
,
&
state
,
&
action
);
r
=
MsiGetComponentState
(
hpkg
,
"alpha"
,
&
state
,
&
action
);
ok
(
r
==
ERROR_SUCCESS
,
"Expected ERROR_SUCCESS, got %d
\n
"
,
r
);
ok
(
r
==
ERROR_SUCCESS
,
"Expected ERROR_SUCCESS, got %d
\n
"
,
r
);
ok
(
state
==
INSTALLSTATE_UNKNOWN
,
"Expected INSTALLSTATE_UNKNOWN, got %d
\n
"
,
state
);
ok
(
state
==
INSTALLSTATE_UNKNOWN
,
"Expected INSTALLSTATE_UNKNOWN, got %d
\n
"
,
state
);
...
@@ -5990,6 +6185,13 @@ static void test_states(void)
...
@@ -5990,6 +6185,13 @@ static void test_states(void)
ok
(
state
==
INSTALLSTATE_UNKNOWN
,
"Expected INSTALLSTATE_UNKNOWN, got %d
\n
"
,
state
);
ok
(
state
==
INSTALLSTATE_UNKNOWN
,
"Expected INSTALLSTATE_UNKNOWN, got %d
\n
"
,
state
);
ok
(
action
==
INSTALLSTATE_UNKNOWN
,
"Expected INSTALLSTATE_UNKNOWN, got %d
\n
"
,
action
);
ok
(
action
==
INSTALLSTATE_UNKNOWN
,
"Expected INSTALLSTATE_UNKNOWN, got %d
\n
"
,
action
);
state
=
0xdeadbee
;
action
=
0xdeadbee
;
r
=
MsiGetComponentState
(
hpkg
,
"psi"
,
&
state
,
&
action
);
ok
(
r
==
ERROR_SUCCESS
,
"Expected ERROR_SUCCESS, got %d
\n
"
,
r
);
ok
(
state
==
INSTALLSTATE_UNKNOWN
,
"Expected INSTALLSTATE_UNKNOWN, got %d
\n
"
,
state
);
ok
(
action
==
INSTALLSTATE_UNKNOWN
,
"Expected INSTALLSTATE_UNKNOWN, got %d
\n
"
,
action
);
r
=
MsiDoAction
(
hpkg
,
"FileCost"
);
r
=
MsiDoAction
(
hpkg
,
"FileCost"
);
ok
(
r
==
ERROR_SUCCESS
,
"file cost failed
\n
"
);
ok
(
r
==
ERROR_SUCCESS
,
"file cost failed
\n
"
);
...
@@ -6065,6 +6267,13 @@ static void test_states(void)
...
@@ -6065,6 +6267,13 @@ static void test_states(void)
state
=
0xdeadbee
;
state
=
0xdeadbee
;
action
=
0xdeadbee
;
action
=
0xdeadbee
;
r
=
MsiGetFeatureState
(
hpkg
,
"eleven"
,
&
state
,
&
action
);
ok
(
r
==
ERROR_SUCCESS
,
"Expected ERROR_SUCCESS, got %d
\n
"
,
r
);
ok
(
state
==
INSTALLSTATE_UNKNOWN
,
"Expected INSTALLSTATE_UNKNOWN, got %d
\n
"
,
state
);
ok
(
action
==
INSTALLSTATE_UNKNOWN
,
"Expected INSTALLSTATE_UNKNOWN, got %d
\n
"
,
action
);
state
=
0xdeadbee
;
action
=
0xdeadbee
;
r
=
MsiGetComponentState
(
hpkg
,
"alpha"
,
&
state
,
&
action
);
r
=
MsiGetComponentState
(
hpkg
,
"alpha"
,
&
state
,
&
action
);
ok
(
r
==
ERROR_SUCCESS
,
"Expected ERROR_SUCCESS, got %d
\n
"
,
r
);
ok
(
r
==
ERROR_SUCCESS
,
"Expected ERROR_SUCCESS, got %d
\n
"
,
r
);
ok
(
state
==
INSTALLSTATE_UNKNOWN
,
"Expected INSTALLSTATE_UNKNOWN, got %d
\n
"
,
state
);
ok
(
state
==
INSTALLSTATE_UNKNOWN
,
"Expected INSTALLSTATE_UNKNOWN, got %d
\n
"
,
state
);
...
@@ -6210,6 +6419,13 @@ static void test_states(void)
...
@@ -6210,6 +6419,13 @@ static void test_states(void)
ok
(
state
==
INSTALLSTATE_UNKNOWN
,
"Expected INSTALLSTATE_UNKNOWN, got %d
\n
"
,
state
);
ok
(
state
==
INSTALLSTATE_UNKNOWN
,
"Expected INSTALLSTATE_UNKNOWN, got %d
\n
"
,
state
);
ok
(
action
==
INSTALLSTATE_UNKNOWN
,
"Expected INSTALLSTATE_UNKNOWN, got %d
\n
"
,
action
);
ok
(
action
==
INSTALLSTATE_UNKNOWN
,
"Expected INSTALLSTATE_UNKNOWN, got %d
\n
"
,
action
);
state
=
0xdeadbee
;
action
=
0xdeadbee
;
r
=
MsiGetComponentState
(
hpkg
,
"psi"
,
&
state
,
&
action
);
ok
(
r
==
ERROR_SUCCESS
,
"Expected ERROR_SUCCESS, got %d
\n
"
,
r
);
ok
(
state
==
INSTALLSTATE_UNKNOWN
,
"Expected INSTALLSTATE_UNKNOWN, got %d
\n
"
,
state
);
ok
(
action
==
INSTALLSTATE_UNKNOWN
,
"Expected INSTALLSTATE_UNKNOWN, got %d
\n
"
,
action
);
r
=
MsiDoAction
(
hpkg
,
"CostFinalize"
);
r
=
MsiDoAction
(
hpkg
,
"CostFinalize"
);
ok
(
r
==
ERROR_SUCCESS
,
"cost finalize failed: %d
\n
"
,
r
);
ok
(
r
==
ERROR_SUCCESS
,
"cost finalize failed: %d
\n
"
,
r
);
...
@@ -6285,6 +6501,13 @@ static void test_states(void)
...
@@ -6285,6 +6501,13 @@ static void test_states(void)
state
=
0xdeadbee
;
state
=
0xdeadbee
;
action
=
0xdeadbee
;
action
=
0xdeadbee
;
r
=
MsiGetFeatureState
(
hpkg
,
"eleven"
,
&
state
,
&
action
);
ok
(
r
==
ERROR_SUCCESS
,
"Expected ERROR_SUCCESS, got %d
\n
"
,
r
);
ok
(
state
==
INSTALLSTATE_SOURCE
,
"Expected INSTALLSTATE_SOURCE, got %d
\n
"
,
state
);
ok
(
action
==
INSTALLSTATE_UNKNOWN
,
"Expected INSTALLSTATE_UNKNOWN, got %d
\n
"
,
action
);
state
=
0xdeadbee
;
action
=
0xdeadbee
;
r
=
MsiGetComponentState
(
hpkg
,
"alpha"
,
&
state
,
&
action
);
r
=
MsiGetComponentState
(
hpkg
,
"alpha"
,
&
state
,
&
action
);
ok
(
r
==
ERROR_SUCCESS
,
"Expected ERROR_SUCCESS, got %d
\n
"
,
r
);
ok
(
r
==
ERROR_SUCCESS
,
"Expected ERROR_SUCCESS, got %d
\n
"
,
r
);
ok
(
state
==
INSTALLSTATE_LOCAL
,
"Expected INSTALLSTATE_LOCAL, got %d
\n
"
,
state
);
ok
(
state
==
INSTALLSTATE_LOCAL
,
"Expected INSTALLSTATE_LOCAL, got %d
\n
"
,
state
);
...
@@ -6430,6 +6653,13 @@ static void test_states(void)
...
@@ -6430,6 +6653,13 @@ static void test_states(void)
ok
(
state
==
INSTALLSTATE_SOURCE
,
"Expected INSTALLSTATE_SOURCE, got %d
\n
"
,
state
);
ok
(
state
==
INSTALLSTATE_SOURCE
,
"Expected INSTALLSTATE_SOURCE, got %d
\n
"
,
state
);
ok
(
action
==
INSTALLSTATE_UNKNOWN
,
"Expected INSTALLSTATE_UNKNOWN, got %d
\n
"
,
action
);
ok
(
action
==
INSTALLSTATE_UNKNOWN
,
"Expected INSTALLSTATE_UNKNOWN, got %d
\n
"
,
action
);
state
=
0xdeadbee
;
action
=
0xdeadbee
;
r
=
MsiGetComponentState
(
hpkg
,
"psi"
,
&
state
,
&
action
);
ok
(
r
==
ERROR_SUCCESS
,
"Expected ERROR_SUCCESS, got %d
\n
"
,
r
);
ok
(
state
==
INSTALLSTATE_SOURCE
,
"Expected INSTALLSTATE_SOURCE, got %d
\n
"
,
state
);
ok
(
action
==
INSTALLSTATE_UNKNOWN
,
"Expected INSTALLSTATE_UNKNOWN, got %d
\n
"
,
action
);
MsiCloseHandle
(
hpkg
);
MsiCloseHandle
(
hpkg
);
/* reinstall the product */
/* reinstall the product */
...
@@ -6518,6 +6748,13 @@ static void test_states(void)
...
@@ -6518,6 +6748,13 @@ static void test_states(void)
state
=
0xdeadbee
;
state
=
0xdeadbee
;
action
=
0xdeadbee
;
action
=
0xdeadbee
;
r
=
MsiGetFeatureState
(
hpkg
,
"eleven"
,
&
state
,
&
action
);
ok
(
r
==
ERROR_UNKNOWN_FEATURE
,
"Expected ERROR_UNKNOWN_FEATURE, got %d
\n
"
,
r
);
ok
(
state
==
0xdeadbee
,
"Expected 0xdeadbee, got %d
\n
"
,
state
);
ok
(
action
==
0xdeadbee
,
"Expected 0xdeadbee, got %d
\n
"
,
action
);
state
=
0xdeadbee
;
action
=
0xdeadbee
;
r
=
MsiGetComponentState
(
hpkg
,
"alpha"
,
&
state
,
&
action
);
r
=
MsiGetComponentState
(
hpkg
,
"alpha"
,
&
state
,
&
action
);
ok
(
r
==
ERROR_UNKNOWN_COMPONENT
,
"Expected ERROR_UNKNOWN_COMPONENT, got %d
\n
"
,
r
);
ok
(
r
==
ERROR_UNKNOWN_COMPONENT
,
"Expected ERROR_UNKNOWN_COMPONENT, got %d
\n
"
,
r
);
ok
(
state
==
0xdeadbee
,
"Expected 0xdeadbee, got %d
\n
"
,
state
);
ok
(
state
==
0xdeadbee
,
"Expected 0xdeadbee, got %d
\n
"
,
state
);
...
@@ -6663,6 +6900,13 @@ static void test_states(void)
...
@@ -6663,6 +6900,13 @@ static void test_states(void)
ok
(
state
==
0xdeadbee
,
"Expected 0xdeadbee, got %d
\n
"
,
state
);
ok
(
state
==
0xdeadbee
,
"Expected 0xdeadbee, got %d
\n
"
,
state
);
ok
(
action
==
0xdeadbee
,
"Expected 0xdeadbee, got %d
\n
"
,
action
);
ok
(
action
==
0xdeadbee
,
"Expected 0xdeadbee, got %d
\n
"
,
action
);
state
=
0xdeadbee
;
action
=
0xdeadbee
;
r
=
MsiGetComponentState
(
hpkg
,
"psi"
,
&
state
,
&
action
);
ok
(
r
==
ERROR_UNKNOWN_COMPONENT
,
"Expected ERROR_UNKNOWN_COMPONENT, got %d
\n
"
,
r
);
ok
(
state
==
0xdeadbee
,
"Expected 0xdeadbee, got %d
\n
"
,
state
);
ok
(
action
==
0xdeadbee
,
"Expected 0xdeadbee, got %d
\n
"
,
action
);
r
=
MsiDoAction
(
hpkg
,
"CostInitialize"
);
r
=
MsiDoAction
(
hpkg
,
"CostInitialize"
);
ok
(
r
==
ERROR_SUCCESS
,
"cost init failed
\n
"
);
ok
(
r
==
ERROR_SUCCESS
,
"cost init failed
\n
"
);
...
@@ -6738,6 +6982,13 @@ static void test_states(void)
...
@@ -6738,6 +6982,13 @@ static void test_states(void)
state
=
0xdeadbee
;
state
=
0xdeadbee
;
action
=
0xdeadbee
;
action
=
0xdeadbee
;
r
=
MsiGetFeatureState
(
hpkg
,
"eleven"
,
&
state
,
&
action
);
ok
(
r
==
ERROR_SUCCESS
,
"Expected ERROR_SUCCESS, got %d
\n
"
,
r
);
ok
(
state
==
INSTALLSTATE_UNKNOWN
,
"Expected INSTALLSTATE_UNKNOWN, got %d
\n
"
,
state
);
ok
(
action
==
INSTALLSTATE_UNKNOWN
,
"Expected INSTALLSTATE_UNKNOWN, got %d
\n
"
,
action
);
state
=
0xdeadbee
;
action
=
0xdeadbee
;
r
=
MsiGetComponentState
(
hpkg
,
"alpha"
,
&
state
,
&
action
);
r
=
MsiGetComponentState
(
hpkg
,
"alpha"
,
&
state
,
&
action
);
ok
(
r
==
ERROR_SUCCESS
,
"Expected ERROR_SUCCESS, got %d
\n
"
,
r
);
ok
(
r
==
ERROR_SUCCESS
,
"Expected ERROR_SUCCESS, got %d
\n
"
,
r
);
ok
(
state
==
INSTALLSTATE_UNKNOWN
,
"Expected INSTALLSTATE_UNKNOWN, got %d
\n
"
,
state
);
ok
(
state
==
INSTALLSTATE_UNKNOWN
,
"Expected INSTALLSTATE_UNKNOWN, got %d
\n
"
,
state
);
...
@@ -6883,6 +7134,13 @@ static void test_states(void)
...
@@ -6883,6 +7134,13 @@ static void test_states(void)
ok
(
state
==
INSTALLSTATE_UNKNOWN
,
"Expected INSTALLSTATE_UNKNOWN, got %d
\n
"
,
state
);
ok
(
state
==
INSTALLSTATE_UNKNOWN
,
"Expected INSTALLSTATE_UNKNOWN, got %d
\n
"
,
state
);
ok
(
action
==
INSTALLSTATE_UNKNOWN
,
"Expected INSTALLSTATE_UNKNOWN, got %d
\n
"
,
action
);
ok
(
action
==
INSTALLSTATE_UNKNOWN
,
"Expected INSTALLSTATE_UNKNOWN, got %d
\n
"
,
action
);
state
=
0xdeadbee
;
action
=
0xdeadbee
;
r
=
MsiGetComponentState
(
hpkg
,
"psi"
,
&
state
,
&
action
);
ok
(
r
==
ERROR_SUCCESS
,
"Expected ERROR_SUCCESS, got %d
\n
"
,
r
);
ok
(
state
==
INSTALLSTATE_UNKNOWN
,
"Expected INSTALLSTATE_UNKNOWN, got %d
\n
"
,
state
);
ok
(
action
==
INSTALLSTATE_UNKNOWN
,
"Expected INSTALLSTATE_UNKNOWN, got %d
\n
"
,
action
);
r
=
MsiDoAction
(
hpkg
,
"FileCost"
);
r
=
MsiDoAction
(
hpkg
,
"FileCost"
);
ok
(
r
==
ERROR_SUCCESS
,
"file cost failed
\n
"
);
ok
(
r
==
ERROR_SUCCESS
,
"file cost failed
\n
"
);
...
@@ -6958,6 +7216,13 @@ static void test_states(void)
...
@@ -6958,6 +7216,13 @@ static void test_states(void)
state
=
0xdeadbee
;
state
=
0xdeadbee
;
action
=
0xdeadbee
;
action
=
0xdeadbee
;
r
=
MsiGetFeatureState
(
hpkg
,
"eleven"
,
&
state
,
&
action
);
ok
(
r
==
ERROR_SUCCESS
,
"Expected ERROR_SUCCESS, got %d
\n
"
,
r
);
ok
(
state
==
INSTALLSTATE_UNKNOWN
,
"Expected INSTALLSTATE_UNKNOWN, got %d
\n
"
,
state
);
ok
(
action
==
INSTALLSTATE_UNKNOWN
,
"Expected INSTALLSTATE_UNKNOWN, got %d
\n
"
,
action
);
state
=
0xdeadbee
;
action
=
0xdeadbee
;
r
=
MsiGetComponentState
(
hpkg
,
"alpha"
,
&
state
,
&
action
);
r
=
MsiGetComponentState
(
hpkg
,
"alpha"
,
&
state
,
&
action
);
ok
(
r
==
ERROR_SUCCESS
,
"Expected ERROR_SUCCESS, got %d
\n
"
,
r
);
ok
(
r
==
ERROR_SUCCESS
,
"Expected ERROR_SUCCESS, got %d
\n
"
,
r
);
ok
(
state
==
INSTALLSTATE_UNKNOWN
,
"Expected INSTALLSTATE_UNKNOWN, got %d
\n
"
,
state
);
ok
(
state
==
INSTALLSTATE_UNKNOWN
,
"Expected INSTALLSTATE_UNKNOWN, got %d
\n
"
,
state
);
...
@@ -7103,6 +7368,13 @@ static void test_states(void)
...
@@ -7103,6 +7368,13 @@ static void test_states(void)
ok
(
state
==
INSTALLSTATE_UNKNOWN
,
"Expected INSTALLSTATE_UNKNOWN, got %d
\n
"
,
state
);
ok
(
state
==
INSTALLSTATE_UNKNOWN
,
"Expected INSTALLSTATE_UNKNOWN, got %d
\n
"
,
state
);
ok
(
action
==
INSTALLSTATE_UNKNOWN
,
"Expected INSTALLSTATE_UNKNOWN, got %d
\n
"
,
action
);
ok
(
action
==
INSTALLSTATE_UNKNOWN
,
"Expected INSTALLSTATE_UNKNOWN, got %d
\n
"
,
action
);
state
=
0xdeadbee
;
action
=
0xdeadbee
;
r
=
MsiGetComponentState
(
hpkg
,
"psi"
,
&
state
,
&
action
);
ok
(
r
==
ERROR_SUCCESS
,
"Expected ERROR_SUCCESS, got %d
\n
"
,
r
);
ok
(
state
==
INSTALLSTATE_UNKNOWN
,
"Expected INSTALLSTATE_UNKNOWN, got %d
\n
"
,
state
);
ok
(
action
==
INSTALLSTATE_UNKNOWN
,
"Expected INSTALLSTATE_UNKNOWN, got %d
\n
"
,
action
);
r
=
MsiDoAction
(
hpkg
,
"CostFinalize"
);
r
=
MsiDoAction
(
hpkg
,
"CostFinalize"
);
ok
(
r
==
ERROR_SUCCESS
,
"cost finalize failed: %d
\n
"
,
r
);
ok
(
r
==
ERROR_SUCCESS
,
"cost finalize failed: %d
\n
"
,
r
);
...
@@ -7178,6 +7450,13 @@ static void test_states(void)
...
@@ -7178,6 +7450,13 @@ static void test_states(void)
state
=
0xdeadbee
;
state
=
0xdeadbee
;
action
=
0xdeadbee
;
action
=
0xdeadbee
;
r
=
MsiGetFeatureState
(
hpkg
,
"eleven"
,
&
state
,
&
action
);
ok
(
r
==
ERROR_SUCCESS
,
"Expected ERROR_SUCCESS, got %d
\n
"
,
r
);
ok
(
state
==
INSTALLSTATE_SOURCE
,
"Expected INSTALLSTATE_SOURCE, got %d
\n
"
,
state
);
ok
(
action
==
INSTALLSTATE_UNKNOWN
,
"Expected INSTALLSTATE_UNKNOWN, got %d
\n
"
,
action
);
state
=
0xdeadbee
;
action
=
0xdeadbee
;
r
=
MsiGetComponentState
(
hpkg
,
"alpha"
,
&
state
,
&
action
);
r
=
MsiGetComponentState
(
hpkg
,
"alpha"
,
&
state
,
&
action
);
ok
(
r
==
ERROR_SUCCESS
,
"Expected ERROR_SUCCESS, got %d
\n
"
,
r
);
ok
(
r
==
ERROR_SUCCESS
,
"Expected ERROR_SUCCESS, got %d
\n
"
,
r
);
ok
(
state
==
INSTALLSTATE_LOCAL
,
"Expected INSTALLSTATE_LOCAL, got %d
\n
"
,
state
);
ok
(
state
==
INSTALLSTATE_LOCAL
,
"Expected INSTALLSTATE_LOCAL, got %d
\n
"
,
state
);
...
@@ -7323,6 +7602,13 @@ static void test_states(void)
...
@@ -7323,6 +7602,13 @@ static void test_states(void)
ok
(
state
==
INSTALLSTATE_SOURCE
,
"Expected INSTALLSTATE_SOURCE, got %d
\n
"
,
state
);
ok
(
state
==
INSTALLSTATE_SOURCE
,
"Expected INSTALLSTATE_SOURCE, got %d
\n
"
,
state
);
ok
(
action
==
INSTALLSTATE_UNKNOWN
,
"Expected INSTALLSTATE_UNKNOWN, got %d
\n
"
,
action
);
ok
(
action
==
INSTALLSTATE_UNKNOWN
,
"Expected INSTALLSTATE_UNKNOWN, got %d
\n
"
,
action
);
state
=
0xdeadbee
;
action
=
0xdeadbee
;
r
=
MsiGetComponentState
(
hpkg
,
"psi"
,
&
state
,
&
action
);
ok
(
r
==
ERROR_SUCCESS
,
"Expected ERROR_SUCCESS, got %d
\n
"
,
r
);
ok
(
state
==
INSTALLSTATE_SOURCE
,
"Expected INSTALLSTATE_SOURCE, got %d
\n
"
,
state
);
ok
(
action
==
INSTALLSTATE_UNKNOWN
,
"Expected INSTALLSTATE_UNKNOWN, got %d
\n
"
,
action
);
MsiCloseHandle
(
hpkg
);
MsiCloseHandle
(
hpkg
);
/* uninstall the product */
/* uninstall the product */
...
...
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