Java 1.6.0.12 .msi package for distribution

Last msi package I tested today was Java. They also offer the msi package on their website. First you need to download their “offline installation” executable here. Then run the executable but don’t go through any additional prompts. Navigate to LocalAppData folder (the user’s Application Data folder). The location of the LocalAppData folder differs for each Windows platform.

* Windows Vista: C:UsersAppDataLocalLowSunJavajre1.6.0_12
* Windows XP: C:Documents and SettingsLocal SettingsApplication Data
* Windows 2000 C:Documents and SettingsApplication Data

Copy the contents out of that folder to where you are keeping your msi distribution packages. The folder should look like the picture below without the install.bat which is my batch file.

Java Directory Contents

Java Directory Contents

Here is the command I used for a quiet install for multiple users:

msiexec /i "jre1.6.0_12.msi" SETMULTIUSER=1 /qb"

Works fine for multiple users under windows 2000, XP, and Vista. More MSI package instructions coming tomorrow along with some tutorials on ImageX/Sysprep for Vista.

Java 1.6 Logo

Java 1.6 Logo

  • Nathan

    Where did you get the idea to use the property “SETMULTIUSER”? I don’t believe it exists in any MSI except Lotus Notes. Perhaps you’re trying to use ALLUSERS. That’s a common MSI public property that sets the install level.

  • Enes

    I would also like to know about the SetMultiUser property, please share more info.

  • http://www.brianleejackson.com Brian Jackson

    Yes, I was referring to the ALLUSERS=1 command but there is a SetMultiUser property which can be used. Example: “msiexec /i “NameofMSI.msi” SETMULTIUSER=1 /qb”

  • http://none Corey

    The standard for most packaging would be to use the ALLUSERS variable. ALLUSERS=1 for a PerMachine type install and ALLUSERS=2 for a PerUser type install.

  • http://www.brianleejackson.com Brian Jackson

    @ Corey : Ya I figured out it was application specific problems which was throwing my “PerMachine” packages off. If you package an app with ALLUSERS=1 and that specific app has a per user profile specific registry item, it will throw off your “PerMachine” install and try to do a self-repair. I just installed AdminStudio 9.5 and I am hoping they have minimized the time required to fix certain things on certain apps after repackaging them. Cross your fingers!

  • http://vbexamples.wordpress.com/ vb Programming

    What exactly is better programming language to start off with java or vb?