tburkins
Posts: 6
Joined: Fri Nov 04, 2011 5:33 pm

Windows MultiPoint Server Launch Condition

Hello,

I'm trying to figure out how to set up a launch condition to allow installation on Winodws MultiPoint server, but not other versions of Windows Server. According to Microsoft, the correct way to detect if the OS is MultiPoint server is to call the GetProductInfo function in kernel32.dll. GetProductInfo takes a pointer to a DWORD that returns the product type. If the returned product type is PRODUCT_SOLUTION_EMBEDDEDSERVER (0x00000038) then it is a Windows Multipoint Server. My question is how can I turn this into a launch condition for my installation?

Thank you in advance for any help,

Terry
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: Windows MultiPoint Server Launch Condition

Hi Terry,

The only way you can communicate with the installer from your code is by using Windows Installer properties. For this you will need to create a DLL that exports
a function after the following model, and from this function you can call "GetProductInfo" and set a property based on its result.
http://www.advancedinstaller.com/user-g ... n-dll.html

Once you have the property set by your custom action, which should be scheduled under "Begin" standard action from InstallUISequence, you can configure the
launch condition as explained here:
http://www.advancedinstaller.com/user-g ... -user.html

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”