nsis: Make sure the registry keys exist
commit117eaa35efd2a2a2d6d595cfc5adfbbd932c4961
authorCyrill Gorcunov <gorcunov@gmail.com>
Wed, 6 Jul 2011 20:56:35 +0000 (7 00:56 +0400)
committerCyrill Gorcunov <gorcunov@gmail.com>
Wed, 6 Jul 2011 20:56:35 +0000 (7 00:56 +0400)
tree4fd2fdc97534bace30a9a0034d6204b7765a8fb8
parent619bfc87d179dd309edc4d251677e64f056cbdc2
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