<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:'times new roman', 'new york', times, serif;font-size:12pt"><div><span class="Apple-style-span" style="font-size: 15.8333px; "><div>What do you hope to achieve by setting this value?</div><div><br></div><div>Trying to have Cpack see the currently installed NSIS program.</div><div>Stopped setting&nbsp;<span class="Apple-style-span" style="font-family: times, serif; font-size: 13.3333px; "><b><div style="display: inline; "><span style="font-weight: normal; font-size: 13.3333px; ">CPACK_PACKAGE_INSTALL_REGISTRY_KEY and still have the same error. &nbsp;Cpack cannot find the installed and in path Unicode\makensis.exe</span></div></b></span></div><div><span class="Apple-style-span" style="font-family: times, serif; font-size: 13.3333px; "><b><div style="display: inline; "><span style="font-weight: normal; font-size: 13.3333px;
 "><br></span></div></b></span></div></span></div><div style="font-family:times new roman, new york, times, serif;font-size:12pt"><br><div style="font-family:times new roman, new york, times, serif;font-size:12pt"><font size="2" face="Tahoma"><hr size="1"><b><span style="font-weight: bold;">From:</span></b> David Cole &lt;david.cole@kitware.com&gt;<br><b><span style="font-weight: bold;">To:</span></b> Nicky Perian &lt;nickyperian@yahoo.com&gt;<br><b><span style="font-weight: bold;">Cc:</span></b> cmake@cmake.org<br><b><span style="font-weight: bold;">Sent:</span></b> Mon, September 20, 2010 12:32:48 PM<br><b><span style="font-weight: bold;">Subject:</span></b> Re: [CMake] SET (CPACK_PACKAGE_INSTALL_REGISTRY_KEY)<br></font><br>
Why are you trying to set "<span class="Apple-style-span" style="font-family:times, serif;font-size:13px;"><b><div style="display:inline;"><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">&lt;<a rel="nofollow" ymailto="mailto:nickyperian@yahoo.com" target="_blank" href="mailto:nickyperian@yahoo.com">nickyperian@yahoo.com</a>&gt;</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-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;">&nbsp;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 &lt;<a rel="nofollow" ymailto="mailto:nickyperian@yahoo.com" target="_blank" href="mailto:nickyperian@yahoo.com">nickyperian@yahoo.com</a>&gt;<br><b><span style="font-weight:bold;">To:</span></b> <a rel="nofollow" ymailto="mailto:cmake@cmake.org" target="_blank" href="mailto:cmake@cmake.org">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.&nbsp;</div>
<div>I need help with this.&nbsp;</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;">&nbsp;&nbsp; &nbsp;# build a CPack driven installer package</span></div><div><span style="font-weight:normal;">&nbsp;&nbsp; &nbsp;SET (CPACK_GENERATOR "NSIS")</span></div>
<div><span style="font-weight:normal;">&nbsp;&nbsp; &nbsp;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;">&nbsp;&nbsp; &nbsp;include (InstallRequiredSystemLibraries)</span></div><div><span style="font-weight:normal;">&nbsp;&nbsp; &nbsp;include (CPack)</span></div>
<div><span style="font-weight:normal;">endif (WINDOWS) &nbsp; &nbsp;</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&gt;cpack cpackconfig.cmake</div><div>CPack Error:
 Cannot find NSIS registry value. This is usually caused by NSIS not</div><div><span><span><span>&nbsp;being installed. Please install NSIS from <a target="_blank" href="http://nsis.sourceforge.net">http://nsis.sourceforge.net</a></span></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 rel="nofollow" target="_blank" href="http://www.kitware.com">www.kitware.com</a><br>
<br><span>
Visit other Kitware open-source projects at <a target="_blank" href="http://www.kitware.com/opensource/opensource.html">http://www.kitware.com/opensource/opensource.html</a></span><br>
<br><span>
Please keep messages on-topic and check the CMake FAQ at: <a target="_blank" href="http://www.cmake.org/Wiki/CMake_FAQ">http://www.cmake.org/Wiki/CMake_FAQ</a></span><br>
<br>
Follow this link to subscribe/unsubscribe:<br><span>
<a target="_blank" href="http://www.cmake.org/mailman/listinfo/cmake">http://www.cmake.org/mailman/listinfo/cmake</a></span><br></blockquote></div><br></div>
</div></div><div style="position:fixed"></div>


</div><br>







      </body></html>