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!

codesynergy
Posts: 100
Joined: Fri Nov 14, 2014 10:29 pm

Building 32bit and 64bit Installers

I want to create a single AI project for our 32bit and 64bit installers. The scenario is a bit complex. Here is my best attempt at explaining:

On a 64bit machine:

64bit Installer:
- Installs 64bit files to C:\Program Files\<Company>\<ProductName>
- Optionally installs 64bit files to C:\Program Files\<Company>\subproduct1folder
- Optionally installs 64bit files to C:\Program Files\<Company>\subproduct2folder

32bit Installer:
- Installs 32bit files to C:\Program Files (x86)\<Company>\<ProductName>
- Optionally installs 32bit files to C:\Program Files (x86)\<Company>\subproduct1folder
- Optionally installs 32bit files to C:\Program Files (x86)\<Company>\subproduct2folder

Both Installers:
- Optionally install 32bit files to C:\Program Files (x86)\<Company>\subproduct3

I'm wondering what the "proper" way to set this up is. There are two parts that are tripping me up:

- Since there are optional features that install to the parent directory of .\[ProductName], should I define APPDIR as [AI_ProgramFiles][Manufacturer]\[ProductName] or just [AI_ProgramFiles][Manufacturer]?
- How do I address the 32bit files that are installed with both installers (to Program Files (x86))? If I add them to the "Application Folder", wouldn't they install to 64bit program files when running a 64bit install, since APPDIR will redirect to 64bit Program Files on a 64bit machine? Not sure if there is a way to add files to the "Application Folder" and redirect only those files to Program Files (x86)?

I think there are multiple ways of pulling this off. I'm considering both a "mixed" package type, as well as separate 32bit and 64bit packages, using 32bit and 64bit builds (in the "Media" view). I could use [AI_ProgramFiles] or separate packages using [ProgramFilesFolder] and [ProgramFiles64Folder]. Ideally, I would like everything to go in the "Application Folder", so all installation paths are tied to APPDIR. Not sure if this is possible in my scenario. I'm certainly open to adding other folders, which might mean adding a SetProperty custom action using APPDIR. Any suggestions are greatly appreciated.

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

Re: Building 32bit and 64bit Installers

Hello,

In order to achieve what you need you can create a mixed 32/64-bit package type.

In "Organization" page you should add the 64-bit files (of the 64-bit installer) under the 64-bit feature, the 32-bit files (of the 32-bit installer) under 32-bit feature and the 32-bit common files under a common feature.

In "Files and Folder" page the should be added under "Application Folder" and "Application Folder\subproduct1folder" folders. The 32-bit files should be added under "Application Folder\32-bit" and "Application Folder\32-bit\subproduct1folder" folders and the 32-bit common files should be added "Program Files\subproduct3" folder.

If you have any questions let us know.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
codesynergy
Posts: 100
Joined: Fri Nov 14, 2014 10:29 pm

Re: Building 32bit and 64bit Installers

Ok, that makes sense. Since the subproduct folders need to install to the same directory level as the main product folder (this is a requirement of our software), I think I will need to define APPDIR as [AI_ProgramFiles][Manufacturer] instead of [AI_ProgramFiles][Manufacturer]\[ProductName] and treat the main product folder as another subfolder. But, the same idea still applies.

Thanks for your help!
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Building 32bit and 64bit Installers

You're always welcome.

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

Return to “Building Installers”