Skip to content
⌘ NSIS Forum Archive

Checking for Registry Entries

5 posts

statblaster#

Checking for Registry Entries

Is it possible to check if a Registry entry exists (i.e. HKLM/Software/abc...)

If so, how?
statblaster#
ok, that works for a specific registry key. any way to check for a registry folder? no key...

HKLM/Software/Abc/xyz/

as opposed,

"HKLM/Software/Abc/xyz/123"

"root_key" "sub_key" "name"

b/c if I leave the name empty it wont work.
statblaster#
error

also, that code doesnt work, i get an error when I compile...

Processed 1 file, writing output:
Error: could not resolve label "Empty" in install section "Sec1" (0)
Error - aborting creation process


ReadRegStr $0 "HKLM" "SOFTWARE\ABC\LicenseStores" "temp_key"
StrCmp $0 "" Empty NotEmpty