msi: Complain louder if we can't find a custom action DLL or EXE.

Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Zebediah Figura 2017-12-04 12:41:15 -06:00 committed by Alexandre Julliard
parent d12717b9a8
commit 13a00077e4
1 changed files with 4 additions and 4 deletions

View File

@ -263,7 +263,7 @@ static MSIBINARY *create_temp_binary( MSIPACKAGE *package, LPCWSTR source, BOOL
/* keep a reference to prevent the dll from being unloaded */ /* keep a reference to prevent the dll from being unloaded */
if (dll && !(binary->module = LoadLibraryW( tmpfile ))) if (dll && !(binary->module = LoadLibraryW( tmpfile )))
{ {
WARN( "failed to load dll %s (%u)\n", debugstr_w( tmpfile ), GetLastError() ); ERR( "failed to load dll %s (%u)\n", debugstr_w( tmpfile ), GetLastError() );
} }
binary->source = strdupW( source ); binary->source = strdupW( source );
binary->tmpfile = tmpfile; binary->tmpfile = tmpfile;
@ -567,7 +567,7 @@ static DWORD ACTION_CallDllFunction( const GUID *guid )
hModule = LoadLibraryW( dll ); hModule = LoadLibraryW( dll );
if (!hModule) if (!hModule)
{ {
WARN( "failed to load dll %s (%u)\n", debugstr_w( dll ), GetLastError() ); ERR( "failed to load dll %s (%u)\n", debugstr_w( dll ), GetLastError() );
return ERROR_SUCCESS; return ERROR_SUCCESS;
} }
@ -700,7 +700,7 @@ static HANDLE execute_command( const WCHAR *app, WCHAR *arg, const WCHAR *dir )
} }
if (!len_exe) if (!len_exe)
{ {
WARN("can't find executable %u\n", GetLastError()); ERR("can't find executable %u\n", GetLastError());
msi_free( exe ); msi_free( exe );
return INVALID_HANDLE_VALUE; return INVALID_HANDLE_VALUE;
} }
@ -738,7 +738,7 @@ static HANDLE execute_command( const WCHAR *app, WCHAR *arg, const WCHAR *dir )
msi_free( exe ); msi_free( exe );
if (!ret) if (!ret)
{ {
WARN("unable to execute command %u\n", GetLastError()); ERR("unable to execute command %u\n", GetLastError());
return INVALID_HANDLE_VALUE; return INVALID_HANDLE_VALUE;
} }
CloseHandle( info.hThread ); CloseHandle( info.hThread );