Instalation based on Office bit - Advanced Installer Community

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!

bchetana
Posts: 95
Joined: Sat Dec 01, 2012 11:36 am

Instalation based on Office bit

Hi

We have shim project . We have two versions of it. One for office32 bit and other for office64 bit.

I created a project with as Mixed package which supports in 32bit OS and 64bit OS.

The problem is
If system is installed with 64bitOS-64bitOffice or 32bitOS-32bit Office, the installation should happen in C:\Program Files
if system is installed with 64bitOS-32bitOffice , the installation should happen in C:\Program Files (x86)

But in 64Bit OS irrespective of the Office Bit always the default installation path is pointing to C:\Program Files (x86).
SO if user selects this path when user has 64bit office, Shim will not be loaded properly and also the uninstallation is not done.

Can we condition [ProgramFilesFolder][Manufacturer]\[ProductName] ????? How to handle this ?????
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Instalation based on Office bit

Hello,

I'm afraid I don't fully understand your scenario. Can you please give us more details about your scenario (maybe exemplify) and about what you want to achieve?

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
bchetana
Posts: 95
Joined: Sat Dec 01, 2012 11:36 am

Re: Instalation based on Office bit

We have a Shim.dll (one for 32bit office and other for 64bit office).

So I want the user to install my product in office installed folder. This is mainly required in 64Bit OS
64bit OS has two folders- Program File and Program File(x86).

If office 32bit is installed, by default the office installed path will be Program File(x86) [Its a 32bit Folder] and
if office 64bit is installed by default the office installed path will be Program File [64bit specific folder]

example : Consider 64Bit OS - Office 64bit
I have a Custom function which will read the register and return the office bit. We load the shim.dll based on this condition.
By default my installation default path shows c:\Program File(x86), The user continue with the installation. The installation succeeds but the add-in doesn't show up in Excel because it is installed in Program File(x86) [Its a 32bit Folder] .

So, I want to change my default path based upon my condition
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Instalation based on Office bit

Hello,

In order to achieve what you want you can add the related dll in "Program Files" and "Program Files 64" folders. Then, in "Organization" page you should condition the installation of shim.dll (from "Program Files") component using a condition like this:

Code: Select all

(NOT VersionNT64 AND Office_32bit) OR (VersionNT64 AND Office_32bit)
Also, you should condition the installation of shim.dll (from "Program Files 64") component using a condition like this:

Code: Select all

(VersionNT64 AND Office_64bit)
Please take a look on our "Install resources based on the OS version" article which should be useful for you.

Let us know if this helped.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
bchetana
Posts: 95
Joined: Sat Dec 01, 2012 11:36 am

Re: Instalation based on Office bit

ThnQ for the reply .. I have done this

But I was asking about the conditioning the default path (Installed Path). I want to change the default path based the codition
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Instalation based on Office bit

Hello,

If you want to set the Application Folder (i.e. APPDIR property) based on condition you can add two "Set installer properties", scheduled after "Wizard Dialogs Stage -> Paths Resolution" action group, like this:
  • Property: APPDIR
    Formatted: [ProgramFilesFolder]
    Condition: Condition1

    Property: APPDIR
    Formatted: [ProgramFiles64Folder]
    Condition: Condition2
Also, you should use a mixed 32/64-bit package type.

Let us know if this helps, otherwise please give us more details about what you want to achieve (maybe exemplify)?

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

Return to “Common Problems”