Harish
Posts: 35
Joined: Tue Dec 27, 2005 9:25 am

Checking for MTS

Hi,

How do i check for MTS MAJOR version=131072 & MINOR version=532 or greater than that. From registry we can the value of MTS at the following path.
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Transaction Server\Setup(OCM)\Product Version\major
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Transaction Server\Setup(OCM)\Product Version\minor.


Thanks,
Harish.Y
Ionut
Posts: 605
Joined: Tue Nov 22, 2005 11:29 am
Contact: Website

Hi,

If you need to abort the installation if the specified version of MTS is not available, then you can use a Launch Condition and 2 Registry Searches:

1. Use the Search Wizard to create each Registry Search. Name the 2 properties that will hold the result "MTS_MAJOR" and "MTS_MINOR", respectively.

2. In the Launch Conditions page, click the "New" button. Set the Condition to:

Code: Select all

(MTS_MAJOR = "131072") AND (MTS_MINOR >= "532")
Hope this helps.

Regards,
Denis
Denis Toma
Advanced Installer Team
http://www.advancedinstaller.com/
Harish
Posts: 35
Joined: Tue Dec 27, 2005 9:25 am

Its not working!

Its throwing an error.

Thanks,
Harish.Y
Ionut
Posts: 605
Joined: Tue Nov 22, 2005 11:29 am
Contact: Website

Hi,

Is this the Launch Condition error message? If not, please give me more details about this error.

It might be helpful to see the value of your properties before the Launch Condition is executed. In order to do this add 2 "Script Inline" Custom Action on the "AppSearch" Standard Action from the InstallUISequence (not InstallExecuteSequence, because it would be too late). Set the Script Text to:

Code: Select all

MsgBox Session.Property("MTS_MAJOR")
and respectively:

Code: Select all

MsgBox Session.Property("MTS_MINOR")
Regards,
Denis
Denis Toma
Advanced Installer Team
http://www.advancedinstaller.com/

Return to “Common Problems”