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
b5c02815
Commit
b5c02815
authored
Aug 24, 2005
by
Johan Dahlin
Committed by
Alexandre Julliard
Aug 24, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Implemented MsiSetComponentState*.
parent
34247aff
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
36 additions
and
4 deletions
+36
-4
install.c
dlls/msi/install.c
+33
-4
msiquery.h
include/msiquery.h
+3
-0
No files found.
dlls/msi/install.c
View file @
b5c02815
...
...
@@ -529,8 +529,14 @@ piAction);
UINT
WINAPI
MsiSetComponentStateA
(
MSIHANDLE
hInstall
,
LPCSTR
szComponent
,
INSTALLSTATE
iState
)
{
FIXME
(
"STUB (szComponent=%s,iState=%i)
\n
"
,
debugstr_a
(
szComponent
),
iState
);
return
ERROR_SUCCESS
;
UINT
rc
;
LPWSTR
szwComponent
=
strdupAtoW
(
szComponent
);
rc
=
MsiSetComponentStateW
(
hInstall
,
szwComponent
,
iState
);
HeapFree
(
GetProcessHeap
(),
0
,
szwComponent
);
return
rc
;
}
/***********************************************************************
...
...
@@ -551,6 +557,22 @@ UINT WINAPI MsiGetComponentStateA(MSIHANDLE hInstall, LPSTR szComponent,
return
rc
;
}
static
UINT
MSI_SetComponentStateW
(
MSIPACKAGE
*
package
,
LPCWSTR
szComponent
,
INSTALLSTATE
iState
)
{
MSICOMPONENT
*
comp
;
TRACE
(
"%p %s %d
\n
"
,
package
,
debugstr_w
(
szComponent
),
iState
);
comp
=
get_loaded_component
(
package
,
szComponent
);
if
(
!
comp
)
return
ERROR_UNKNOWN_COMPONENT
;
comp
->
Installed
=
iState
;
return
ERROR_SUCCESS
;
}
UINT
MSI_GetComponentStateW
(
MSIPACKAGE
*
package
,
LPWSTR
szComponent
,
INSTALLSTATE
*
piInstalled
,
INSTALLSTATE
*
piAction
)
{
...
...
@@ -580,8 +602,15 @@ UINT MSI_GetComponentStateW(MSIPACKAGE *package, LPWSTR szComponent,
UINT
WINAPI
MsiSetComponentStateW
(
MSIHANDLE
hInstall
,
LPCWSTR
szComponent
,
INSTALLSTATE
iState
)
{
FIXME
(
"STUB (szComponent=%s,iState=%i)
\n
"
,
debugstr_w
(
szComponent
),
iState
);
return
ERROR_SUCCESS
;
MSIPACKAGE
*
package
;
UINT
ret
;
package
=
msihandle2msiinfo
(
hInstall
,
MSIHANDLETYPE_PACKAGE
);
if
(
!
package
)
return
ERROR_INVALID_HANDLE
;
ret
=
MSI_SetComponentStateW
(
package
,
szComponent
,
iState
);
msiobj_release
(
&
package
->
hdr
);
return
ret
;
}
/***********************************************************************
...
...
include/msiquery.h
View file @
b5c02815
...
...
@@ -175,6 +175,9 @@ UINT WINAPI MsiDatabaseCommit(MSIHANDLE);
UINT
WINAPI
MsiGetFeatureStateA
(
MSIHANDLE
,
LPSTR
,
INSTALLSTATE
*
,
INSTALLSTATE
*
);
UINT
WINAPI
MsiGetFeatureStateW
(
MSIHANDLE
,
LPWSTR
,
INSTALLSTATE
*
,
INSTALLSTATE
*
);
#define MsiGetFeatureState WINELIB_NAME_AW(MsiGetFeatureState)
UINT
WINAPI
MsiSetComponentStateA
(
MSIHANDLE
,
LPCSTR
,
INSTALLSTATE
);
UINT
WINAPI
MsiSetComponentStateW
(
MSIHANDLE
,
LPCWSTR
,
INSTALLSTATE
);
#define MsiSetComponentState WINELIB_NAME_AW(MsiSetComponentState)
UINT
WINAPI
MsiGetComponentStateA
(
MSIHANDLE
,
LPSTR
,
INSTALLSTATE
*
,
INSTALLSTATE
*
);
UINT
WINAPI
MsiGetComponentStateW
(
MSIHANDLE
,
LPWSTR
,
INSTALLSTATE
*
,
INSTALLSTATE
*
);
#define MsiGetComponentState WINELIB_NAME_AW(MsiGetComponentState)
...
...
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