From: Isaac Marovitz isaacryu@icloud.com
--- programs/wineboot/wineboot.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-)
diff --git a/programs/wineboot/wineboot.c b/programs/wineboot/wineboot.c index c05ce580298..b79e33f0e2e 100644 --- a/programs/wineboot/wineboot.c +++ b/programs/wineboot/wineboot.c @@ -1495,7 +1495,10 @@ static void update_wineprefix( BOOL force )
if ((process = start_rundll32( inf_path, L"PreInstall", IMAGE_FILE_MACHINE_TARGET_HOST ))) { - HWND hwnd = show_wait_window(); + WCHAR *hide = _wgetenv( L"WINEHIDEWAIT" ); + if (hide != "1") { + HWND hwnd = show_wait_window(); + } for (;;) { MSG msg; @@ -1513,7 +1516,9 @@ static void update_wineprefix( BOOL force ) } else while (PeekMessageW( &msg, 0, 0, 0, PM_REMOVE )) DispatchMessageW( &msg ); } - DestroyWindow( hwnd ); + if (hide != "1") { + DestroyWindow(hwnd); + } } install_root_pnp_devices(); update_user_profile();