Skip to content
⌘ NSIS Forum Archive

Problem: ReadRegStr in Win2K -> REG_EXPAND_SZ

3 posts

Huette#

Problem: ReadRegStr in Win2K -> REG_EXPAND_SZ

Hi,

ReadRegStr can't read any REG_EXPAND_SZ-strings under Windows 2000, can it?

My Problem is:
I want to check, if there is a REG_EXPAND_SZ-entry. If it's not there, i want to set it, but if it is there, i don't want to overwrite it.

My Code is:
ReadRegStr $0 HKLM "Software\Classes\$Blabla" ""
ifErrors 0 Cancel
WriteRegStr HKLM "Software\Classes\$Blabla" "" "$Blabla"
...
Cancel:

On Windows XP it works. But on Windows 2000 i get an error, even if there is that entry.

Help! 😉
Afrow UK#
Try Instructor's registry plugin:
Are you a developer who uses NSIS to distribute your application? Are you a Winamp plug-in developer who wants to use NSIS to distribute your plug-in? Have suggestions for other people like you? This is the place.


Edit: Make sure you use ClearErrors first.

-Stu
Huette#
Nice plugin. Everything allright.

Thanks again for your great support.

...ClearErrors was set. Forgot to quote that line...