Skip to content
⌘ NSIS Forum Archive

WriteRegExpandStr

3 posts

Yathosho#

WriteRegExpandStr

i'm using WriteRegExpandStr, but it writes a REG_SZ into the registry (not REG_EXPAND_SZ)

WriteRegExpandStr "HKCU" "AppEvents\Schemes\Apps\.Default\SystemStart\.current" "" ""
Yathosho#
i figured (but didn't try yet), that this might happen, as i write an empty key. the problem is, that at a later point i want to undo this, by writing back the original data. that's when WriteRegExpandStr doesn't write a REG_EXPAND_SZ!