Skip to content
⌘ NSIS Forum Archive

ReadRegStr with messagebox

2 posts

matricen#

ReadRegStr with messagebox

I want to make a ReadRegStr for my uninstaller, but cant figure out how I should do it. Have been looking arund in forum, but are not sure.

I want to find out if user has a speciel RegString in a known location. Lets say:

HKLM SOFTWARE\MyProgram "language" "english"

- If he has that speciel string, then I want a messagebox that asks what to do: Delete the string or keep the string. How can that be done?
Joost Verburg#
ReadRegStr $R0 "HKLM" "Software\MyProgram" "language"

StrCmp $R0 "english" 0 no_english

...messagebox & removal code...

no_english: