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
7a289624
Commit
7a289624
authored
May 31, 2007
by
James Hawkins
Committed by
Alexandre Julliard
Jun 01, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi: Implement Installer::OpenDatabase.
parent
60e95ee6
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
43 additions
and
0 deletions
+43
-0
automation.c
dlls/msi/automation.c
+38
-0
msiserver.idl
dlls/msi/msiserver.idl
+4
-0
msiserver_dispids.h
dlls/msi/msiserver_dispids.h
+1
-0
No files found.
dlls/msi/automation.c
View file @
7a289624
...
...
@@ -1433,6 +1433,43 @@ static HRESULT WINAPI InstallerImpl_Invoke(
else
return
DISP_E_MEMBERNOTFOUND
;
break
;
case
DISPID_INSTALLER_OPENDATABASE
:
if
(
wFlags
&
DISPATCH_METHOD
)
{
hr
=
DispGetParam
(
pDispParams
,
0
,
VT_BSTR
,
&
varg0
,
puArgErr
);
if
(
FAILED
(
hr
))
return
hr
;
hr
=
DispGetParam
(
pDispParams
,
1
,
VT_BSTR
,
&
varg1
,
puArgErr
);
if
(
FAILED
(
hr
))
{
VariantClear
(
&
varg0
);
return
hr
;
}
V_VT
(
pVarResult
)
=
VT_DISPATCH
;
if
((
ret
=
MsiOpenDatabaseW
(
V_BSTR
(
&
varg0
),
V_BSTR
(
&
varg1
),
&
msiHandle
))
==
ERROR_SUCCESS
)
{
hr
=
create_automation_object
(
msiHandle
,
NULL
,
(
LPVOID
*
)
&
pDispatch
,
&
DIID_Database
,
DatabaseImpl_Invoke
,
NULL
,
0
);
if
(
SUCCEEDED
(
hr
))
{
IDispatch_AddRef
(
pDispatch
);
V_DISPATCH
(
pVarResult
)
=
pDispatch
;
}
else
ERR
(
"Failed to create Database object: 0x%08x
\n
"
,
hr
);
}
else
{
VariantClear
(
&
varg0
);
VariantClear
(
&
varg1
);
ERR
(
"MsiOpenDatabase returned %d
\n
"
,
ret
);
return
DISP_E_EXCEPTION
;
}
}
else
return
DISP_E_MEMBERNOTFOUND
;
break
;
case
DISPID_INSTALLER_INSTALLPRODUCT
:
if
(
wFlags
&
DISPATCH_METHOD
)
{
...
...
@@ -1676,6 +1713,7 @@ static HRESULT WINAPI InstallerImpl_Invoke(
break
;
default
:
ERR
(
"Member not found: %d
\n
"
,
dispIdMember
);
return
DISP_E_MEMBERNOTFOUND
;
}
...
...
dlls/msi/msiserver.idl
View file @
7a289624
...
...
@@ -66,6 +66,10 @@ library WindowsInstaller
Session
*
OpenPackage
(
[
in
]
VARIANT
PackagePath
,
[
in
,
optional
,
defaultvalue
(
0
)
]
long
Options
)
;
[
id
(
DISPID_INSTALLER_OPENDATABASE
)
]
Database
*
OpenDatabase
(
[
in
]
BSTR
DatabasePath
,
[
in
]
VARIANT
OpenMode
)
;
[
id
(
DISPID_INSTALLER_INSTALLPRODUCT
)
]
void
InstallProduct
(
[
in
]
BSTR
PackagePath
,
...
...
dlls/msi/msiserver_dispids.h
View file @
7a289624
...
...
@@ -18,6 +18,7 @@
#define DISPID_INSTALLER_CREATERECORD 1
#define DISPID_INSTALLER_OPENPACKAGE 2
#define DISPID_INSTALLER_OPENDATABASE 3
#define DISPID_INSTALLER_INSTALLPRODUCT 8
#define DISPID_INSTALLER_REGISTRYVALUE 11
#define DISPID_INSTALLER_PRODUCTSTATE 17
...
...
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