There is no generic solution to detect any JRE. What you did below should work with Sun's.
> -----Original Message----- > From: ppremk [mailto:prem.kumar.ponutho...@exact.com] > Sent: Sonntag, 4. April 2010 08:29 > To: wix-users@lists.sourceforge.net > Subject: Re: [WiX-users] How to check if JRE is installed using WIX > > > Hi, I am doing this for my package, not sure if this is the correct > way, but > might be of help: > > <Property Id="JREINSTALLED"> > <RegistrySearch Key="SOFTWARE\JavaSoft\Java Runtime Environment" > Root="HKLM" > Type="raw" Id="JREINSTALLED_REGSEARCH" Name="CurrentVersion" /> > </Property> > > <Condition Message="Java Runtime Environment is not installed."> > (JREINSTALLED) > </Condition> > > > there might be better ways to achieve this but this works for my > package and > alerts users > cheers > > -- > View this message in context: http://n2.nabble.com/How-to-check-if-JRE- > is-installed-using-WIX-tp4837649p4849482.html > Sent from the wix-users mailing list archive at Nabble.com. > > ----------------------------------------------------------------------- > ------- > Download Intel® Parallel Studio Eval > Try the new software tools for yourself. Speed compiling, find bugs > proactively, and fine-tune applications for parallel performance. > See why Intel Parallel Studio got high marks during beta. > http://p.sf.net/sfu/intel-sw-dev > _______________________________________________ > WiX-users mailing list > WiX-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users