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!

vatots
Posts: 1
Joined: Tue Aug 06, 2013 3:34 pm

Installer for both 32 and 64 bit, shared files

Hello,
I am a new user and am trying to build an installer and have a few questions. I did follow the instructions, but am still missing something. Hope you can help.

Requirement:
I am trying to distribute an Excel Add-In that is based on C#/.NET Framework. There is a 32-bit version of the Add-In DLL and a 64-bit version.
I would like to build a single setup project what would work for both 32 and 64 bit OS. Here is what I would want:
a. On 32 bit OS - The 32-bit Add-In files get installed, with some registry entries under HKLM\Software\Company Name...
b. On 64 bit - BOTH the 32-bit Add-in DLL and the 64-bit add-in DLL should be installed, with registry entires in HKLM\Software AND HKLM\Software\WOW6432....

Item-b above is because, the end user may or may not have a 64-bit version of Excel, but we want to provide the Add-Ins anyhow.

I followed the 32/64 bit wizard steps and here's whats happening:

1. On 32-bit : Everything works fine.

2. On 64-bit: The 32-bit files get installed under Program Files\AppName\x86 folder and the registry entry is made only in WOW6432 node and not just under HKLM\Software\Compay Name


Please can you help me understand what I am doing wrong. Moreover, is my approach correct to begin with?

Thank you.
-V
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Installer for both 32 and 64 bit, shared files

Hello and welcome to Advanced Installer forums,

Thank you for your interest in Advanced Installer.

Indeed your approach is the right one, but please keep in mind that this is the normal behavior when a 32-bit registry entry is created on a 64-bit machine.
You can take a look on Install 32/64-bit registry entries article which may be useful.

Also, a similar subject is debated on our 64-bit component thread.

If you have any questions, please let us know.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”