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
fee5bee8
Commit
fee5bee8
authored
Jul 19, 2006
by
Mike McCormack
Committed by
Alexandre Julliard
Jul 19, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi: Implement MsiConfigureFeatureW.
parent
46422218
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
45 additions
and
2 deletions
+45
-2
msi.c
dlls/msi/msi.c
+45
-2
No files found.
dlls/msi/msi.c
View file @
fee5bee8
...
...
@@ -1806,8 +1806,51 @@ end:
*/
UINT
WINAPI
MsiConfigureFeatureW
(
LPCWSTR
szProduct
,
LPCWSTR
szFeature
,
INSTALLSTATE
eInstallState
)
{
FIXME
(
"%s %s %i
\n
"
,
debugstr_w
(
szProduct
),
debugstr_w
(
szFeature
),
eInstallState
);
return
ERROR_SUCCESS
;
static
const
WCHAR
szCostInit
[]
=
{
'C'
,
'o'
,
's'
,
't'
,
'I'
,
'n'
,
'i'
,
't'
,
'i'
,
'a'
,
'l'
,
'i'
,
'z'
,
'e'
,
0
};
MSIPACKAGE
*
package
=
NULL
;
UINT
r
;
WCHAR
sourcepath
[
MAX_PATH
],
filename
[
MAX_PATH
];
DWORD
sz
;
TRACE
(
"%s %s %i
\n
"
,
debugstr_w
(
szProduct
),
debugstr_w
(
szFeature
),
eInstallState
);
if
(
!
szProduct
||
!
szFeature
)
return
ERROR_INVALID_PARAMETER
;
r
=
MSI_OpenProductW
(
szProduct
,
&
package
);
if
(
r
!=
ERROR_SUCCESS
)
return
r
;
sz
=
sizeof
(
sourcepath
);
MsiSourceListGetInfoW
(
szProduct
,
NULL
,
MSIINSTALLCONTEXT_USERMANAGED
,
MSICODE_PRODUCT
,
INSTALLPROPERTY_LASTUSEDSOURCEW
,
sourcepath
,
&
sz
);
sz
=
sizeof
(
filename
);
MsiSourceListGetInfoW
(
szProduct
,
NULL
,
MSIINSTALLCONTEXT_USERMANAGED
,
MSICODE_PRODUCT
,
INSTALLPROPERTY_PACKAGENAMEW
,
filename
,
&
sz
);
lstrcatW
(
sourcepath
,
filename
);
MsiSetInternalUI
(
INSTALLUILEVEL_BASIC
,
NULL
);
/* FIXME: how do we figure out the default location? */
if
(
eInstallState
==
INSTALLSTATE_DEFAULT
)
eInstallState
=
INSTALLSTATE_LOCAL
;
r
=
ACTION_PerformUIAction
(
package
,
szCostInit
);
if
(
r
!=
ERROR_SUCCESS
)
goto
end
;
r
=
MSI_SetFeatureStateW
(
package
,
szFeature
,
eInstallState
);
if
(
r
!=
ERROR_SUCCESS
)
goto
end
;
r
=
MSI_InstallPackage
(
package
,
sourcepath
,
NULL
);
end:
msiobj_release
(
&
package
->
hdr
);
return
r
;
}
/***********************************************************************
...
...
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