Skip to content
⌘ NSIS Forum Archive

WriteRegExpandStr

2 posts

fchateau#

WriteRegExpandStr

I'd appreciate it if someone would explain what's the difference between WriteRegStr and WriteRegExpandStr.

Thanks,

Fred Chateau
kichik#
Hi!

REG_EXPAND_SZ - A variable-length data string. This data type includes variables that are resolved when a program or service uses the data.

REG_SZ - A fixed-length text string.
I do not fully understand why it exists because you could use REG_SZ anyway, and you DO have to use ExpandEnvironmentStrings after reading the string according to MSDN...

KiCHiK