Results 1 to 7 of 7
  1. #1
    2 Star Lounger
    Join Date
    Jan 2001
    Location
    Nottingham, UK, Nottinghamshire, England
    Posts
    190
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Add/Remove Programs leaving entry behind

    (Edited by HansV to make URL clickable - see <!help=19>Help 19<!/help>)

    I have written a number of VB6 applications, which I have carefully packaged using the Package & Deployment Wizard. They install just fine. However, when I come to update them on any PC by uninstalling (via Add/Remove Programs) and reinstalling, the uninstall works fine EXCEPT that the entry in the Add/Remove Programs list is not removed. Consequently, I see a number of references to the same applications.

    I found the KB document http://support.microsoft.com/?kbid=247501 advising to look in the Registry under HKEY_LOCAL_MACHINESoftwareMicrosoftWindowsCurrentV ersionUninstall, locate the superfluous keys and delete them. Unfortunately, when I try this, I just get 'Cannot delete {keyname}: Error while deleting key.' - that's it, no more information.

    Does anyone have any ideas what causes this error, and more importantly, what I can do to avoid it and get rid of these superfuous keys (about 30 in my Registry, for example)? Thanks for any help.

  2. #2
    Uranium Lounger
    Join Date
    Mar 2001
    Location
    New Jersey
    Posts
    6,684
    Thanks
    1
    Thanked 11 Times in 11 Posts

    Re: Add/Remove Programs leaving entry behind

    Try attempting to uninstall the item again. You should get an error saying that the program may have been removed and asking if you would like to remove the entry from the Add/Remove Programs list. Say yes.

    I don't know if this will remove the registry key or not. HTH <img src=/S/smile.gif border=0 alt=smile width=15 height=15>
    <IMG SRC=http://www.wopr.com/w3tuserpics/DocWatson_sig.gif>

  3. #3
    2 Star Lounger
    Join Date
    Jan 2001
    Location
    Nottingham, UK, Nottinghamshire, England
    Posts
    190
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Add/Remove Programs leaving entry behind

    Thanks for the help. Unfortunately, it didn't (help, that is!). When I try to remove it again, I get 'Unable to open log file ST6UNST.DLL' and it stops there and then. So, the question is still how to remove the superfluous keys from the registry, when even the Microsoft solution doesn't work. And this is not confined to just my pc; it affects all the machines here at work.

    Thanks again anyway.

  4. #4
    Uranium Lounger
    Join Date
    Mar 2001
    Location
    New Jersey
    Posts
    6,684
    Thanks
    1
    Thanked 11 Times in 11 Posts

    Re: Add/Remove Programs leaving entry behind

    OK..... you might try reinstalling the application and then boot into Safe Mode and try removing it in Add/Remove Programs then.
    <IMG SRC=http://www.wopr.com/w3tuserpics/DocWatson_sig.gif>

  5. #5
    4 Star Lounger
    Join Date
    May 2003
    Location
    Austin
    Posts
    401
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Add/Remove Programs leaving entry behind

    Since your app probably created it's own directory in the registry to house the key, try deleting that directory. Another thing to check for is the GUID that is created on install. Try searching for the GUID in your regedit process. Also try HKLM/Software/Installer/Assemblies.

  6. #6
    3 Star Lounger
    Join Date
    Nov 2004
    Location
    Nottingham, Nottinghamshire, United Kingdom
    Posts
    326
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Add/Remove Programs leaving entry behind

    You probably can't delete the registry key because of security restrictions. Are you logged in as an Administrator? If not, that's likely to be why you get the error.
    <font color=448800><font face="Comic Sans MS"><big>Lyra J </font color=448800></font face=comic></big>
    <img src=/S/flags/UK.gif border=0 alt=UK width=30 height=18> Ducking the arrows in Robin Hood country <IMG SRC=http://www.wopr.com/w3tuserpics/Lyra_J_sig.gif ALT="No, Admins, no! I'm sorry, okay!" title="No, Admins, no! I'm sorry, okay!">

  7. #7
    2 Star Lounger
    Join Date
    Jan 2001
    Location
    Nottingham, UK, Nottinghamshire, England
    Posts
    190
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Add/Remove Programs leaving entry behind

    No, I'm not logged in as an adminstrator - I take your point. But on the other hand, I've been able to merrily create registry keys, so why not be able to delete them? When the Infrastructure guy is around again (pc on but locked at the moment), I'll get him to try as an administrator. Thanks for info.

Posting Permissions

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