[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:
winesync 2024-01-04 22:09:22 +01:00 committed by Hermès Bélusca-Maïto
parent f9d8e345de
commit 82fece3243
No known key found for this signature in database
GPG key ID: 3B2539C65E7B93D0
2 changed files with 13 additions and 1 deletions

View file

@ -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};
#ifdef __WINESRC__
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
@ -1406,6 +1407,17 @@ BOOL WINAPI SetupInstallFromInfSectionW( HWND owner, HINF hinf, PCWSTR section,
iterate_section_fields( hinf, section, Needs, needs_callback, &needs_info);
#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)
{
SP_DEVINSTALL_PARAMS_W install_params;

View file

@ -5,4 +5,4 @@ files:
dlls/setupapi/misc.c: dll/win32/setupapi/misc.c
dlls/setupapi/stubs.c: dll/win32/setupapi/stubs.c
tags:
wine: 8f6801fdc02ff8307d81368be5d231505c78a35a
wine: 9a6a1126b9b8b4b5f17b16249eba761063be4be8