mirror of
https://github.com/reactos/reactos.git
synced 2025-07-23 12:03:52 +00:00
[WINESYNC] setupapi: Add support for a WinePreInstall section for registry keys that need to be created before anything else.
wine commit id 9a6a1126b9b8b4b5f17b16249eba761063be4be8 by Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
4d88011a96
commit
bfc189e8a2
2 changed files with 13 additions and 1 deletions
|
@ -129,6 +129,7 @@ static const WCHAR Needs[] = {'N','e','e','d','s',0};
|
||||||
static const WCHAR DotSecurity[] = {'.','S','e','c','u','r','i','t','y',0};
|
static const WCHAR DotSecurity[] = {'.','S','e','c','u','r','i','t','y',0};
|
||||||
#ifdef __WINESRC__
|
#ifdef __WINESRC__
|
||||||
static const WCHAR WineFakeDlls[] = {'W','i','n','e','F','a','k','e','D','l','l','s',0};
|
static const WCHAR WineFakeDlls[] = {'W','i','n','e','F','a','k','e','D','l','l','s',0};
|
||||||
|
static const WCHAR WinePreInstall[] = {'W','i','n','e','P','r','e','I','n','s','t','a','l','l',0};
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
@ -1409,6 +1410,17 @@ BOOL WINAPI SetupInstallFromInfSectionW( HWND owner, HINF hinf, PCWSTR section,
|
||||||
iterate_section_fields( hinf, section, Needs, needs_callback, &needs_info);
|
iterate_section_fields( hinf, section, Needs, needs_callback, &needs_info);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef __WINESRC__
|
||||||
|
if (flags & SPINST_REGISTRY)
|
||||||
|
{
|
||||||
|
struct registry_callback_info info;
|
||||||
|
|
||||||
|
info.default_root = key_root;
|
||||||
|
info.delete = FALSE;
|
||||||
|
if (!iterate_section_fields( hinf, section, WinePreInstall, registry_callback, &info ))
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
|
#endif
|
||||||
if (flags & SPINST_FILES)
|
if (flags & SPINST_FILES)
|
||||||
{
|
{
|
||||||
SP_DEVINSTALL_PARAMS_W install_params;
|
SP_DEVINSTALL_PARAMS_W install_params;
|
||||||
|
|
|
@ -5,4 +5,4 @@ files:
|
||||||
dlls/setupapi/misc.c: dll/win32/setupapi/misc.c
|
dlls/setupapi/misc.c: dll/win32/setupapi/misc.c
|
||||||
dlls/setupapi/stubs.c: dll/win32/setupapi/stubs.c
|
dlls/setupapi/stubs.c: dll/win32/setupapi/stubs.c
|
||||||
tags:
|
tags:
|
||||||
wine: 8f6801fdc02ff8307d81368be5d231505c78a35a
|
wine: 9a6a1126b9b8b4b5f17b16249eba761063be4be8
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue