Anyone monitoring have any instructions for using the Orca tool to modify the default settings for the Java Runtime Environment 5 Update 6.msi file? Based on the instructions listed in the on this site I've managed to accomplish the following:

Download and Extract the Java Runtime Environment
1. Download the latest version of the Java Runtime Environment from the following location: http://www.java.com/en/download/manual.jsp
2. Click the “Download” button next to the “Windows (Offline Installation)” option.
3. Click to “Save” the “jre-1_5_0_06-windows-i586-p.exe” file to a location on the network or local system.
4. Navigate to the location the file was saved to and perform the following steps to extract the .MSI file and contents:
a. Open a command prompt and navigate to the location of the saved file.
b. Type the following command to extract and display the command line switches that can be used to deploy this package: jre-1_5_0_06-windows-i586-p.exe /?
c. You should see the following dialog window appear. Take a snapshot of the window and save it for future use.
d. Click “OK” to close the window.
e. Now type the following command to extract the .msi files: jre-1_5_0_06-windows-i586-p.exe /c
f. The “InstallShield Wizard” window launches and the “License Agreement” window is displayed:
g. Hold right here and open “Windows Explorer”.
h. Navigate to the following location: C:\Documents and Settings\user\Local Settings\Temp
i. Look for the following file and folder:
File: 1d6d4551.msi
Folder: is1XX


Note: the name of the file and folder is random will be different for each attempted extraction. Just note that these two items are usually the last two items in the \Temp folder.

j. Copy these two items to the same location you saved the “jre-1_5_0_06-windows-i586-p.exe” file to.
k. Once copied go back to the “License Agreement” window that launched during the extraction and click the “Decline” button.
l. Click “Yes” to cancel and “Finish” to close the wizard.

Install the Microsoft Orca Utility
5. Navigate to the following location to download the “Windows Server 2003 SP1 Platform SDK”:
http://www.microsoft.com/downloads/details.aspx?FamilyId=A55B6B43-E24F-4EA3-A93E-40C0EC4F68E5&displaylang=en
6. Save the “PSDK-x86.exe” file to a location on the network or local system.
7. Double-click the “PSDK-x86.exe” file to launch the installation. Follow the prompts to complete the installation.
8. Navigate to the “C:\Program Files\Microsoft Platform SDK\Bin” directory and locate the “Orca.msi” file.
9. Double-click this file and install the “Orca.exe” utility.

Create the Administrative Installation Point
10. Perform the following steps to place the “source files” on a specified network share in a decompressed state:
a. Open a command window and navigate to the location the setup files were extracted to:
C:\Documents and Settings\user\Local Settings\Temp
b. Type the following command to place the installation files in a designated folder on the network:
msiexec /a “J2SE Runtime Environment 5.0 Update 6.msi” TARGETDIR=”\\server\apps\Java”
c. The installation completes and the source files are successfully copied to the administrative installation point. Click “Finish” to close the window.
d. The following files should appear in the network share:

Create the Java Runtime Environment Package
11. Navigate to the location the “Java Runtime Environment” files were installed to and open the “is1XX” folder. You should see the following files:
J2SE Runtime Environment 5.0 Update 6.msi
1033.MST
12. Right-click the “J2SE Runtime Environment 5.0 Update 6.msi” file and click “Open with…”.
13. The “Open With” program selection window opens. Click the “Browse” button and navigate to the Orca directory:
C:\Program Files\Orca\orca.exe
14. Select the “Orca.exe” file and click “Open”. The “Windows Installer 3.0 Table Editor” option appears in the program selection list. Make sure this is selected and click “OK” to close the window.
15. The table editor window opens displaying the file settings.
16. Perform the following tasks to modify the file settings:
a. Select the “Property” table and make the following changes to their “Values”:
i. Double-click the “IEXPLORER” property “Value” and change it from 0 to 1. (
ii. Double-click the “JAVAUPDATE” property “Value” and change it from 1 to 0.
iii. Double-click the “AUTOUPDATECHECK” property “Value” and change it from 1 to 0.
iv. Double-click the “JU” property “Value” and change it from 1 to 0.
v. Double-click the “MOZILLA” property “Value” and change it from 0 to 1.
vi. Double-click the “SYSTRAY” property “Value” and change it 1 to 0.
vii. Double-click the “WEBSTARTICON” property “Value” and change it 1 to 0.
viii. Double-click the “RebootYesNo” property “Value” and change it from “Yes” to “No”.
b.

I now need to modify the registry and am a little confused. I see where a Row can be added but the fields are throwing me off. There are two registry rows showing in the Orca and the Add row window shows:
Registry
Root
Key
Name
Value
Component

I'm sure this can be considered a dumb question but I just gotta ask. What do I add into these fields? These are the entries that need modifying:
[HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Plug-in\1.5.0_06]
"JavaHome"="C:\\Program Files\\Java\\jre1.5.0_06"
"UseJava2IExplorer"=dword:00000001
"HideSystemTrayIcon"=dword:00000001

[HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Update\Policy]
"EnableJavaUpdate"=dword:00000000
"EnableAutoUpdateCheck"=dword:00000000
"NotifyDownload"=dword:00000001
"NotifyInstall"=dword:00000001
"Frequency"=dword:01170000
"UpdateSchedule"=dword:00000013
"LastUpdateBeginTime"=""
"LastUpdateFinishTime"=""
"InstallOptions"=""
"UpdateDescription"=""

Am I creating a row for each of these?
ANY responses are appreciated.
0 Comments   [ + ] Show Comments

Comments

Please log in to comment

Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.

Answers

0
Yes, for every registry key you want to add to the installation, you have to add a separate line in orca (registry table).

Fill it in like this:

Registry:
i.e. registry712 (search for the highest number in your installation and take the next free, like registry713, registry714 and so on)

Root:
0 for HKCR, 1 for HKCU, 2 for HKLM (2 in your case)

Key:
Software\JavaSoft\Java Plug-in\1.5.0_06

Name:
JavaHome

Value:
C:\Program Files\Java\jre1.5.0_06 (or even better use variables like INSTALLDIR or ProgramFilesFolder if appropriate)

Component:
'ComponentName' (search for any appropriate existing Component in your installation and put that name in here)
Be aware that you don't mix machine and user keys in the same component

If you have a packaging solution like Wise or InstallShield by the hand, try importing those keys into the package and then open the modified package in Orca, just to see, how those applications handle your keys and then add the keys manually with Orca into the clean package...

Hope that helps

Cheers

Roland
Answered 12/29/2005 by: rpfenninger
Second Degree Green Belt

Please log in to comment
Answer this question or Comment on this question for clarity