[1/4] msi: Update the UI when registering or unregistering type libraries.

Hans Leidekker hans at codeweavers.com
Tue Feb 16 04:44:34 CST 2010


---
 dlls/msi/action.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/dlls/msi/action.c b/dlls/msi/action.c
index 4ddfc82..3d6b5c1 100644
--- a/dlls/msi/action.c
+++ b/dlls/msi/action.c
@@ -2882,6 +2882,8 @@ static UINT ITERATE_RegisterTypeLibraries(MSIRECORD *row, LPVOID param)
     if (!file)
         return ERROR_SUCCESS;
 
+    ui_actiondata( package, szRegisterTypeLibraries, row );
+
     module = LoadLibraryExW( file->TargetPath, NULL, LOAD_LIBRARY_AS_DATAFILE );
     if (module)
     {
@@ -2911,11 +2913,7 @@ static UINT ITERATE_RegisterTypeLibraries(MSIRECORD *row, LPVOID param)
                 ERR("Failed to register type library %s\n",
                         debugstr_w(tl_struct.path));
             else
-            {
-                ui_actiondata(package,szRegisterTypeLibraries,row);
-
                 TRACE("Registered %s\n", debugstr_w(tl_struct.path));
-            }
 
             ITypeLib_Release(tl_struct.ptLib);
             msi_free(tl_struct.path);
@@ -2990,6 +2988,8 @@ static UINT ITERATE_UnregisterTypeLibraries( MSIRECORD *row, LPVOID param )
     }
     comp->Action = INSTALLSTATE_ABSENT;
 
+    ui_actiondata( package, szUnregisterTypeLibraries, row );
+
     guid = MSI_RecordGetString( row, 1 );
     CLSIDFromString( (LPWSTR)guid, &libid );
     version = MSI_RecordGetInteger( row, 4 );
-- 
1.6.3.3





More information about the wine-patches mailing list