nsis: Make sure the registry keys exist
commit2f39e1a066a38431a715af4b29f7ca28f3b4a79f
authorCyrill Gorcunov <gorcunov@gmail.com>
Wed, 6 Jul 2011 20:56:35 +0000 (7 00:56 +0400)
committerCyrill Gorcunov <gorcunov@gmail.com>
Fri, 15 Jul 2011 19:14:32 +0000 (15 23:14 +0400)
treeae46780b772900d92eb46d6ebf012278898da284
parentffee19a3b2b130c9190014b3c6d3bf5b32d58cd0
nsis: Make sure the registry keys exist

It was reported on nasm forum (http://forum.nasm.us/index.php?topic=1013.0)
that if uninstallation procedure get stopped (for any reason) in a middle
leading to read empty registry values an attempt to remove arbitrary
files might happen. So make sure there are some sane values in registry.

N.B: People, if you find some bug in nasm, don't write to forum, file
bug directly in bugzilla, if it's not a bug we simply close it, otherwise
we might miss serious problems like this one!

Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
nasm.nsi