@Jacob: a 64-bit MSI cannot be installed onto a 32-bit system. Thus, a 32-bit MSI is required to support 32-bit systems. 64-bit MSIs are required to place code into 64-bit areas on 64-bit systems. No similar restriction exists for 32-bit areas. A 64-bit program that provides 32-bit code for interfacing with 32-bit third-party programs does not require two MSIs to install. The requirement for creating both 32- and 64-bit MSIs is to support .NET's AnyCPU the way it is described by .NET, using a 64-bit MSI on 64-bit OSs and 32-bit MSI on 32-bit OSs. Since 32-bit OSs don't have 64-bit areas, 32-bit MSIs can't access them. Since 32-bit processes are allowed on 64-bit OSs, 32-bit MSIs are allowed on those 64-bit OSs. Obviously the converse is not true.
Blair Murri > From: afor...@cmu.edu > To: wix-users@lists.sourceforge.net > Date: Tue, 18 Jun 2013 17:31:25 -0400 > Subject: Re: [WiX-users] Java Program Installer > > It doesn't sound like your problem is with Java being a service, but in case > you have trouble with however your Java programs are bundled into exes to run > as services and are looking for an alternative, thus far I've found the Java > Service Launcher (http://jslwin.sourceforge.net/) works very well thus far > and is easy to use. All the others Java-as-a-Windows-service solutions I > found or were recommended were much heavier-weight and more difficult to use > than I needed. > > Alain > > -----Original Message----- > From: Tim Hawes [mailto:haw...@anx.com] > Sent: June 18, 2013 09:38 > To: General discussion for Windows Installer XML toolset. > Subject: [WiX-users] Java Program Installer > > I have a product that will use a 64bit installer. It uses an exe wrapper for > the jar files so that the programs can be entered as Windows services and the > config programs can run from the Start menu. The wrapper requires different > binaries for the type of JVM installed, 32bit executables for runnning the > jars under a 32bit JVM, and 64bit executables for running the same jars under > a 64bit JVM. > > The requirements for the 64bit installer is to detect which JVM is installed. > If it finds the 64bit JRE, it stops there and installs the 64bit exe's (and > the associated jar files) under ProgramFiles64Folder, upon failing that, it > should search for the 32bit JRE, and then install the 32bit exe's (and > associated jar files) under ProgramFilesFolder. > > Here is the WiX snippet I have: > > <Property Id="JRE64"> > <RegistrySearch Id="J64REVER" Type="raw" > Root="HKLM" Key="Software\JavaSoft\Java Runtime > Environment\CurrentVersion" Name="JavaVersion" /> > </Property> > > <Property Id="JRE32"> > <RegistrySearch Id="J32REVER" Type="raw" > Root="HKLM" Key="Wow6432Node\JavaSoft\Java Runtime > Environment\CurrentVersion" Name="JavaVersion" /> > </Property> > > <Condition Message="This application requires Java Version 7 > or higher"> > <![CDATA[ (Installed OR JRE32 OR JRE64) AND JRE32 < "1.7" > AND JRE64 < "1.7" ]]> > </Condition> > > I don't think my condition is right. What I want it to say, in pseudo code, > is: > > IF ( > (NOT JRE32 OR JRE32 < "1.7") > AND > (NOT JRE64 OR JRE64 < "1.7") > ) > THEN stop install with the message. > > Since it is possible to have both an 32bit JRE and 64bit JRE installed on a > 64bit system, it is important to check for both, but default to the 64bit JRE > if it is up-to-date and available. > > Thanks! > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by Windows: > > Build for Windows Store. > > http://p.sf.net/sfu/windows-dev2dev > _______________________________________________ > WiX-users mailing list > WiX-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wix-users > > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by Windows: > > Build for Windows Store. > > http://p.sf.net/sfu/windows-dev2dev > _______________________________________________ > WiX-users mailing list > WiX-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------------ This SF.net email is sponsored by Windows: Build for Windows Store. http://p.sf.net/sfu/windows-dev2dev _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users