jafa
Posts: 51
Joined: Fri Feb 23, 2007 7:13 pm

x86 and x64 builds

Hi,

We have 32-bit and 64-bit builds of our application, and need to create web and CD installers.

Is it possible to have one installer that will install 64-bit components on a 64-bit OS and 32-bit components on a 32-bit OS? I understand conditionals, but I am not sure how get it to install into [ProgramFiles64Folder] if it detects a 64-bit OS (the Application folder setting does not provide conditional control in the UI).

To test I have created 4 builds - 32-bit vs 64-bit and CD vs web.

Under Organization I created two features - 32-bit and 64-bit. The 32-bit feature is configured for the 32-bit CD and 32-bit Web builds. Likewise for the 64-bit feature.

The problem is that all of our 64-bit files have the same name as our 32-bit files (only one set will be installed). The Files and Folders screen won't accept two files with the same name in the AppDir. This screen has a build pull-down menu to select the current build but it does not appear to do anything (AI 6.0.1).

Side note - the Prequisites screen Software tab won't allow two entries with the same Display name. The CD and Web builds have the same prequisites but the CD embeds and the Web downloads. I was able to fix this by editing the names in the aip file.

Nick
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Hi,

Note that if a package contains at least a 64-bit Component, then the package must be a 64-bit package and it will not work on 32-bit systems. Hence, you need to create separate 32-bit and 64-bit packages.

The 64-bit package can contain several 32-bit Components or only 64-bit Components. The Package Type can be set in the "Install Parameters" page.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
jafa
Posts: 51
Joined: Fri Feb 23, 2007 7:13 pm

Hi,

I am not sure of the terminology - is a "package" a "build"?

I have set up a 32-bit build and a 64-bit build within this installer project file.

I then set up a 32-bit feature and a 64-bit feature. The 32-bit feature is set to only be included in the 32-bit build. The 64-bit feature is set to only be included in the 64-bit build.

The problem is it won't let me specify two files with the same filename to go into the APPDIR.

I need app.exe (32-bit) to be part of the 32-bit feature and to go into APPDIR. This file will not be present in 64-bit builds as 64-bit builds do not include the 32-bit feature.

Plus I need app.exe (64-bit) to be part of the 64-bit feature and to go into APPDIR. This file will not be present in 32-bit builds as 32-bit builds do not include the 64-bit feature.

The resulting installer exe will be 100% 32-bit or 100% 64-bit.

I don't want to have two project files as I have some complicated custom dialogs.

Nick
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Hi,
I am not sure of the terminology - is a "package" a "build"?
Yes, each build generates and installation package.
The problem is it won't let me specify two files with the same filename to go into the APPDIR.
I'm afraid that Advanced Installer doesn't support per-build files, therefore the only way to do what you need is to create two subfolders under "Application Folder" (one for 32-bit files and one for 64-bit files).
I don't want to have two project files as I have some complicated custom dialogs.
Please note that in the "Dialogs" page you can add your custom dialogs to the Dialogs Repository and import them in another project. You can read more about this here:
http://www.advancedinstaller.com/user-g ... itory.html

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
jafa
Posts: 51
Joined: Fri Feb 23, 2007 7:13 pm

Hi,

I was trying to avoid having two project files - it creates maintenance problems. I will set up a script to create a x64 project file from the x86 project file each time the build process runs.

Feature request 1:

Support configuring/generating a single package that will install a 32-bit version of the application on a 32-bit OS and a 64-bit version of the application on a 64-bit OS.

When we ask a customer if they are running 64-bit XP/Vista the most common response is "Huh?"

This will allow us to write an installer that doesn't confuse the user with multiple downloads/installers when it is obvious to the installer if the OS is 32-bit or 64-bit :)

Feature request 2:

In the Prequisites screen, Software tab - allow multiple entries with the same display name. Important when configuring the same named prequsite differently for multiple builds. Example - a web build that downloads and a CD build that includes the file.

The back end already supports this (it works if you manually edit the project file).

Feature request 3:

Support multiple files with the same name to be placed in the same directory. Useful for mutually-exclusive Features.

Nick
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Hi,
Support configuring/generating a single package that will install a 32-bit version of the application on a 32-bit OS and a 64-bit version of the application on a 64-bit OS.
This feature is already on our TODO list and it will be available in a future version of Advanced Installer.
In the Prequisites screen, Software tab - allow multiple entries with the same display name.
I have added this feature on our TODO list and it will be available in a future version of Advanced Installer.
Thank you for your suggestion.
Support multiple files with the same name to be placed in the same directory. Useful for mutually-exclusive Features.
We will investigate this issue for a future version of Advanced Installer. However, we have found a workaround:
- in the "Files and Folders" page you place the 32-bit files in "Application Folder"
- you create a subfolder of "Application Folder" which contains the 64-bit files
- the subfolder has the "Install folder content into the parent folder" option enabled in the "Edit Folder" dialog (you double-click the folder to show it)

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
jafa
Posts: 51
Joined: Fri Feb 23, 2007 7:13 pm

Thanks!

The work around sounds reasonable - I will test.

Nick
Daniela Petrescu
Posts: 30
Joined: Tue Aug 14, 2007 10:03 am

Hi,
Support configuring/generating a single package that will install a 32-bit version of the application on a 32-bit OS and a 64-bit version of the application on a 64-bit OS.
This feature has been added to Advanced Installer 6.1. Find out more about Mixed 32/64-bit matching the platform package by visiting http://www.advancedinstaller.com/user-g ... types.html.

You can read more about latest features added to Advanced Installer 6.1 on http://www.advancedinstaller.com/release-6.1.html.

Regards,
Daniela
_________________
Daniela Petrescu
Advanced Installer Team
http://www.advancedinstaller.com

Return to “Common Problems”