Java and 64 Bit windows 7 - Advanced Installer Community
bschooly
Posts: 5
Joined: Mon Mar 22, 2010 6:28 pm

Java and 64 Bit windows 7

I have the Java edition (v 7.7) and I need to build a package for 64 bit windows 7. What do I need to do differently over a regular 32 bit install?

I don't seem to have the option to create a mixed package type (that's not available to java). So do I need to create a separate 64 bit installer?

Also I assume on the java products page, I will want to choose the 64 bit jvm option.

Please clarify my options.

Thanks
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Java and 64 Bit windows 7

Hello,

Starting with Advanced Installer 8.0 the "Mixed 32/64 installers" feature is available with every edition except Freeware. If you decide to upgrade, here is a user guide article to help you clarify any doubt about this feature.

However, to accomplish this using the 7.7 release, you can author a package for each platform architecture and then use a wrapper to install them accordingly:
http://www.advancedinstaller.com/user-g ... r-msi.html
http://www.advancedinstaller.com/user-g ... r-exe.html

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
bschooly
Posts: 5
Joined: Mon Mar 22, 2010 6:28 pm

Re: Java and 64 Bit windows 7

Thanks for the reply. I tested yesterday and I tried leaving the installer set to 32 bit mode, but changing java setup to use the 64 bit vm.

This sort of worked. The application seemed to run alright. Except whenever the app tried to access certain machine level registry
information it failed. User level stuff worked fine.

The registry info path is setup in the installer. So I assume the registry entries were written to 32 bit area of the registry because
I didn't choose the 64 bit installer. Is that correct?

I too thought of the dual msi approach but this requires two advanced installer projects and two updater setups as well.

Bill
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Java and 64 Bit windows 7

Hi Bill,
The registry info path is setup in the installer. So I assume the registry entries were written to 32 bit area of the registry because
I didn't choose the 64 bit installer. Is that correct?
If you need to install registry entries in the 64-bit area of the registry on a 64-bit machine, you should mark their corresponding component as 64-bit from the Organization page( pressing F8 while on the selected registry entry in the Registry page will navigate to its corresponding component in the Organization page ). You should also set the package as 64-bit from the Install Parameters page.

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
bschooly
Posts: 5
Joined: Mon Mar 22, 2010 6:28 pm

Re: Java and 64 Bit windows 7

Sorry to repost on this. I'm only now getting back to this project. No matter what I do I can't seem to get my java app installed correctly on 64 bit windows 7. I tried the previous suggestions and my application fails on startup when it tries to reference the registry (no backing store message).

I have to go into the registry and add permissions to my nodes. Looking at the registry, I see my node tree in both the normal location and the wow6432node locations. The normal location has my keys whereas the wow path does not. The wow path does in fact have the permissions I set within the installer setup.

Please explain the proper setup and what I'm doing wrong. My goal is for my app to run on 32 bit (a separate install image is fine) and 64 bit (in true 64 bit mode).

I'm not embedding the jre. I have specified 64 bit platform in the java products page and the package type is 64 bit.
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Java and 64 Bit windows 7

Hi,

You can see my reply on the Java and 64 bit redux thread.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”