Commit 54391a11 authored by Hans Leidekker's avatar Hans Leidekker Committed by Alexandre Julliard

msi: Update the UI when registering or unregistering type libraries.

parent 4ccbcb02
...@@ -2882,6 +2882,8 @@ static UINT ITERATE_RegisterTypeLibraries(MSIRECORD *row, LPVOID param) ...@@ -2882,6 +2882,8 @@ static UINT ITERATE_RegisterTypeLibraries(MSIRECORD *row, LPVOID param)
if (!file) if (!file)
return ERROR_SUCCESS; return ERROR_SUCCESS;
ui_actiondata( package, szRegisterTypeLibraries, row );
module = LoadLibraryExW( file->TargetPath, NULL, LOAD_LIBRARY_AS_DATAFILE ); module = LoadLibraryExW( file->TargetPath, NULL, LOAD_LIBRARY_AS_DATAFILE );
if (module) if (module)
{ {
...@@ -2911,11 +2913,7 @@ static UINT ITERATE_RegisterTypeLibraries(MSIRECORD *row, LPVOID param) ...@@ -2911,11 +2913,7 @@ static UINT ITERATE_RegisterTypeLibraries(MSIRECORD *row, LPVOID param)
ERR("Failed to register type library %s\n", ERR("Failed to register type library %s\n",
debugstr_w(tl_struct.path)); debugstr_w(tl_struct.path));
else else
{
ui_actiondata(package,szRegisterTypeLibraries,row);
TRACE("Registered %s\n", debugstr_w(tl_struct.path)); TRACE("Registered %s\n", debugstr_w(tl_struct.path));
}
ITypeLib_Release(tl_struct.ptLib); ITypeLib_Release(tl_struct.ptLib);
msi_free(tl_struct.path); msi_free(tl_struct.path);
...@@ -2990,6 +2988,8 @@ static UINT ITERATE_UnregisterTypeLibraries( MSIRECORD *row, LPVOID param ) ...@@ -2990,6 +2988,8 @@ static UINT ITERATE_UnregisterTypeLibraries( MSIRECORD *row, LPVOID param )
} }
comp->Action = INSTALLSTATE_ABSENT; comp->Action = INSTALLSTATE_ABSENT;
ui_actiondata( package, szUnregisterTypeLibraries, row );
guid = MSI_RecordGetString( row, 1 ); guid = MSI_RecordGetString( row, 1 );
CLSIDFromString( (LPWSTR)guid, &libid ); CLSIDFromString( (LPWSTR)guid, &libid );
version = MSI_RecordGetInteger( row, 4 ); version = MSI_RecordGetInteger( row, 4 );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment