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 ;-)
check the registry key is exists
5 posts
ReadRegStr $0 "root_key" "sub_key" "name"
StrCmp $0 "" Empty NotEmpty
StrCmp $0 "" Empty NotEmpty
The error flag will be set if a registry key does not exist.
I did write a function to check for existance of a registry key. See my archive pages.
Vytautas
Vytautas
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.
Only checking the error flag is enough.