Howto ReadRegStr (default) Subkeys?
Hi Community.
I have a strange behaviour here:
Section ReadRegTest
ClearErrors
ReadRegStr$0 HKLM "Software" ""
IfErrors Software_No Software_Yes
Software_Yes:
>MessageBox MB_OK "Yes, Software path was found"
>Goto Reg1End
Software_No:
>MessageBox MB_OK "No, Software path was NOT found"
>Goto Reg1End
reg1end:
>SectionEnd
Section ReadRegTestII
ClearErrors
ReadRegStr$0 HKLM "Software\Microsoft" ""
IfErrors Microsoft_No Microsoft_Yes
Microsoft_Yes:
>MessageBox MB_OK "Yes, Microsoft path was found"
>Goto Reg2End
Microsoft_No:
>MessageBox MB_OK "No, Mirosoft path was NOT found"
>Goto Reg2End
Reg2End:
>SectionEnd
>
Section 1 says "Yes" (HKLM\Software exists)Section 2 says "No" (HKLM\Software\Microsoft does not exists but it does)
Also, these screenshots seems pretty interessting:
http://img3.imagebanana.com/img/1ejjitc9/reg0.jpg
http://img3.imagebanana.com/img/891jb2gk/reg1.jpg
http://img3.imagebanana.com/img/q38c...creendummy.jpg
Now I am confused.
All I need is to know if the SubKey is there or not. But how can I do this when there is no "default"?