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
2d8c2ce6
Commit
2d8c2ce6
authored
May 11, 2007
by
Misha Koshelev
Committed by
Alexandre Julliard
May 14, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi: automation: Implement Session::EvaluateCondition.
parent
75222d74
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
19 additions
and
9 deletions
+19
-9
automation.c
dlls/msi/automation.c
+9
-0
msiserver.idl
dlls/msi/msiserver.idl
+9
-0
msiserver_dispids.h
dlls/msi/msiserver_dispids.h
+1
-0
automation.c
dlls/msi/tests/automation.c
+0
-9
No files found.
dlls/msi/automation.c
View file @
2d8c2ce6
...
...
@@ -956,6 +956,15 @@ static HRESULT WINAPI SessionImpl_Invoke(
}
break
;
case
DISPID_SESSION_EVALUATECONDITION
:
if
(
wFlags
&
DISPATCH_METHOD
)
{
hr
=
DispGetParam
(
pDispParams
,
0
,
VT_BSTR
,
&
varg0
,
puArgErr
);
if
(
FAILED
(
hr
))
return
hr
;
V_VT
(
pVarResult
)
=
VT_I4
;
V_I4
(
pVarResult
)
=
MsiEvaluateConditionW
(
This
->
msiHandle
,
V_BSTR
(
&
varg0
));
}
break
;
case
DISPID_SESSION_SETINSTALLLEVEL
:
hr
=
DispGetParam
(
pDispParams
,
0
,
VT_I4
,
&
varg0
,
puArgErr
);
if
(
FAILED
(
hr
))
return
hr
;
...
...
dlls/msi/msiserver.idl
View file @
2d8c2ce6
...
...
@@ -172,6 +172,13 @@ library WindowsInstaller
msiRunModeCommit
=
18
}
MsiRunMode
;
typedef
enum
{
msiEvaluateConditionFalse
=
0
,
msiEvaluateConditionTrue
=
1
,
msiEvaluateConditionNone
=
2
,
msiEvaluateConditionError
=
3
}
_MsiEvaluateCondition
; /* Added underscore to avoid conflict with function name */
[
uuid
(
000
C109E
-
0000
-
0000
-
C000
-
000000000046
)
]
dispinterface
Session
{
...
...
@@ -197,6 +204,8 @@ library WindowsInstaller
Database
*
Database
()
;
[
id
(
DISPID_SESSION_DOACTION
)
]
MsiDoActionStatus
DoAction
(
[
in
]
BSTR
Action
)
;
[
id
(
DISPID_SESSION_EVALUATECONDITION
)
]
_MsiEvaluateCondition
EvaluateCondition
(
[
in
]
BSTR
Expression
)
;
[
id
(
DISPID_SESSION_FEATURECURRENTSTATE
),
propget
]
MsiInstallState
FeatureCurrentState
(
[
in
]
BSTR
Feature
)
;
[
id
(
DISPID_SESSION_FEATUREREQUESTSTATE
),
propget
]
...
...
dlls/msi/msiserver_dispids.h
View file @
2d8c2ce6
...
...
@@ -38,6 +38,7 @@
#define DISPID_SESSION_MODE 4
#define DISPID_SESSION_DATABASE 5
#define DISPID_SESSION_DOACTION 8
#define DISPID_SESSION_EVALUATECONDITION 10
#define DISPID_SESSION_FEATURECURRENTSTATE 13
#define DISPID_SESSION_FEATUREREQUESTSTATE 14
#define DISPID_SESSION_SETINSTALLLEVEL 19
dlls/msi/tests/automation.c
View file @
2d8c2ce6
...
...
@@ -1106,8 +1106,6 @@ static void test_Session(IDispatch *pSession)
}
/* Session::EvaluateCondition */
todo_wine
{
hr
=
Session_EvaluateCondition
(
pSession
,
NULL
,
&
myint
);
ok
(
SUCCEEDED
(
hr
),
"Session_EvaluateCondition failed, hresult 0x%08x
\n
"
,
hr
);
ok
(
myint
==
MSICONDITION_NONE
,
"Feature current state was %d but expected %d
\n
"
,
myint
,
INSTALLSTATE_UNKNOWN
);
...
...
@@ -1119,7 +1117,6 @@ static void test_Session(IDispatch *pSession)
hr
=
Session_EvaluateCondition
(
pSession
,
szEquals
,
&
myint
);
ok
(
SUCCEEDED
(
hr
),
"Session_EvaluateCondition failed, hresult 0x%08x
\n
"
,
hr
);
ok
(
myint
==
MSICONDITION_ERROR
,
"Feature current state was %d but expected %d
\n
"
,
myint
,
INSTALLSTATE_UNKNOWN
);
}
/* Session::DoAction(CostInitialize) must occur before the next statements */
hr
=
Session_DoAction
(
pSession
,
szCostInitialize
,
&
myint
);
...
...
@@ -1136,8 +1133,6 @@ static void test_Session(IDispatch *pSession)
ok
(
myint
==
INSTALLSTATE_UNKNOWN
,
"Feature current state was %d but expected %d
\n
"
,
myint
,
INSTALLSTATE_UNKNOWN
);
/* Session::EvaluateCondition */
todo_wine
{
hr
=
Session_EvaluateCondition
(
pSession
,
szOneStateFalse
,
&
myint
);
ok
(
SUCCEEDED
(
hr
),
"Session_EvaluateCondition failed, hresult 0x%08x
\n
"
,
hr
);
if
(
SUCCEEDED
(
hr
))
...
...
@@ -1146,7 +1141,6 @@ static void test_Session(IDispatch *pSession)
hr
=
Session_EvaluateCondition
(
pSession
,
szOneStateTrue
,
&
myint
);
ok
(
SUCCEEDED
(
hr
),
"Session_EvaluateCondition failed, hresult 0x%08x
\n
"
,
hr
);
ok
(
myint
==
MSICONDITION_TRUE
,
"Feature current state was %d but expected %d
\n
"
,
myint
,
INSTALLSTATE_UNKNOWN
);
}
/* Session::FeatureRequestState, put */
hr
=
Session_FeatureRequestStatePut
(
pSession
,
szOne
,
INSTALLSTATE_ADVERTISED
);
...
...
@@ -1156,8 +1150,6 @@ static void test_Session(IDispatch *pSession)
ok
(
myint
==
INSTALLSTATE_ADVERTISED
,
"Feature request state was %d but expected %d
\n
"
,
myint
,
INSTALLSTATE_ADVERTISED
);
/* Session::EvaluateCondition */
todo_wine
{
hr
=
Session_EvaluateCondition
(
pSession
,
szOneActionFalse
,
&
myint
);
ok
(
SUCCEEDED
(
hr
),
"Session_EvaluateCondition failed, hresult 0x%08x
\n
"
,
hr
);
if
(
SUCCEEDED
(
hr
))
...
...
@@ -1166,7 +1158,6 @@ static void test_Session(IDispatch *pSession)
hr
=
Session_EvaluateCondition
(
pSession
,
szOneActionTrue
,
&
myint
);
ok
(
SUCCEEDED
(
hr
),
"Session_EvaluateCondition failed, hresult 0x%08x
\n
"
,
hr
);
ok
(
myint
==
MSICONDITION_TRUE
,
"Feature current state was %d but expected %d
\n
"
,
myint
,
INSTALLSTATE_UNKNOWN
);
}
}
/* delete key and all its subkeys */
...
...
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