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!

shetty_rohan
Posts: 363
Joined: Fri Dec 07, 2012 5:28 am
Location: Bangalore, India
Contact: Website

How to detect Outlook 2007 SP1 or SP2 is installed

Hi,
Is there a easier way to check whether Outlook 2007 SP1 or Outlook 2007 SP2 is installed?

I have added a new feature(say Organization->Product->New Feature->Outlook-Add-in).

Basically, I need to do the following

Code: Select all

if (Selected(Outlook Add-in))
{
    If Installed(Outlook 2007)
    {
        If Installed(Outlook 2007 SP1) or Installed(Outlook 2007 SP2)
        {
            Continue with the installation
        }
        else
        {
             Display an Error Message
             Terminate Setup
         }
    }
    else
    {
          Continue   
    }
}
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: How to detect Outlook 2007 SP1 or SP2 is installed

Hi Rohan,

I'm not sure what registry entries are created/updated when the Service Pack 1 or Service Pack 2 are applied for the Office 2007.

However, during my test I've noticed this.
I've installed Office 2007 Ultimate with SP1 applied. Export the HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Office\12.0 created by the Office 2007.

Then, I've installed the The 2007 Microsoft Office Suite Service Pack 2 (SP2) and I exported once again the related key. After I've made the diff between those .reg files I've noticed that the content of the [HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Office\12.0\Common\ProductVersion] key has been updated. (other registry kay were updated too, but this one seems to be the most relevant - for me).

Before Service Pack 2 install it was:

Code: Select all

"LastProduct"="12.0.6215.1000"
After Service Pack 2 install it was:

Code: Select all

"LastProduct"="12.0.6425.1000"

Try to see if these are the registry values corresponding to SP1 and SP2.

EDIT: Also the registry value of the SPLevel its updated from SP1 to SP2. This registry can be found here:

Code: Select all

HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Office\12.0\Registration\GUID
Then, you can use a Registry value with a specified content Extended Search from the Search page. The result is given by the presence of a registry value with a certain content. You will be given the option to specify how the comparison is made.

If you need any help, please let me know.

Bet regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
shetty_rohan
Posts: 363
Joined: Fri Dec 07, 2012 5:28 am
Location: Bangalore, India
Contact: Website

Re: How to detect Outlook 2007 SP1 or SP2 is installed

Thanks for your help.
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: How to detect Outlook 2007 SP1 or SP2 is installed

You're welcome,

If you need any help, please let me know.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
shetty_rohan
Posts: 363
Joined: Fri Dec 07, 2012 5:28 am
Location: Bangalore, India
Contact: Website

Re: How to detect Outlook 2007 SP1 or SP2 is installed

Hi Dan,

I have created the registry search to get the "Service pack version"[i.e. - Outlook_2007_basic_installed - means SP1 or SP2 are not installed], Now I need one more help

- I have a setup with 3 features DC, TSP, Addin
- If the user clicks(checks) on the Addin, then it just needs to check Outlook_2007_basic_installed. if the value is true, then display an error and terminate the installation

Should I do this as part of the CutomizePage->QuickSelectionTree->PublishedEvents->Custom action->Published Events. Here, I could not a way to display a messagebox.



Regards,
Rohan
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: How to detect Outlook 2007 SP1 or SP2 is installed

Hi Rohan,

In order to be able to execute the display message box predefined custom action as a published event you can add this custom action as a custom action without sequence in the Custom Actions page. After the custom action has been added without sequence it can be selected in the Edit Control Events Dialog to be executed as a published event. You can condition the execution of the custom action through the condition field.

Please take a look on the How do I execute a custom action when a button is pushed? article with related information for hints and guidance.

Please let me know if that helped.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
shetty_rohan
Posts: 363
Joined: Fri Dec 07, 2012 5:28 am
Location: Bangalore, India
Contact: Website

Re: How to detect Outlook 2007 SP1 or SP2 is installed

Thanks. I will try this, and get back to you.
shetty_rohan
Posts: 363
Joined: Fri Dec 07, 2012 5:28 am
Location: Bangalore, India
Contact: Website

Re: How to detect Outlook 2007 SP1 or SP2 is installed

Thanks, it worked.
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: How to detect Outlook 2007 SP1 or SP2 is installed

You're always welcome Rohan,

If you have other questions, please let us know.

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

Return to “Building Installers”