Hi Owen,<div><br></div><div>You can use the registry to determine where ParaView is currently installed on a Windows Machine. The keys you want to look for are:</div><div><br></div><div><ul style="border-collapse: collapse; font-family: arial, sans-serif; font-size: 13px; ">
<li style="margin-left: 15px; ">HKEY_CURRENT_USER\SOFTWARE\Wow6432Node\Kitware Inc.\<span class="il" style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: rgb(255, 238, 191); color: rgb(34, 34, 34); background-position: initial initial; background-repeat: initial initial; ">ParaView</span> 3.10.X (64bit machines single user install)</li>
<li style="margin-left: 15px; ">HKEY_CURRENT_USER\SOFTWARE\Kitware Inc.\<span class="il" style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: rgb(255, 238, 191); color: rgb(34, 34, 34); background-position: initial initial; background-repeat: initial initial; ">ParaView</span> 3.10.X (32bit machines single user install)</li>
<li style="margin-left: 15px; ">HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Kitware Inc.\<span class="il" style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: rgb(255, 238, 191); color: rgb(34, 34, 34); background-position: initial initial; background-repeat: initial initial; ">ParaView</span> 3.10.X (64bit machines all users)</li>
<li style="margin-left: 15px; ">HKEY_LOCAL_MACHINE\SOFTWARE\Kitware Inc.\<span class="il" style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: rgb(255, 238, 191); color: rgb(34, 34, 34); background-position: initial initial; background-repeat: initial initial; ">ParaView</span> 3.10.X (32bit machines all users)</li>
</ul><div><font class="Apple-style-span" face="arial, sans-serif"><span class="Apple-style-span" style="border-collapse: collapse;">Once you find the correct registry entry I would than add that to a custom environment variable rather than path that your application also looks at. Adding ParaView to the users path code cause problems if they have multiple instances installed.</span></font></div>
<div><font class="Apple-style-span" face="arial, sans-serif"><span class="Apple-style-span" style="border-collapse: collapse;"><br></span></font></div><div><font class="Apple-style-span" face="arial, sans-serif"><span class="Apple-style-span" style="border-collapse: collapse;"><br>
</span></font></div><div class="gmail_quote">On Tue, Jun 14, 2011 at 11:43 AM, <span dir="ltr"><<a href="mailto:owen.arnold@stfc.ac.uk">owen.arnold@stfc.ac.uk</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div lang="EN-GB" link="blue" vlink="purple">
<div>
<p class="MsoNormal">Hi,</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">We’re working on a cross-platform application, which uses some of the paraview libraries. Ultimately, we want our users to be able to install Paraview, and then install our packages. For this to work, on Windows we need to be able to identify
where Paraview has been installed to and add it to the Path. This doesn’t seem to be an option with the current Paraview install.</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">My temporary fix has been to change CPACK_NSIS_MODIFY_PATH from OFF to ON in \Applications\ParaView\CMakeLists.txt, which provides the extra screen in the NSIS installer and then package up Paraview for distribution myself.</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">Is there a better way of doing this?</p>
<p class="MsoNormal">Is this kind of install something that could be provided as an option without modifying CMake files?</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">Thanks in advance,</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">Owen.</p>
</div>
<br><p>--
<br>Scanned by iCritical.
</p>
<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 ParaView Wiki at: <a href="http://paraview.org/Wiki/ParaView" target="_blank">http://paraview.org/Wiki/ParaView</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.paraview.org/mailman/listinfo/paraview" target="_blank">http://www.paraview.org/mailman/listinfo/paraview</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br>Robert Maynard<br>
</div>