Archive: NSIS Unicode + CMake = Cannot find NSIS registry value


NSIS Unicode + CMake = Cannot find NSIS registry value
Hi,
I have a question which does not relate to the installer directly but I hope that one can help me.

I am using the Unicode (2.46) version of NSIS. The nsi file is created by CMake.
Now the problem is that CMake somehow looks for the NSIS installer by reading the value of
HKEY_LOCAL_MACHINE\SOFTWARE\NSIS

But the Unicode version adds this value in the sub-key 'Unicode'.
So without doing some manual changes I always get the following error message from CMake:

Cannot find NSIS registry value. This is usually caused by NSIS not being installed.
Please install NSIS from http://nsis.sourceforge.org

Therefor I have some questions:
1. Is there any simple/ common way to get rid off this problem? If so, how?
2. Can I tell CMake (sorry - I have no idea of it) to look at "HKEY_LOCAL_MACHINE\SOFTWARE\NSIS\Unicode" instead of "HKEY_LOCAL_MACHINE\SOFTWARE\NSIS"?
3. Isn't it possible to have both versions (NSIS ANSI and Unicode) installed at the same time?

Many thanks for your help in advanced,

Gunther


This is a question you should direct to CMake. For the time being, copy the values from the NSIS\Unicode key into the NSIS key.

Stu


Stu

Originally posted by Afrow UK
This is a question you should direct to CMake.
OK, I'll do.
For the time being, copy the values from the NSIS\Unicode key into the NSIS key.
Yes, that's the "manual" step I meant - not that difficult but unpleasent ...!

Thanks for your answer,

Gunther

Also worth noting the next version of NSIS will be Unicode and ASCII without having separate installs. I'm not sure how long it will be though.

Stu