Hi,
I'm trying to use RegDLL to register a COM DLL.
When I run the setup I see error:
Could not load: C:\Program Files\Test\test.dll
The DLL is copied successfully.
What code can I add to check this issue, and abort installation on failure ?
The documentation for RegDLL says:
The error flag is set if an error occurs (i.e. it can't load the DLL, initialize OLE, find the entry point, or the function returned anything other than ERROR_SUCCESS (=0)).
I've tried using IfErrors, but with no success.
Thanks for any help,
Si.
newbie - RegDLL
3 posts
Try to register your dll by regsvr32. If success, using ExecWait '"$SYSDIR\regsvr32.exe" /s "INSTDIR\test.dll"' instead。
Thanks ,
it worked.
it worked.