<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">
On 25 Sep 2014, at 10:50, Rod Widdowson &lt;<a href="mailto:rdw@steadingsoftware.com">rdw@steadingsoftware.com</a>&gt; wrote:<br>
<div apple-content-edited="true">
<div style="color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">
<br>
</div>
</div>
<div><br class="Apple-interchange-newline">
<blockquote type="cite">Thoughts?</blockquote>
</div>
<div><br>
</div>
<div>For Raptor, I ended up with a single MSI for 32 and 64 bit, and to figure out JAVA_HOME I’ve ended up looking in the registry and figuring it out rather that using the system provided one, like so:</div>
<div><br>
</div>
<div>&lt;Property Id='JAVA_VERSION'&gt;<br>
<span class="Apple-tab-span" style="white-space:pre"></span>&lt;RegistrySearch Id='JavaVersionSearch' Root='HKLM' Key='SOFTWARE\JavaSoft\Java Runtime Environment'&nbsp;Name='CurrentVersion' Type='raw' /&gt;<br>
&lt;/Property&gt;<br>
&lt;Property Id='JAVA_HOME'&gt;<br>
<span class="Apple-tab-span" style="white-space:pre"></span>&lt;RegistrySearch Id='JavaHomeSearch' Root='HKLM' Key='SOFTWARE\JavaSoft\Java Runtime Environment\[JAVA_VERSION]' Name='JavaHome' Type='raw' /&gt;<br>
&lt;/Property&gt;</div>
<div><br>
</div>
<div>Seems to work for me when I’ve tested on 32 and 64 bit, but I’d need to to a lot more testing (with 32/64 bit JREs on 64 bit windows) to be comfortable that that was a solution that actually worked in all scenarios. I hacked that together as a temporary
 thing, and so far haven’t had any reports about it not working for anyone, so haven’t had to fix a better solution yet. But whether because it works, or because none has yet deployed it in a context where it won’t work, I don’t know.</div>
<div><br>
</div>
<div>Possibly the Wow6432Node might be a better location to use to make it a bit more resilient.</div>
<div><br>
</div>
<div>Of course, if you want a system provided JAVA_HOME then that’s obviously the wrong approach to take!</div>
<div><br>
</div>
<div>Rhys.</div>
<div><span style="orphans: 2; widows: 2;">--</span></div>
<span style="orphans: 2; widows: 2;">Dr Rhys Smith</span><br style="orphans: 2; widows: 2;">
<span style="orphans: 2; widows: 2;">Identity, Access, and Middleware Specialist</span><br style="orphans: 2; widows: 2;">
<span style="orphans: 2; widows: 2;">Cardiff University &amp; Janet - the UK's research and education network</span><br style="orphans: 2; widows: 2;">
<br style="orphans: 2; widows: 2;">
<span style="orphans: 2; widows: 2;">email:&nbsp;</span><a href="mailto:smith@cardiff.ac.uk" style="orphans: 2; widows: 2;">smith@cardiff.ac.uk</a><span style="orphans: 2; widows: 2;">&nbsp;/&nbsp;</span><a href="mailto:rhys.smith@ja.net" style="orphans: 2; widows: 2;">rhys.smith@ja.net</a><br style="orphans: 2; widows: 2;">
<span style="orphans: 2; widows: 2;">GPG: 0x4638C985</span>
</body>
</html>