Install prerequisite exe if Office 2010 32bit present - Advanced Installer Community
securigy
Posts: 1
Joined: Thu Sep 11, 2014 10:33 pm

Install prerequisite exe if Office 2010 32bit present

I am trying to add to my installer the installation of Language Proofing Tools for Office 2010 32bit.
The file is exe and should be executed with switches /quiet /passive /norestart
I can't find a way to do that - that is, this file should be copied to user's machine and executed there only if that machine has Office 2010 32-bit installed.
The latter is recognized on Win7 x64 by registry key with specific value:
HKLM\SOFTWARE\Wow6432Node\Microsoft\Office\14.0\Outlook\Bitness x86

However, when I add this as prerequisite I cannot properly use these conditions since there are only options:
- "Install only if at least one condition is false" - this one does not fit me...
- "Install if all conditions are false" - does not suite me either...
If Office 2010 32bit exists on user machine the proofing tool file should be copied and installed (not the opposite when Office does not exist)

So what do I do here?
Is there any other way?
I have been thinking about adding it as a custom action but then I need to copy both files (for 32- and 64-bit) to the user machine (30 MB) and without even knowing if Office is installed there...
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Install prerequisite exe if Office 2010 32bit present

Hi and welcome to Advanced Installer forums.

In order to achieve what you want you can use a negative condition like "Registry value does not exist". In this case you will have double negation which will give a true result.

Let us know if this helped, otherwise give us more details about your scenario.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”