Old 20th December 2010, 08:47   #1
mj_blue
Junior Member
 
Join Date: Sep 2007
Posts: 13
open finding blank entry when further files exist

Hi,

I am trying to clean up the registry from some previous bad installations and have about 30 entries registry keys called:

HKEY_LOCAL_MACHINE\SOFTWARE\MozillaPlugins\@antixlabs.com/npagp,version={VERSION}

where version varies.

I wanted to loop through and delete all these but currently when I do this it seems to find 9 entries and then find returns blank entry. If I run it again it find more entries until another blank entry is returned.

My code is below, am I doing something wrong?

PHP Code:
${registry::Open"HKLM\SOFTWARE\MozillaPlugins" '/K=1 /V=0 /S=0 /NS="@antixlabs"' $0
    StrCmp 
$0 0 0 loopkey
    MessageBox MB_OK 
"Error" IDOK closemozillakeyfind
    
goto closemozillakeyfind

    loopkey
:
    ${
registry::Find"$0" $$$$4
    StrCmp 
$'' closemozillakeyfind 0
        
${registry::DeleteKey"HKEY_LOCAL_MACHINE\$1\$2" $R1
        
goto loopkey

        closemozillakeyfind
:
    ${
registry::Close"$0"
    
${registry::Unload
Thanks for any help in this

Mark
mj_blue is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Tags
plug-in, registry

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump