This is what I do, it doesn't do the download as I prefer to embed the
file but that shouldn't be too hard to add:
<Fragment>
<util:RegistrySearch
Id="Java7FamilyVersion"
Root="HKLM" Key="SOFTWARE\JavaSoft\Java Runtime Environment"
Value="Java7FamilyVersion"
Variable="Java7FamilyVersion" />
<util:RegistrySearch
Root="HKLM" Key="SOFTWARE\JavaSoft\Java Runtime
Environment\[Java7FamilyVersion]\MSI" Value="PRODUCTVERSION"
Variable="JavaProductVersion" After="Java7FamilyVersion"
Condition="Java7FamilyVersion" />
<PackageGroup Id="Java7Runtime">
<ExePackage Id="Java7Runtime"
DisplayName="Java Runtime Version 7"
Cache="no"
Compressed="yes"
PerMachine="yes"
Permanent="yes"
Vital="yes"
Name="Redist\jre-7u21-windows-i586.exe"
SourceFile="..\Packages\jre-7u21-windows-i586.exe"
InstallCommand="/s ADDLOCAL=jrecore IEXPLORER=1 MOZILLA=1
JAVAUPDATE=0 JU=0 SYSTRAY=0 AUTOUPDATECHECK=0 REBOOT=Suppress /L*v
"[WixBundleLog_Java7Runtime]""
DetectCondition="Java7FamilyVersion AND (JavaProductVersion >=
v7.0.210)">
</ExePackage>
</PackageGroup>
</Fragment>
Neil
>Hi all,
>
>Surely this has been done by someone, but I haven't found anything
>definitive on it so far.
>
>I'd like our installer to check that Java is installed (preferably 6 or
>7), and if it isn't, then download and install it. We want it to be as
>seamless as possible to make life as easy for the user as possible.
>
>Worst case scenario, I suppose we could always direct the user to the
>java website and ask the user to start our installer again once Java's
>installed. But I'm wondering if it's possible to do any better.
>
>Any thoughts?
>
>Alain
>
>***************************************
>Alain Forget, Ph.D.
>Postdoctoral Researcher
>CyLab, Carnegie Mellon University
>[email protected]
>http://cups.cs.cmu.edu/~aforget/
>***************************************
>
>
>
>
>--------------------------------------------------------------------------
>----
>Introducing AppDynamics Lite, a free troubleshooting tool for Java/.NET
>Get 100% visibility into your production application - at no cost.
>Code-level diagnostics for performance bottlenecks with <2% overhead
>Download for free and get started troubleshooting in minutes.
>http://p.sf.net/sfu/appdyn_d2d_ap1
>_______________________________________________
>WiX-users mailing list
>[email protected]
>https://lists.sourceforge.net/lists/listinfo/wix-users
------------------------------------------------------------------------------
Introducing AppDynamics Lite, a free troubleshooting tool for Java/.NET
Get 100% visibility into your production application - at no cost.
Code-level diagnostics for performance bottlenecks with <2% overhead
Download for free and get started troubleshooting in minutes.
http://p.sf.net/sfu/appdyn_d2d_ap1
_______________________________________________
WiX-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wix-users