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.
FOLLOW US
Get the latest news in Application Packaging