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
ae58e29e
Commit
ae58e29e
authored
Dec 10, 2009
by
James Hawkins
Committed by
Alexandre Julliard
Dec 11, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi: Stub out a few more Installer object methods.
parent
9ab7d9e2
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
123 additions
and
19 deletions
+123
-19
automation.c
dlls/msi/automation.c
+72
-0
msiserver.idl
dlls/msi/msiserver.idl
+27
-0
msiserver_dispids.h
dlls/msi/msiserver_dispids.h
+8
-0
automation.c
dlls/msi/tests/automation.c
+16
-19
No files found.
dlls/msi/automation.c
View file @
ae58e29e
...
@@ -1624,6 +1624,15 @@ static HRESULT WINAPI InstallerImpl_Invoke(
...
@@ -1624,6 +1624,15 @@ static HRESULT WINAPI InstallerImpl_Invoke(
else
return
DISP_E_MEMBERNOTFOUND
;
else
return
DISP_E_MEMBERNOTFOUND
;
break
;
break
;
case
DISPID_INSTALLER_OPENPRODUCT
:
if
(
wFlags
&
DISPATCH_METHOD
)
{
VariantInit
(
pVarResult
);
FIXME
(
"Unhandled method: OpenProduct"
);
}
else
return
DISP_E_MEMBERNOTFOUND
;
break
;
case
DISPID_INSTALLER_OPENDATABASE
:
case
DISPID_INSTALLER_OPENDATABASE
:
if
(
wFlags
&
DISPATCH_METHOD
)
if
(
wFlags
&
DISPATCH_METHOD
)
{
{
...
@@ -1658,6 +1667,15 @@ static HRESULT WINAPI InstallerImpl_Invoke(
...
@@ -1658,6 +1667,15 @@ static HRESULT WINAPI InstallerImpl_Invoke(
else
return
DISP_E_MEMBERNOTFOUND
;
else
return
DISP_E_MEMBERNOTFOUND
;
break
;
break
;
case
DISPID_INSTALLER_SUMMARYINFORMATION
:
if
(
wFlags
&
DISPATCH_METHOD
)
{
VariantInit
(
pVarResult
);
FIXME
(
"Unhandled method: SummaryInformation"
);
}
else
return
DISP_E_MEMBERNOTFOUND
;
break
;
case
DISPID_INSTALLER_UILEVEL
:
case
DISPID_INSTALLER_UILEVEL
:
if
(
wFlags
&
DISPATCH_PROPERTYPUT
)
if
(
wFlags
&
DISPATCH_PROPERTYPUT
)
{
{
...
@@ -1683,6 +1701,15 @@ static HRESULT WINAPI InstallerImpl_Invoke(
...
@@ -1683,6 +1701,15 @@ static HRESULT WINAPI InstallerImpl_Invoke(
else
return
DISP_E_MEMBERNOTFOUND
;
else
return
DISP_E_MEMBERNOTFOUND
;
break
;
break
;
case
DISPID_INSTALLER_ENABLELOG
:
if
(
wFlags
&
DISPATCH_METHOD
)
{
VariantInit
(
pVarResult
);
FIXME
(
"Unhandled method: EnableLog"
);
}
else
return
DISP_E_MEMBERNOTFOUND
;
break
;
case
DISPID_INSTALLER_INSTALLPRODUCT
:
case
DISPID_INSTALLER_INSTALLPRODUCT
:
if
(
wFlags
&
DISPATCH_METHOD
)
if
(
wFlags
&
DISPATCH_METHOD
)
{
{
...
@@ -1725,6 +1752,15 @@ static HRESULT WINAPI InstallerImpl_Invoke(
...
@@ -1725,6 +1752,15 @@ static HRESULT WINAPI InstallerImpl_Invoke(
else
return
DISP_E_MEMBERNOTFOUND
;
else
return
DISP_E_MEMBERNOTFOUND
;
break
;
break
;
case
DISPID_INSTALLER_LASTERRORRECORD
:
if
(
wFlags
&
DISPATCH_METHOD
)
{
VariantInit
(
pVarResult
);
FIXME
(
"Unhandled method: LastErrorRecord"
);
}
else
return
DISP_E_MEMBERNOTFOUND
;
break
;
case
DISPID_INSTALLER_REGISTRYVALUE
:
case
DISPID_INSTALLER_REGISTRYVALUE
:
if
(
wFlags
&
DISPATCH_METHOD
)
{
if
(
wFlags
&
DISPATCH_METHOD
)
{
HKEY
hkey
;
HKEY
hkey
;
...
@@ -1819,6 +1855,42 @@ static HRESULT WINAPI InstallerImpl_Invoke(
...
@@ -1819,6 +1855,42 @@ static HRESULT WINAPI InstallerImpl_Invoke(
else
return
DISP_E_MEMBERNOTFOUND
;
else
return
DISP_E_MEMBERNOTFOUND
;
break
;
break
;
case
DISPID_INSTALLER_ENVIRONMENT
:
if
(
wFlags
&
DISPATCH_PROPERTYGET
||
wFlags
&
DISPATCH_PROPERTYPUT
)
{
VariantInit
(
pVarResult
);
FIXME
(
"Unhandled property: Environment"
);
}
else
return
DISP_E_MEMBERNOTFOUND
;
break
;
case
DISPID_INSTALLER_FILEATTRIBUTES
:
if
(
wFlags
&
DISPATCH_METHOD
)
{
VariantInit
(
pVarResult
);
FIXME
(
"Unhandled method: FileAttributes"
);
}
else
return
DISP_E_MEMBERNOTFOUND
;
break
;
case
DISPID_INSTALLER_FILESIZE
:
if
(
wFlags
&
DISPATCH_METHOD
)
{
VariantInit
(
pVarResult
);
FIXME
(
"Unhandled method: FileSize"
);
}
else
return
DISP_E_MEMBERNOTFOUND
;
break
;
case
DISPID_INSTALLER_FILEVERSION
:
if
(
wFlags
&
DISPATCH_METHOD
)
{
VariantInit
(
pVarResult
);
FIXME
(
"Unhandled method: FileVersion"
);
}
else
return
DISP_E_MEMBERNOTFOUND
;
break
;
case
DISPID_INSTALLER_PRODUCTSTATE
:
case
DISPID_INSTALLER_PRODUCTSTATE
:
if
(
wFlags
&
DISPATCH_PROPERTYGET
)
{
if
(
wFlags
&
DISPATCH_PROPERTYGET
)
{
hr
=
DispGetParam
(
pDispParams
,
0
,
VT_BSTR
,
&
varg0
,
puArgErr
);
hr
=
DispGetParam
(
pDispParams
,
0
,
VT_BSTR
,
&
varg0
,
puArgErr
);
...
...
dlls/msi/msiserver.idl
View file @
ae58e29e
...
@@ -152,21 +152,48 @@ library WindowsInstaller
...
@@ -152,21 +152,48 @@ library WindowsInstaller
Session
*
OpenPackage
(
Session
*
OpenPackage
(
[
in
]
VARIANT
PackagePath
,
[
in
]
VARIANT
PackagePath
,
[
in
,
optional
,
defaultvalue
(
0
)
]
long
Options
)
;
[
in
,
optional
,
defaultvalue
(
0
)
]
long
Options
)
;
[
id
(
DISPID_INSTALLER_OPENPRODUCT
)
]
Session
*
OpenProduct
(
[
in
]
BSTR
ProductCode
)
;
[
id
(
DISPID_INSTALLER_SUMMARYINFORMATION
)
]
SummaryInfo
*
SummaryInformation
(
[
in
]
BSTR
PackagePath
,
[
in
,
optional
,
defaultvalue
(
0
)
]
long
UpdateCount
)
;
[
id
(
DISPID_INSTALLER_OPENDATABASE
)
]
[
id
(
DISPID_INSTALLER_OPENDATABASE
)
]
Database
*
OpenDatabase
(
Database
*
OpenDatabase
(
[
in
]
BSTR
DatabasePath
,
[
in
]
BSTR
DatabasePath
,
[
in
]
VARIANT
OpenMode
)
;
[
in
]
VARIANT
OpenMode
)
;
[
id
(
DISPID_INSTALLER_ENABLELOG
)
]
void
EnableLog
(
[
in
]
BSTR
LogMode
,
[
in
]
BSTR
LogFile
)
;
[
id
(
DISPID_INSTALLER_INSTALLPRODUCT
)
]
[
id
(
DISPID_INSTALLER_INSTALLPRODUCT
)
]
void
InstallProduct
(
void
InstallProduct
(
[
in
]
BSTR
PackagePath
,
[
in
]
BSTR
PackagePath
,
[
in
,
optional
,
defaultvalue
(
"0
")] BSTR PropertyValues);
[
in
,
optional
,
defaultvalue
(
"0
")] BSTR PropertyValues);
[id(DISPID_INSTALLER_VERSION)]
[id(DISPID_INSTALLER_VERSION)]
BSTR Version();
BSTR Version();
[id(DISPID_INSTALLER_LASTERRORRECORD)]
Record* LastErrorRecord();
[id(DISPID_INSTALLER_REGISTRYVALUE), propget]
[id(DISPID_INSTALLER_REGISTRYVALUE), propget]
BSTR RegistryValue(
BSTR RegistryValue(
[in] VARIANT Root,
[in] VARIANT Root,
[in] BSTR Key,
[in] BSTR Key,
[in, optional] VARIANT Value);
[in, optional] VARIANT Value);
[id(DISPID_INSTALLER_ENVIRONMENT), propget]
BSTR Environment([in] BSTR Variable);
[id(DISPID_INSTALLER_ENVIRONMENT), propput]
void Environment(
[in] BSTR Variable,
[in] BSTR rhs);
[id(DISPID_INSTALLER_FILEATTRIBUTES)]
long FileAttributes([in] BSTR FilePath);
[id(DISPID_INSTALLER_FILESIZE)]
long FileSize([in] BSTR FilePath);
[id(DISPID_INSTALLER_FILEVERSION)]
BSTR FileVersion(
[in] BSTR FilePath,
[in, optional] VARIANT Language);
[id(DISPID_INSTALLER_PRODUCTSTATE), propget]
[id(DISPID_INSTALLER_PRODUCTSTATE), propget]
MsiInstallState ProductState(
MsiInstallState ProductState(
[in] BSTR Product);
[in] BSTR Product);
...
...
dlls/msi/msiserver_dispids.h
View file @
ae58e29e
...
@@ -18,11 +18,19 @@
...
@@ -18,11 +18,19 @@
#define DISPID_INSTALLER_CREATERECORD 1
#define DISPID_INSTALLER_CREATERECORD 1
#define DISPID_INSTALLER_OPENPACKAGE 2
#define DISPID_INSTALLER_OPENPACKAGE 2
#define DISPID_INSTALLER_OPENPRODUCT 3
#define DISPID_INSTALLER_OPENDATABASE 4
#define DISPID_INSTALLER_OPENDATABASE 4
#define DISPID_INSTALLER_SUMMARYINFORMATION 5
#define DISPID_INSTALLER_UILEVEL 6
#define DISPID_INSTALLER_UILEVEL 6
#define DISPID_INSTALLER_ENABLELOG 7
#define DISPID_INSTALLER_INSTALLPRODUCT 8
#define DISPID_INSTALLER_INSTALLPRODUCT 8
#define DISPID_INSTALLER_VERSION 9
#define DISPID_INSTALLER_VERSION 9
#define DISPID_INSTALLER_LASTERRORRECORD 10
#define DISPID_INSTALLER_REGISTRYVALUE 11
#define DISPID_INSTALLER_REGISTRYVALUE 11
#define DISPID_INSTALLER_ENVIRONMENT 12
#define DISPID_INSTALLER_FILEATTRIBUTES 13
#define DISPID_INSTALLER_FILESIZE 15
#define DISPID_INSTALLER_FILEVERSION 16
#define DISPID_INSTALLER_PRODUCTSTATE 17
#define DISPID_INSTALLER_PRODUCTSTATE 17
#define DISPID_INSTALLER_PRODUCTINFO 18
#define DISPID_INSTALLER_PRODUCTINFO 18
#define DISPID_INSTALLER_PRODUCTS 35
#define DISPID_INSTALLER_PRODUCTS 35
...
...
dlls/msi/tests/automation.c
View file @
ae58e29e
...
@@ -477,35 +477,32 @@ static void test_dispid(void)
...
@@ -477,35 +477,32 @@ static void test_dispid(void)
ok
(
dispid
==
1
,
"Expected 1, got %d
\n
"
,
dispid
);
ok
(
dispid
==
1
,
"Expected 1, got %d
\n
"
,
dispid
);
dispid
=
get_dispid
(
pInstaller
,
"OpenPackage"
);
dispid
=
get_dispid
(
pInstaller
,
"OpenPackage"
);
ok
(
dispid
==
2
,
"Expected 2, got %d
\n
"
,
dispid
);
ok
(
dispid
==
2
,
"Expected 2, got %d
\n
"
,
dispid
);
dispid
=
get_dispid
(
pInstaller
,
"OpenProduct"
);
ok
(
dispid
==
3
,
"Expected 3, got %d
\n
"
,
dispid
);
dispid
=
get_dispid
(
pInstaller
,
"OpenDatabase"
);
dispid
=
get_dispid
(
pInstaller
,
"OpenDatabase"
);
ok
(
dispid
==
4
,
"Expected 4, got %d
\n
"
,
dispid
);
ok
(
dispid
==
4
,
"Expected 4, got %d
\n
"
,
dispid
);
dispid
=
get_dispid
(
pInstaller
,
"SummaryInformation"
);
ok
(
dispid
==
5
,
"Expected 5, got %d
\n
"
,
dispid
);
dispid
=
get_dispid
(
pInstaller
,
"UILevel"
);
dispid
=
get_dispid
(
pInstaller
,
"UILevel"
);
ok
(
dispid
==
6
,
"Expected 6, got %d
\n
"
,
dispid
);
ok
(
dispid
==
6
,
"Expected 6, got %d
\n
"
,
dispid
);
dispid
=
get_dispid
(
pInstaller
,
"EnableLog"
);
ok
(
dispid
==
7
,
"Expected 7, got %d
\n
"
,
dispid
);
dispid
=
get_dispid
(
pInstaller
,
"InstallProduct"
);
dispid
=
get_dispid
(
pInstaller
,
"InstallProduct"
);
ok
(
dispid
==
8
,
"Expected 8, got %d
\n
"
,
dispid
);
ok
(
dispid
==
8
,
"Expected 8, got %d
\n
"
,
dispid
);
dispid
=
get_dispid
(
pInstaller
,
"Version"
);
dispid
=
get_dispid
(
pInstaller
,
"Version"
);
ok
(
dispid
==
9
,
"Expected 9, got %d
\n
"
,
dispid
);
ok
(
dispid
==
9
,
"Expected 9, got %d
\n
"
,
dispid
);
dispid
=
get_dispid
(
pInstaller
,
"LastErrorRecord"
);
ok
(
dispid
==
10
,
"Expected 10, got %d
\n
"
,
dispid
);
dispid
=
get_dispid
(
pInstaller
,
"RegistryValue"
);
dispid
=
get_dispid
(
pInstaller
,
"RegistryValue"
);
ok
(
dispid
==
11
,
"Expected 11, got %d
\n
"
,
dispid
);
ok
(
dispid
==
11
,
"Expected 11, got %d
\n
"
,
dispid
);
todo_wine
dispid
=
get_dispid
(
pInstaller
,
"Environment"
);
{
ok
(
dispid
==
12
,
"Expected 12, got %d
\n
"
,
dispid
);
dispid
=
get_dispid
(
pInstaller
,
"OpenProduct"
);
dispid
=
get_dispid
(
pInstaller
,
"FileAttributes"
);
ok
(
dispid
==
3
,
"Expected 3, got %d
\n
"
,
dispid
);
ok
(
dispid
==
13
,
"Expected 13, got %d
\n
"
,
dispid
);
dispid
=
get_dispid
(
pInstaller
,
"SummaryInformation"
);
dispid
=
get_dispid
(
pInstaller
,
"FileSize"
);
ok
(
dispid
==
5
,
"Expected 5, got %d
\n
"
,
dispid
);
ok
(
dispid
==
15
,
"Expected 15, got %d
\n
"
,
dispid
);
dispid
=
get_dispid
(
pInstaller
,
"EnableLog"
);
dispid
=
get_dispid
(
pInstaller
,
"FileVersion"
);
ok
(
dispid
==
7
,
"Expected 7, got %d
\n
"
,
dispid
);
ok
(
dispid
==
16
,
"Expected 16, got %d
\n
"
,
dispid
);
dispid
=
get_dispid
(
pInstaller
,
"LastErrorRecord"
);
ok
(
dispid
==
10
,
"Expected 10, got %d
\n
"
,
dispid
);
dispid
=
get_dispid
(
pInstaller
,
"Environment"
);
ok
(
dispid
==
12
,
"Expected 12, got %d
\n
"
,
dispid
);
dispid
=
get_dispid
(
pInstaller
,
"FileAttributes"
);
ok
(
dispid
==
13
,
"Expected 13, got %d
\n
"
,
dispid
);
dispid
=
get_dispid
(
pInstaller
,
"FileSize"
);
ok
(
dispid
==
15
,
"Expected 15, got %d
\n
"
,
dispid
);
dispid
=
get_dispid
(
pInstaller
,
"FileVersion"
);
ok
(
dispid
==
16
,
"Expected 16, got %d
\n
"
,
dispid
);
}
dispid
=
get_dispid
(
pInstaller
,
"ProductState"
);
dispid
=
get_dispid
(
pInstaller
,
"ProductState"
);
ok
(
dispid
==
17
,
"Expected 17, got %d
\n
"
,
dispid
);
ok
(
dispid
==
17
,
"Expected 17, got %d
\n
"
,
dispid
);
dispid
=
get_dispid
(
pInstaller
,
"ProductInfo"
);
dispid
=
get_dispid
(
pInstaller
,
"ProductInfo"
);
...
...
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