<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:10pt"><div><span class="Apple-style-span" style="font-family: times, serif; font-size: 13.3333px; "><b><div><span class="Apple-style-span" style="font-weight: normal;">Per suggestions; changed SET to below. Cpack still cannot find the registry key.</span></div><div><span class="Apple-style-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"><font size="2" face="Tahoma"><hr size="1"><b><span style="font-weight: bold;">From:</span></b> Nicky Perian &lt;nickyperian@yahoo.com&gt;<br><b><span style="font-weight:
 bold;">To:</span></b> cmake@cmake.org<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 style="font-family:times, serif;font-size:10pt;"><div><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><b><div><span class="Apple-style-span" style="font-weight:normal;">if (WINDOWS)</span></div><div><span class="Apple-style-span" style="font-weight:normal;">&nbsp;&nbsp; &nbsp;# build a CPack driven installer package</span></div><div><span class="Apple-style-span" style="font-weight:normal;">&nbsp;&nbsp; &nbsp;SET (CPACK_GENERATOR "NSIS")</span></div><div><span class="Apple-style-span" style="font-weight:normal;">&nbsp;&nbsp; &nbsp;SET (CPACK_PACKAGE_INSTALL_REGISTRY_KEY
 HKEY_LOCAL_MACHINE"/SOFTWARE/Wow6432Node/NSIS/Unicode")</span></div><div><span class="Apple-style-span" style="font-weight:normal;">&nbsp;&nbsp; &nbsp;include (InstallRequiredSystemLibraries)</span></div><div><span class="Apple-style-span" style="font-weight:normal;">&nbsp;&nbsp; &nbsp;include (CPack)</span></div><div><span class="Apple-style-span" style="font-weight:normal;">endif (WINDOWS) &nbsp; &nbsp;</span></div></b></div><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>&nbsp;being installed. Please install NSIS from <a target="_blank" href="http://nsis.sourceforge.net">http://nsis.sourceforge.net</a></span></span></div><div>CPack Error: Cannot initialize the generator NSIS</div></div><div style=""></div>


</div><br>

      </div></div><div style="position:fixed"></div>


</div><br>

      </body></html>