Calling java class while installing msi - 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!

suajtha
Posts: 21
Joined: Wed Oct 28, 2009 5:38 am

Calling java class while installing msi

Hi,

is there any way to call java code while installing msi. please suggest me.

Thanks,
Sujatha
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: Calling java class while installing msi

Hello,

Although not recommended, it is possible to do so. You must make sure the target machine has java installed. This means your package should come with java as a prerequisite.

You can then launch java using a Launch file or Open URL custom action. The command line field would have something like:

Code: Select all

[FULLPATHTOJAVA]java -jar [FULLPATHTOYOURJAR]
Replace [FULLPATHTOYOURJAR] with the actual path your jar is copied to. Set your jar as temporary file.
FULLPATHTOJAVA is the path to where java.exe is installed. To find this path, use the Search feature.

Regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/

Return to “Common Problems”