mthama
Posts: 15
Joined: Mon Feb 10, 2014 1:49 pm

We'd like to know how AI detects if the machine is x32 or x6

Hello all.

We'd like to know how AI detects if the machine is x32 or x64. Suppose that we have a x32 machine with a x64 Windows installed. How AI will proceed in this way?

We are experimenting an issue related with JavaVM. Here, we have developed an installer that detects the system architecture and opens a Java pre-requisite download. The download redirects to either x32 Java or x64 Java depending on the user system. Within our machines the final behavior seens to OK, but in some of our client's machine, the behavior is failing.
The main problem is that AI seens to be not detecting the correct architecture in some machines, as users are being redirected to a wrong download page. But again, in other machines it OK. As a final result, the wrong redirect page makes users to received the "well known JVM arch error" FAILED TO LOAD JMV.DLL / errno = 193, triggered when one try to execute x64 Java with a x32 JVM.

To create the pre-requisite behavior, we believe that we're proceeding with the correct (at last, as we're believing...) approach: AI tabs -> Requirements -> Prerequisites -> Pre-install -> Install Conditions -> Supported Windows Versions -> x64/x32 checkboxes. With the given pre-requisite being controlled with them,

So and last... we're wondering how AI detects users system architecture to be sure if behavior is either correct/incorrect when users have a different architecture related with the SO.

Thanks in advance!
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: We'd like to know how AI detects if the machine is x32 o

Hello,

In order to make sure a prerequisite package will be installed only on a 32-bit Windows version, then you should check only the "32-bit Windows Versions" option from "Prerequisite Install Conditions" tab. Also, you should proceed similar for the 64-bit Windows versions.

At install time you can check the "VersionNT" and "VersionNT64" properties values in order to find out the target machine architecture.

In order to add both versions, 32 and 64-bit, of the JRE as prerequisites to your setup project, then you can configure the "Prerequisites" page of your project as it is exposed in our "Behaviour of 32-bit jre on prepacked in mixed mode insta" thread (which also contains a sample project).

Let us know if this helped, otherwise please send us the .aip (project file) and more details about the behavior you are encountering at install time to support at advancedinstaller dot com so we can investigate.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”