[1/4] msi: Respect UI level in custom action type 19.

Hans Leidekker hans at codeweavers.com
Tue Sep 29 07:55:58 CDT 2009


diff --git a/dlls/msi/custom.c b/dlls/msi/custom.c
index cbbcde5..7fcb09a 100644
--- a/dlls/msi/custom.c
+++ b/dlls/msi/custom.c
@@ -1046,10 +1046,11 @@ static UINT HANDLE_CustomType19(MSIPACKAGE *package, LPCWSTR source,
     if( row )
     {
         LPCWSTR error = MSI_RecordGetString( row, 1 );
-        MessageBoxW( NULL, error, NULL, MB_OK );
+        if ((gUILevel & INSTALLUILEVEL_MASK) != INSTALLUILEVEL_NONE)
+            MessageBoxW( NULL, error, NULL, MB_OK );
         msiobj_release( &row->hdr );
     }
-    else
+    else if ((gUILevel & INSTALLUILEVEL_MASK) != INSTALLUILEVEL_NONE)
         MessageBoxW( NULL, deformated, NULL, MB_OK );
 
     msi_free( deformated );



More information about the wine-patches mailing list