Silent JRE installation, through Wise

This issue has been solved. See solution.
Shanushaan's picture

  Hi, 

I am trying to silently install JRE for my product. 
I downloaded the Java1.6_16.exe,  used a CA Execute program from Installation, where the exe is the given Java exe and Command line arg to that is as follows 

/s /v/qn INSTALLDIR=\"[INSTALLDIR]bin\jre\"   [NOTE: as per Java install Specification from ]

If I put this action in the Last Page of UI with Doaction this performs well and Get Jre  installed on the box.  
But If I put this CA in between the Normal Immediate/Deffered Execution this returns an error Code 1722.  
In the CA properties I am using a "Inscript -options" as deferred execution and Processing as "Synchronous" 

Any Idea how can I put this in the Place?.
Just revert back to this message if you need some more clarity or you have some question  or some other way to perform this installation 

Regards
Rohit

P.S. -> The requirement is to  Make an msi Installer, which  installs our product with Jre, in silent as well as in UI sequence too. 

philbenson's picture

You'll

find that the latest JRE are in (or can be downloaded as) MSI's. the exe is just a wrapper. Execute the exe file, and look in your temporary directory for the entpacked MSI. Copy this somewhere for later, and abort / cancel the installation. now using the MSI you have just copied, you can create a Transform (MST) to customize to your hearts content....

Once you have done this, you need to call the MSI as a nesteed installation (not recommended tese days) using the appropriate CA. Read up on nested installation in the SDK and Wise help.

just my tuppence,

Phil

VBScab's picture

See my response on AppDeploy

Solution

 

Don't know why 'x' happened? Want to know why 'y' happened? Use ProcMon and it will tell you.
Think about using http://www.google.com before posting.

Shanushaan's picture

Thanks Phil,

Thanks Phil, 
I never transformed any msi but got the reference from net how to do it. 
After launching Java exe, I got the Msi and A cab file,
now if I do a nested MSI Installation using "Execute MSI from Installation", then how it is supposed to get the .CAB(which contains all the files I believe) file with jre installation.

Can you tell me steps of adding cab file in using MST.  

Regards


EdT's picture

Do not install the JRE as a nested installation

Once you install the JRE as a nested installation , it CANNOT be updated except by updating your main MSI - independent maintenance of any nested install is not possible.
You would be much better off by adding the JRE install as a pre-requisite for your MSI and compile the whole project to an EXE.

Regarding your other question - You cannot add a cab file internally in an MST. It has to be merged into the MSI or kept external. You could import it into the CAB table and then change the reference in the media table to indicate that the cab is now internal by preceding the entry with a #

Look in MSI.CHM for answers to detailed questions as this is the SDK help file for windows installer technology.

If your issue has been solved, please use the "Mark as Solution" link on the most relevant thread.

VBScab's picture

CABs can be "added" to MSTs

CABs can be "added" to MSTs as external CABs. They will obviously need to be distributed alongside the MSI/MST.

Don't know why 'x' happened? Want to know why 'y' happened? Use ProcMon and it will tell you.
Think about using http://www.google.com before posting.

EdT's picture

True

Thanks Ian - I replied in the context of the original question where it appeared that the O/P wanted to internalise the external CAB into the MST, which is not possible. Having re-read my posting, it was unclear and so I have reworded it to avoid confusion.
As far as I am aware, you cannot have an external CAB if you want to nest the associated MSI.

If your issue has been solved, please use the "Mark as Solution" link on the most relevant thread.