prerequisite jre - Advanced Installer Community

We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

oldaj
Posts: 13
Joined: Thu May 24, 2007 11:35 pm
Location: Odessa, TX

prerequisite jre

I hate to show my ignorance, but...I have a couple of questions about prerequisites...still.

1. When I use the http://www.java.com for the setup file, it doesn't download the jre at install time. It prompts the user to do so the first time they open the newly installed program. What am I doing wrong?

2. I don't understand how to use 'File in Package' for the setup file. If I need an entire jre to be installed, what do I do when I get to this point. I have to pick a setup file, but I don't know what to pick...or what else I need to do after I pick it. :(
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi,

You have following possible options for prerequisite location:

1. File In Package (the prerequisite setup file is located in your package)
2. URL (the prerequisite setup file will be downloaded from the specified URL)
3. Open Site (you can use "Open site", if you don't want to direct the user to a specific prerequisite file. This option allows you to provide the user with a general URL location. He will browse to the desired prerequisite file and install it).

You can read more about how to use prerequisites here:
http://www.advancedinstaller.com/user-g ... tware.html

Regards,
Gigi
______________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com
oldaj
Posts: 13
Joined: Thu May 24, 2007 11:35 pm
Location: Odessa, TX

I guess this is my question

I've read that several times. My question is a little more fundamental. Is there a setup file within the jre itself, like java.exe or something, to use for the setup file for the prerequisite. Or, do I need to build an installer for it...to include in my installer package.

I guess using open site and java.com would work from what you said.

I'm having no problems whatsoever with the bundled jre package. But, when I build a package with no jre, I have problems. As you know, I've had trouble with the prerequisite.
If I build it with no prerequisite and just keep it simple and use a min version higher than the one on the target pc, first time to run it the dialog pops up with java.com link. Just click on java.com link, download and everything works fine. Same package with min version less or equal to version on target pc always comes back unable to find main class. I'm so confused :roll:

By the way, is the CD autorun option available on Java project. Mine doesn't seem to be enabled.
oldaj
Posts: 13
Joined: Thu May 24, 2007 11:35 pm
Location: Odessa, TX

Oops

Apparently I was trying to recreate something that didn't happen quite the way I remembered it. My program won't work with the earlier jre. I've been beating my head against the wall for nothing.

Thanks. I'd still like to hear from you about the setup file question though. I learned what I have from books, set my own curriculum you might say, and I've probably missed some fundamental lessons along the way. Thanks for your patience...and your help.

oldAJ
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi,
Is there a setup file within the jre itself, like java.exe or something, to use for the setup file for the prerequisite.
Yes, there is a setup file for the JRE, check the SUN web site. You can download the setup file for JRE and add it as prerequisite using the "File in Package" as location. Or you can use directly the URL (AI will download it at install time).
By the way, is the CD autorun option available on Java project. Mine doesn't seem to be enabled.
The Autorun feature is available only for the "Enterprise" type of project.

Regards,
Gigi
______________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com

Return to “Common Problems”