Self registering dll fails on Win98/NTsp6
I have a file which self-registers during install (yes, I know this is not the recommended method but this is OUR preferred way) and it works fine on Win2000 & XP but fails on Win98 and WinNT sp6
"Error 1094.Modul D:\Program Files\<Comp name>\<product name>\<Sub Component>FileName.dll failed to register. HRESULT -2147024770. Contact your support personnel."
Any clues on this?
I have figured out what was happening. Thanks to IS Tech support replies on here I used dependency walker to find out what other dll's my dll was dependent on. One of which was ATL.DLL which is not part of Win9x, WinME, or WinNT. So when my dll went to self-register it looked in the normal places (cur dir, path) but could not find atl.dll even though I am installing it as well. The folder in which atl.dll was being installed was not part of the search path...so there you go!
The exact solution is not obvious yet but there are a number of ways to go.