Skip to main content

Reinstall option in the weekly builds

14 replies [Last post]
kirillcool
Offline
Joined: 2004-11-17

Can you provide an option for automatic reinstall of the 6.0 builds? It's getting kind of boring goign to the control panel to remove the JDK and JRE and only then installing the new build. If i gonna do this every week on two computers (and i guess i'm not alone here), this one can be quite useful. Also, it would ne nice to have an "Express" setup, without confirming the directories for JDK and JRE, just the license agreement with "Accept", "Decline" and "Accept and go" :)

Kirill

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
billyh
Offline
Joined: 2004-12-20

We have implemented the reinstallation option for both the jre and the jdk, and it is scheduled be a part of Mustang b18 and later snapshots. Mustang builds prior to b18 will still have to be manually uninstalled before installing the new ones. But once b19 comes out, it have an option to auto-uninstall b18 and install b19 automatically. This will also be the case going forward with all Mustang builds.

We have also implemented a "Accept and Go" solution for the jre in b16. Unfortunately, we are only hosting the jdk exe's for Mustang snapshots for now. Basically, we combined the "License Agreement" dialog and the "Setup Type" dialog into 1 simple dialog. We will likely do this for the jdk in a future build as well. In b16, we also added a jre installer option to not show the last "finished" dialog. This will simplify things for auto-download scenarios for when users just want to get their applet working (and don't need or care for a "finished" dialog). With these 2 changes, this is more of a 1 click express install for the jre. Here are the related bugs:

6201802 jre installer license agreement dialog needs to be reworked
6201814 jre installer needs option to not show last "finished" dialog

-Bill

kirillcool
Offline
Joined: 2004-11-17

First of all - thanks for doing it, it's really nice to see a positive reaction to the posts in this forum.

I have noticed that these two items (6201802 and 6201814) are in the release notes of b16 (and flagged as closed in BugParade). The problem here is that i expected to see the changes in the b16 itself (just as 5089312 was fixed in b15 and i have confirmed that it was there).
May be you should postpone adding such items to release notes until the version that contains them comes out. Otherwise we wouldn't be able to properly confirm (or reopen) the closed bugs, and that's what i intended to do. Luckily you posted this message first.

Regards
Kirill

http://jroller.com/page/kirillcool/Weblog

billyh
Offline
Joined: 2004-12-20

Oh, sorry about that, I forgot to list the reinstallation bug. Those 2 bugs were related to the 1 click install feature with the jre, and they are both fixed in b16. The reinstall feature is being tracked under:

5071703: improve the installer experience for when same version already installed

It will likely be included in b18.

billyh
Offline
Joined: 2004-12-20

This is getting pushed back to b20 due to the holiday break.

-Bill

kirillcool
Offline
Joined: 2004-11-17

Build 22, and still no reinstallation options...

billyh
Offline
Joined: 2004-12-20

It should be in b22. I just tried b23 and the reinstallation worked correctly. Remember what I said above, that it will only work for b22 going forward. So if you have say b21 installed, and you install b22, it won't work. But if you have b22 installed, and you install 23, it will work. And it will work for all future builds and releases.

keithkml
Offline
Joined: 2003-06-10

I agree, this would make it easier to install and test new builds.

jmelvin
Offline
Joined: 2004-12-01

The commandline on Windows platforms to uninstall both the JRE and JDK is as follows...

msiexec.exe /x "{3248F0A8-6813-11D6-A77B-00B0D0160000}"
msiexec.exe /x "{32A3A4F4-B792-11D6-A78A-00B0D0160000}"

To install, please follow the instructions here...

http://java.sun.com/j2se/1.5.0/install.html

kirillcool
Offline
Joined: 2004-11-17

You must be kidding. Writing the batch file for Windows? What is this, a UNIX computer? This is what the InstallShield is here for. There is a plenty of examples of Install/Repair/Remove installer screens that also have a screen-by-screen mode and the express mode (a button named "finish").

If the installer is smart enough to recognize that JDK and JRE are already present, it can be smart enough to give me an option of removing them automatically.

Kirill
http://jroller.com/page/kirillcool/Weblog?catname=/Java

zander
Offline
Joined: 2003-06-13

> You must be kidding. Writing the batch file for Windows?

If you refuse the option of fixing it yourself because its not proper; well...
If you want others to spent time and money to make your work easier; you must be prepared to be disappointed as not all their time can be spent on you.

kirillcool
Offline
Joined: 2004-11-17

Zander,
assuming that you didn't see the installer for Windows (as i never saw the installers for *NIX):
* you double-click on the EXE
* you click on radio box of "accept"
* you click on "next" in JDK
* you click on "next in JRE
* you click on "finish"
If the installer finds out that the JDK/JRE are already installed, you get only the last step, after viewing the "you have already this version of JDK installed" message.

So:
1. The installer has a way to know that i already have JDK 6.0 installed
2. The InstallShield wizards [b]can[/b] uninstall what they've installed
3. The installer already provides the default (from the previous installations) locations of the JDK and JRE

It's not that i don't have UNIX experience (9+ years), but why should i write scripts for something that the installer can do? Moreover, the options that i requested are [b]standard[/b] options for Windows installers.

Sun doesn't have to spend time and money to make my work easier: this can be done in a matter of minutes for experienced InstallShield user; moreover we are all testing the Mustang for Sun for free, so why shouldn't they make our work easier? Otherwise they would be disappointed if i won't spend my time on switching between different JVM's.

Kirill
http://jroller.com/page/kirillcool/Weblog?catname=/Java

zander
Offline
Joined: 2003-06-13

Kirill, can't you create a script of some sort to do this for you? I never use Windows, but all the other OS-es I know are able to do so..

kirillcool
Offline
Joined: 2004-11-17

Zander,
there are Windows' applications that can emulate the user interaction (like Mercury's WinRunner), but they cost money and allow you to "override" the EULA without actually reading it (like we do :) ). In the world of Windows you'll have to cook up a quick application of your own (say in VB or in C++) to access the control panel and remove the already installed program. That's messy.

On the other hand, InstallShield's installer might provide a quicker way to install the JDK+JRE: now i have to click the checkbox of [b]agree[/b], the button itself and to acknowledge twice the location of JDK and JRE. It just repeats itself as i already know that i'll click thru the whole process :(

Kirill

zander
Offline
Joined: 2003-06-13

By scripting I did not mean the practice of emulating mouse clicks, but the practice of writing some script (a high-level .bat file) to do the uninstall/install for you.

I agree its messy to have to rely on GUIs which can then be automated.