Results 1 to 4 of 4

Thread: Unregister and Delete Dlls programmatically

Threaded View

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Aug 2001
    Location
    India
    Posts
    276

    Unregister and Delete Dlls programmatically

    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?
    VB Code:
    1. l = ShellExecute(Me.hwnd, "Open", "c:/Winnt/system32/regsvr32.exe /u", "D:/Dlls/xxxx.dll", "c:/", SW_HIDE)
    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:
    1. Private Declare Function UnRegComCtl32 Lib "D:/DLLs/xxxx.dll" _
    2.          Alias "DllUnregisterServer" () As Long
    Also, I want ways to clean the registry entries - Class IDs of the deleted DLLs. Any ideas?

    thanks,
    Jemima.
    Last edited by JemimaChadwick; Sep 26th, 2001 at 05:45 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width