Old 19th September 2010, 17:41   #1
Netsurfer24
Senior Member
 
Join Date: Aug 2010
Posts: 104
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
Netsurfer24 is offline   Reply With Quote
Old 19th September 2010, 18:58   #2
Afrow UK
Moderator
 
Afrow UK's Avatar
 
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
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
Afrow UK is offline   Reply With Quote
Old 19th September 2010, 19:38   #3
Netsurfer24
Senior Member
 
Join Date: Aug 2010
Posts: 104
Stu
Quote:
Originally Posted by Afrow UK View Post
This is a question you should direct to CMake.
OK, I'll do.
Quote:
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
Netsurfer24 is offline   Reply With Quote
Old 19th September 2010, 20:15   #4
Afrow UK
Moderator
 
Afrow UK's Avatar
 
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
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
Afrow UK is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump