Archive: Contunue install app after reboot


Contunue install app after reboot
Hi there

I am developing a webstart application install utility.

I first check if JRE is installed and if it is not, I ExecWait an external
install (Sun's JRE installation program) before I run my install
processes.

The problem is that Sun's install app asks the user to reboot the system
before my install has a chance to exec completely.

The ideal situation will be for the user to click on yes, the PC to reboot
and for it to thereafter continue installing my app automatically.

Do you have any suggestions on how to do this?

Also, I am looking into injecting files directly into webstarts cache. But
that is not the problem. I am struggling to find a way of locating the
cache location automatically using JRE1.4.2 (there is no javaws.cfg file).
Any Hints?

Regards
Pratish Rajcoomar
for Dariel Solutions


Use the Software\Microsoft\Windows\ CurrentVersion\RunOnce registry key.


Why don't you install the JRE silent and force it not to reboot, then reboot after installing your application.
Silent installing the JRE is not that complicated. I've tested it myself (I even displaed the license page for JRE in my installer).
Have a look at http://java.sun.com/j2se/1.4.2/docs/...de/silent.html
for more details on silent JRE installation.