Repackaging Java - 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!

thenextyou
Posts: 3
Joined: Fri Jun 06, 2008 7:29 pm

Repackaging Java

I have been trying to repackage Java but it will error out on the repackaging phase. Has anyone else been able to do this?
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Repackaging Java

Hi,

I'm not sure I understand what you mean. Can you please give me more details about this? Are you trying to repackage a Java Runtime Environment installation package? If this is the case, can you please give me more details about why you need this?

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
thenextyou
Posts: 3
Joined: Fri Jun 06, 2008 7:29 pm

Re: Repackaging Java

I am trying to create a single deployable MSI of the Java runtime.
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Repackaging Java

Hi,

Can you please give me more details about why you need this? Note that the JRE installation package is already MSI-based. For example, after the "jre-6u6-windows-i586-p-s.exe" installation package is launched, the MSI is extracted in the "C:\Documents and Settings\<username>\Application Data\Sun\Java\jre1.6.0_06" folder ("<username>" represents the name of the current user).

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
thenextyou
Posts: 3
Joined: Fri Jun 06, 2008 7:29 pm

Re: Repackaging Java

What my main goal is since I work in an educational computer lab environment. I would like to be able to do some customizing like turning of the update reminder.
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Repackaging Java

Hi,

I'm not sure if this can be done, but you can try it by modifying the original MSI package. First, you need to obtain the MSI file (from the folder I mentioned in my previous post). After this, use the "Import MSI" feature in Advanced Installer to import the JRE MSI. Finally, modify the package the way you need and build it. Note that the "Import MSI" feature can be used only with an Enterprise license (or in trial mode).

The EXE bootstrapper of the JRE installation package uses a transform when it launches the installation (you can see this by using Process Explorer). Therefore, I'm not sure if the resulted installation package will work as expected. You should investigate this transform and see what it does to the package.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”