oren
Posts: 11
Joined: Mon Sep 03, 2012 5:24 pm

How to add 64bit file to same directory with other files whe

Most of the files in my application are built for both x86 and x64 (AnyCPU). Some files are built only for x64.
I have no problem when installing on x64 machine and all files are in the same directory, but when installing on x86 machine all x64 files are not installed or installed to a different directory (usually 32-bit).

How can I make the x64 files to install to the same directory as all other files when installing on x86 machine?
Daniel
Posts: 8276
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: How to add 64bit file to same directory with other files

Hello,

I'm afraid I don't fully understand your scenario. Can you give us more details about this (maybe exemplify)?

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
oren
Posts: 11
Joined: Mon Sep 03, 2012 5:24 pm

Re: How to add 64bit file to same directory with other files

Hello,

I'll try to explain how my application is working.
My application have 2 main components.
a) A management console from where the user can manage different features of the application and install (deploy) and uninstall my application agents to any selected machines in the organization.
b) Agents that will be installed on any selected remote machines. The agents are set of files (.exe and .dll) that are ran from a service (installed and started during installation)

The management console is written in C# and built for both x86 and x64 (AnyCPU)
The agents are built in C# and C++.
The files written in C# are built for both x86 and x64 (AnyCPU)
Some of the files written in C++ are built for x86 and others built for x64.

All the files (management and agents) are packaged in one EXE installer. The agents files are located in a directory called 'Client'.
When installing the application, a directory is created in the 'Program Files\<COMPANY NAME>\<APPLICATION NAME>' and all management console files are saved to this directory. All 'Client' Files are saved to the 'Program Files\<COMPANY NAME>\<APPLICATION NAME>\Client'

When installing on x86 machines, none of the x64 files (built with C++) are extracted from the installer.
No problem when installing on x64 machine.

How can I make the installer to save all x64 files to the same directory (Client) when installing on an x86 machine?

Thanks,
Oren
Daniel
Posts: 8276
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: How to add 64bit file to same directory with other files

Hello Oren,

This may happen if the related files components are installed based on condition. You can check this in "Organization -> Component Properties" right pane. However, can you send us the .AIP (project file) and a verbose log of the installation to support at advancedinstaller dot com so we can investigate them?

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
oren
Posts: 11
Joined: Mon Sep 03, 2012 5:24 pm

Re: How to add 64bit file to same directory with other files

Hello Daniel,

Thanks. Your reply solved my problem.
In 'Organization' I saw a folder named 64-bit where the x64 compiled files where. Moving them to the 32-bit folder solved the problem.
I think the 64-bit folder was auto-created when I selected the 'Mixed 32/64-bit...' in the 'Install parameters > Package Type'. It auto detected all x64 file and set them to be installed only on x64 machines.
I know where to look now, but is it possible to add to the wizard (auto started when selecting the 'Mixed 32/64-bit...' for the first time) and option to allow me to select to install x64 files on x86 machines?

Thanks,
Oren
Daniel
Posts: 8276
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: How to add 64bit file to same directory with other files

Hello Oren,

I'm afraid we don't have support for this, because it is not recommended to install 64-bit files on 32-bit machines. However, in order to achieve what you want you should add the related files (to be installed on both platform types) under a feature, in "Organization" page, which would be installed on both (32-bit and 64-bit) platform types.

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

Return to “Building Installers”