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
c6741d83
Commit
c6741d83
authored
Jul 03, 2007
by
James Hawkins
Committed by
Alexandre Julliard
Jul 04, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi: Handle remote calls to MsiSetInstallLevel.
parent
569ea392
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
33 additions
and
3 deletions
+33
-3
install.c
dlls/msi/install.c
+24
-3
msiserver.idl
dlls/msi/msiserver.idl
+1
-0
package.c
dlls/msi/package.c
+8
-0
No files found.
dlls/msi/install.c
View file @
c6741d83
...
...
@@ -1100,9 +1100,30 @@ UINT WINAPI MsiSetInstallLevel(MSIHANDLE hInstall, int iInstallLevel)
TRACE
(
"%ld %i
\n
"
,
hInstall
,
iInstallLevel
);
package
=
msihandle2msiinfo
(
hInstall
,
MSIHANDLETYPE_PACKAGE
);
if
(
!
package
)
return
ERROR_INVALID_HANDLE
;
package
=
msihandle2msiinfo
(
hInstall
,
MSIHANDLETYPE_PACKAGE
);
if
(
!
package
)
{
HRESULT
hr
;
IWineMsiRemotePackage
*
remote_package
;
remote_package
=
(
IWineMsiRemotePackage
*
)
msi_get_remote
(
hInstall
);
if
(
!
remote_package
)
return
ERROR_INVALID_HANDLE
;
hr
=
IWineMsiRemotePackage_SetInstallLevel
(
remote_package
,
iInstallLevel
);
IWineMsiRemotePackage_Release
(
remote_package
);
if
(
FAILED
(
hr
))
{
if
(
HRESULT_FACILITY
(
hr
)
==
FACILITY_WIN32
)
return
HRESULT_CODE
(
hr
);
return
ERROR_FUNCTION_FAILED
;
}
return
ERROR_SUCCESS
;
}
r
=
MSI_SetInstallLevel
(
package
,
iInstallLevel
);
...
...
dlls/msi/msiserver.idl
View file @
c6741d83
...
...
@@ -54,6 +54,7 @@ interface IWineMsiRemotePackage : IUnknown
HRESULT
GetComponentState
(
[
in
]
BSTR
*
component
,
[
out
]
INSTALLSTATE
*
installed
,
[
out
]
INSTALLSTATE
*
action
)
;
HRESULT
SetComponentState
(
[
in
]
BSTR
*
component
,
[
in
]
INSTALLSTATE
state
)
;
HRESULT
GetLanguage
(
[
out
]
LANGID
*
language
)
;
HRESULT
SetInstallLevel
(
[
in
]
int
level
)
;
}
[
...
...
dlls/msi/package.c
View file @
c6741d83
...
...
@@ -1655,6 +1655,13 @@ HRESULT WINAPI mrp_GetLanguage( IWineMsiRemotePackage *iface, LANGID *language )
return
S_OK
;
}
HRESULT
WINAPI
mrp_SetInstallLevel
(
IWineMsiRemotePackage
*
iface
,
int
level
)
{
msi_remote_package_impl
*
This
=
mrp_from_IWineMsiRemotePackage
(
iface
);
UINT
r
=
MsiSetInstallLevel
(
This
->
package
,
level
);
return
HRESULT_FROM_WIN32
(
r
);
}
static
const
IWineMsiRemotePackageVtbl
msi_remote_package_vtbl
=
{
mrp_QueryInterface
,
...
...
@@ -1676,6 +1683,7 @@ static const IWineMsiRemotePackageVtbl msi_remote_package_vtbl =
mrp_GetComponentState
,
mrp_SetComponentState
,
mrp_GetLanguage
,
mrp_SetInstallLevel
,
};
HRESULT
create_msi_remote_package
(
IUnknown
*
pOuter
,
LPVOID
*
ppObj
)
...
...
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