views:

142

answers:

2

Hello All,

I am working on a installer, it should check FUS (Fast user switching) is enabled or not on the XP system. If FUS is enabled then installer should exit, otherwise perform the actual installation. My question is there any command line utility (or API) to check if FUS is enabled on XP?

Thanks..

+3  A: 

The vast majority of your users (assuming an average target market) will have Fast User Switching enabled, and will not know how to disable it and possibly not want to either. By doing this, you will annoy your customers and eliminate a large potential target market.

Why do you want to do this in the first place?

To do it, check the following registry key: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\AllowMultipleTSSessions.

If FUS is enabled, it will equal 1.

SLaks
Thanks for the response. My purpose not to disable the FUS. If FUS is enabled then installer will prompt a message to the user that the application won't work with FUS enabled then quits.
kingas
The purpose is one of our Authentication mode adds our customized ginaDLL and it causing the FUS option in control panel to be grayed out. There is no way to disable FUS for the user. So we would like to check if FUS is enabled or not before installing our product.
kingas
A: 

I believe that it is disabled once the machine is joined to a domain (not sure if this can be overriden), so you may want to check that in addition to the registry key mentioned by SLaks.

RedFilter
You are correct, and it cannot be overriden. However, it should be reflected in that registry key.
SLaks
My purpose is read AllowMultipleTSSessions value only to know if FUS is enable dot not. So I think I am okay.
kingas