Skip to content
⌘ NSIS Forum Archive

check the registry key is exists

5 posts

XNeo#

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 ;-)
Vytautas#
I did write a function to check for existance of a registry key. See my archive pages.

Vytautas
Joost Verburg#
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.