XNeo
15th March 2004 15:39 UTC
check the registry key is exists
IfFileExists "$INSTDIR\txt\A.txt" Auninst Anofile
Auninst:
Delete "$INSTDIR\A.exe"
Delete "$INSTDIR\txt\A.txt"
Anofile:
this is my code...
but i want check registry key is exists...
please give me "full code" like that.
because i'm rookie *_*
thank you ;-)
Yathosho
15th March 2004 15:44 UTC
ReadRegStr $0 "root_key" "sub_key" "name"
StrCmp $0 "" Empty NotEmpty
Joost Verburg
15th March 2004 15:47 UTC
The error flag will be set if a registry key does not exist.
Vytautas
15th March 2004 22:05 UTC
I did write a function to check for existance of a registry key. See my archive pages.
Vytautas
Joost Verburg
15th March 2004 22:19 UTC
Vytautas, your function does indeed check that, but's it's a little complicated for such a simple thing.
Only checking the error flag is enough.