Installing Java during the main course of installation - 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!

deepaksrivastav
Posts: 6
Joined: Mon Jun 25, 2007 12:42 pm

Installing Java during the main course of installation

Hi,

I want to install JDK during the main course of the installation and not as a pre-requisite.

How do i achieve this?

Regards,
Deepak Srivastav S
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi Deepak,

My recommendation is to use prerequisites. However if you don't want to use prerequisites then you can use a custom action.

In this case if the JDK setup file is a MSI then schedule the custom action under "InstallFinalize" and use "Asynchronous execution, do not wait for return" as "Execution Properties". This is because two MSI files cannot be installed at the same time.

Hope this helps. Let me know if you encounter any problem.

Best Regards,
Gigi
______________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com
deepaksrivastav
Posts: 6
Joined: Mon Jun 25, 2007 12:42 pm

Hi gigi,

When I add JDK as pre-requisite, it will be installed even before the application installation starts.

This is not desirable because, if a person enters wrong Serial number, the product will not get installed, but we Java is installed which is not good.

This is the reason i want to run java installation as a part of the main installation task.

The suggestion you have given seems to be very good.

Thanks a lot.

Regards,
Deepak
deepaksrivastav
Posts: 6
Joined: Mon Jun 25, 2007 12:42 pm

Hi again gigi,

Now, if i run JDK installation in asynchronus mode, then i have a problem.
I have some java programs which are to be run when installer finishes execution. THese programs won't get executed because the installer doesn't know if java is installed.

I can't add this as pre-requisite as well because of the the problem i mentioned in the above reply.

What do i do?
:?:

As far as i know, i do not have control over it. Otherwise i actually wanted to change the text that appears in it. Can i do this?

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

Hi Deepak,
What do i do?
The only way to run two MSI packages at the same time is by using a custom action under "InstallFinalize" action with "Asynchronous execution, do not wait for return" as "Execution Properties".
As far as i know, i do not have control over it. Otherwise i actually wanted to change the text that appears in it. Can i do this?
I'm afraid I don't quite understand this. Please give me more details.

However other suggestion is to run your program by using the "Finish Actions" under "ExitDialog". In this case the program will run when the user clicks the "Finish" button.

Best Regards,
Gigi
______________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com
deepaksrivastav
Posts: 6
Joined: Mon Jun 25, 2007 12:42 pm

As far as i know, i do not have control over it. Otherwise i actually wanted to change the text that appears in it. Can i do this?
When i install my product, i do not want the pre-requisite screen to come,
because i want my custom made screen to come in that place and then the pre-requisite screen can come.
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi,

I'm afraid that dialog customization for the Botstrapper UI is not supported. We have this feature on our TODO list and will be available in a future version but I'm afraid I cannot give you an ETA.

Regards,
Gigi
______________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com
tullio0106
Posts: 1
Joined: Wed Jul 11, 2007 11:17 am

I wasn't able to use prerequisite because AI didn't find in the package the jre exe file.
How can I force the run off jre (not from url).
If i try to do this in the Commit custom action I always get an error.
Please help me.
Tks
Tullio
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi Tullio,
I wasn't able to use prerequisite because AI didn't find in the package the jre exe file. How can I force the run off jre (not from url).
If you want to include the prerequisite setup file in your package then use "File In Package" as "Location" for the prerequisite (in the "Edit Prerequisite" dialog). You can read more about prerequisites here:
http://www.advancedinstaller.com/user-g ... tware.html

Other way is to include the JRE as bundled to your package. This can be done in the "Media->Java" page "Add JRE Bundle..." button.
http://www.advancedinstaller.com/user-g ... e-jre.html

Installing the JRE as custom action is not recommended because two MSI files cannot be executed at the same time.

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

Return to “Common Problems”