Why are you trying to set "<span class="Apple-style-span" style="font-family: times, serif; font-size: 13px; "><b><div style="display: inline !important; "><span style="font-weight: normal; font-size: 13.3333px; ">CPACK_PACKAGE_INSTALL_REGISTRY_KEY</span></div>
</b></span>"?<div><br></div><div>What do you hope to achieve by setting this value?</div><div><br></div><div>My suggestion is NOT to set it.</div><div>Or to set it to something like "My Software Package Name".</div>
<div><br></div><div>There is no reason you should be trying to set it to HKEY_LOCAL_MACHINE/SOFTWARE/NSIS/Unicode -- that will not do anything useful for you.<br><br></div><div><br><div class="gmail_quote">On Mon, Sep 20, 2010 at 1:14 PM, Nicky Perian <span dir="ltr"><<a href="mailto:nickyperian@yahoo.com">nickyperian@yahoo.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div><div style="font-family:'times new roman', 'new york', times, serif;font-size:10pt"><div><span style="font-family:times, serif;font-size:13.3333px"><b><div>
<span style="font-weight:normal">Per suggestions; changed SET to below. Cpack still cannot find the registry key.</span></div><div><span style="font-weight:normal;font-size:13.3333px"> SET (CPACK_PACKAGE_INSTALL_REGISTRY_KEY HKEY_LOCAL_MACHINE"/SOFTWARE//NSIS/Unicode")</span></div>
</b></span></div><div style="font-family:times new roman, new york, times, serif;font-size:10pt"><br><div style="font-family:times new roman, new york, times, serif;font-size:12pt"><div class="hm"><font size="2" face="Tahoma"><hr size="1">
<b><span style="font-weight:bold">From:</span></b> Nicky Perian <<a href="mailto:nickyperian@yahoo.com" target="_blank">nickyperian@yahoo.com</a>><br><b><span style="font-weight:bold">To:</span></b> <a href="mailto:cmake@cmake.org" target="_blank">cmake@cmake.org</a><br>
<b><span style="font-weight:bold">Sent:</span></b> Fri, September 17, 2010 12:59:08 PM<br><b><span style="font-weight:bold">Subject:</span></b> SET (CPACK_PACKAGE_INSTALL_REGISTRY_KEY)<br></font><br>
</div><div style="font-family:times, serif;font-size:10pt"><div><div class="im"><div>I have tried many variations to the HKEY_LOCAL_MACHINE setting and am unable to get a run through of Cpack.</div><div>I know it must be something simple I am missing. </div>
<div>I need help with this. </div><div>I am on a windows 7 / 64bit machine. NSIS is unicode and installed in the 32 bit program files directory.</div><div>Thanks,</div><div><b>CMakeLists.txt:</b></div></div><div><b><div class="im">
<div><span style="font-weight:normal">if (WINDOWS)</span></div><div><span style="font-weight:normal"> # build a CPack driven installer package</span></div><div><span style="font-weight:normal"> SET (CPACK_GENERATOR "NSIS")</span></div>
<div><span style="font-weight:normal"> SET (CPACK_PACKAGE_INSTALL_REGISTRY_KEY
HKEY_LOCAL_MACHINE"/SOFTWARE/Wow6432Node/NSIS/Unicode")</span></div></div><div class="im"><div><span style="font-weight:normal"> include (InstallRequiredSystemLibraries)</span></div><div><span style="font-weight:normal"> include (CPack)</span></div>
<div><span style="font-weight:normal">endif (WINDOWS) </span></div></div></b></div><div class="im"><div><br></div><div><b>CPackConfig.cmake: (snip)</b></div><div>SET(CPACK_BINARY_NSIS "")</div><div>.</div><div>
.</div><div>SET(CPACK_CMAKE_GENERATOR "Visual Studio 8 2005")</div><div>.</div><div>.</div><div>SET(CPACK_PACKAGE_INSTALL_REGISTRY_KEY "HKEY_LOCAL_MACHINE"/SOFTWARE/Wow6432Node/NSIS/Unicode"")</div>
<div><br></div><div><b>Output:</b></div><div>C:\Phoenix\phoenix-work\indra\build-vc80>cpack cpackconfig.cmake</div><div>CPack Error:
Cannot find NSIS registry value. This is usually caused by NSIS not</div><div><span><span> being installed. Please install NSIS from <a href="http://nsis.sourceforge.net" target="_blank">http://nsis.sourceforge.net</a></span></span></div>
<div>CPack Error: Cannot initialize the generator NSIS</div></div></div><div></div>
</div><br>
</div></div><div></div>
</div><br>
</div><br>_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the CMake FAQ at: <a href="http://www.cmake.org/Wiki/CMake_FAQ" target="_blank">http://www.cmake.org/Wiki/CMake_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.cmake.org/mailman/listinfo/cmake" target="_blank">http://www.cmake.org/mailman/listinfo/cmake</a><br></blockquote></div><br></div>