Hi,
I am writing an application that will Unregister and delete the Dlls in a given directory structure. I tried this in 2 ways but am having problems in both.
1) I tried the ShellExecute to do this using the "open" verb but this resulted in the successful/unsuccessful Notification message. The appln would be functioning for a batch of DLLs and I don't want a notification to be sent. Is this possible? How do i disable notifications?
2) Secondly I tried this code borrowed from an article posted by Clunietp. Here the difficulty i encountered was that the Dll had to be hardcoded in the Declaration Statement itself. Anyone has any ideas on how the DLL can be passed as an argument to a similar API Call?VB Code:
l = ShellExecute(Me.hwnd, "Open", "c:/Winnt/system32/regsvr32.exe /u", "D:/Dlls/xxxx.dll", "c:/", SW_HIDE)
Also, I want ways to clean the registry entries - Class IDs of the deleted DLLs. Any ideas?VB Code:
Private Declare Function UnRegComCtl32 Lib "D:/DLLs/xxxx.dll" _ Alias "DllUnregisterServer" () As Long
thanks,
Jemima.




Reply With Quote