Dev63
Posts: 25
Joined: Mon Dec 02, 2013 8:21 pm

Simple 32/64-bit mixed installer

I'm trying to accomplish what I would think would be a very common, basic task. We have two versions of our product: 32-bit, and 64-bit. I'd like one installer that detects the OS and installs the correct version of our program.

I've read these instructions: http://www.advancedinstaller.com/user-g ... ckage.html, and although kludgy, it mostly seems to work. However, it still doesn't address the file association issue (manual registry commands?), and I don't see how to set APPDIR so it defaults to the correct Program Folder (i.e., Program Files (x86) for 32-bit, and Program Files for 64-bit).

Is there a more straightforward way to deal with the whole task? What does everyone else do? I can see that everything would work wonderfully if I just created separate 32-bit and 64-bit MSIs, but I don't want to ask the users to figure out which one they need.

If there's not a common, easy way of doing all this, can someone at least provide instructions for setting APPDIR appropriately? I can manually instruct the installer to place the files in ProgramFilesFolder or ProgramFiles64Folder depending on bit-size, but that would be quite misleading when the user is given the dialog to select APPDIR and I totally ignore it.
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Simple 32/64-bit mixed installer

Hello and welcome to Advanced Installer forums,

Thank you for your interest in Advanced Installer.

I'm not sure why you encountered this. When the "Mixed 32/64-bit matching the platform" package type is selected in the Install Parameters page, then the wizard will launch and will guide you step by step through every stage required to organize your “Mixed 32/64-bit matching the platform” package.

This way, on 64-bit platform the APPDIR would not be redirected to Program Files(x86) and the installation package will be installed by default in the Program Files.

Please let us know if that helped, otherwise give us more details.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Dev63
Posts: 25
Joined: Mon Dec 02, 2013 8:21 pm

Re: Simple 32/64-bit mixed installer

Thanks for the reply. I went back and recreated everything; I discovered that the Wizard changes the Application Folder to [AI_ProgramFiles], and that was the piece of information I needed for the APPDIR

The article from your site I quoted shows how to do this without the Wizard, and is necessary if you have files that are named the same, but one is for 32-bit and one is for 64-bit. However, the article doesn't mention [AI_ProgramFiles], and I had not done this.

I have now combined the Wizard and the manual elements described in your link, and it all works except for the file association. Can you give me specific instructions for how to handle this? I just want the file association to go with whichever executable of the same name gets installed based on OS.
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Simple 32/64-bit mixed installer

Hi,
Can you give me specific instructions for how to handle this? I just want the file association to go with whichever executable of the same name gets installed based on OS.
Indeed, we don't have support for this and I'm afraid there is no workaround.
This improvement is on our TODO list and for surely will be available in a future version of Advanced Installer. Unfortunately, I cannot give you an ETA for now. We will notify you when this will be available.

Thank you for your understanding.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Dev63
Posts: 25
Joined: Mon Dec 02, 2013 8:21 pm

Re: Simple 32/64-bit mixed installer

I worry to hear that there is no workaround, because in the meantime I thought I had constructed a workaround ... and it worked under my limited tests on Vista-64, Win7-32/64, and Win8-64.

Basically, I looked at the settings Advanced Installer made when creating a file extension, and then "manually" duplicated them in the registry instructions section. There appear to be two main sets of keys under HKLM/Software/Classes:

.xx (Manufacturer.Product.xx)
--Manufacturer.Product.xx ()
----ShellNew ()
Manufacturer.Product.xx (description)
--shell (&Open)
----&Open (&Open)
------command ("C:\...prog.exe" "%1")

However, there was one key value I was unable to duplicate, and it looked like gibberish. It was another value under the "command" key, with a value name of "command" and a value that looks like a random sequence of symbols followed by "%1". To be clear, the default value for the "command" key looks fine and is the fully qualified program path/name followed by "%1".

Do you know of any reason why my settings above will not be sufficient, and under what circumstances? I only care about Vista+.
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Simple 32/64-bit mixed installer

Hi,

In order to have a better view of this, can you please send us the .AIP(project file) to support at advancedinstaller dot com?

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
sjeslis
Posts: 308
Joined: Mon Aug 22, 2011 11:40 pm
Contact: Website

Re: Simple 32/64-bit mixed installer

We could really use this enhancement as well:
"I just want the file association to go with whichever executable of the same name gets installed based on OS."
Scott Jeslis
Senior Software Engineer
Cicero, Inc.
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Simple 32/64-bit mixed installer

Hello,

We already have this on our TODO list and this feature will be available in the next version of Advanced Installer. Thank you for your suggestion.

If you have other questions, please let us know.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
markr002
Posts: 21
Joined: Mon Dec 20, 2010 5:38 pm

Re: Simple 32/64-bit mixed installer

I'm also working around this limitation by creating manual registry entries, and it seems to work fairly well in the testing I've done.

Still, it is disappointing (and actually sort of absurd, in my opinion) that Advanced Installer _still_ doesn't handle this fundamental scenario.

Please, this needs to be moved to the top of the priority list.
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Simple 32/64-bit mixed installer

Hello Marc,

Yes, this improvement will be available in the next version of Advanced Installer. Thank you for your suggestion.

If you have other questions, please let us know.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Simple 32/64-bit mixed installer

Hello,

The improvement to add same extension for both version (32 and 64-bit) of application when using a mixed installation package has been added in version 11.0 of Advanced Installer released on March 13th, 2014.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
markr002
Posts: 21
Joined: Mon Dec 20, 2010 5:38 pm

Re: Simple 32/64-bit mixed installer

Excellent, thanks for getting this done.
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Simple 32/64-bit mixed installer

You're welcome Marc,

We are trying to make Advanced Installer as useful and complete as possible, so we appreciate your suggestions. Almost every feature in Advanced Installer has been shaped in accordance with the needs of the users.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Dev63
Posts: 25
Joined: Mon Dec 02, 2013 8:21 pm

Re: Simple 32/64-bit mixed installer

Can you explain how to use the improved capability? How do I create a File Association that gets associated with whichever version of the program gets installed?
Dev63
Posts: 25
Joined: Mon Dec 02, 2013 8:21 pm

Re: Simple 32/64-bit mixed installer

Can someone explain how to use the "new" capability? I try to create a File Association using the Wizard, and it still seems to need me to pick a particular 64-bit or 32-bit file. How do I tell it just to use whichever file of a given name that gets installed in [APPDIR]?

Return to “Common Problems”