Terminal Server plug-in

Interested in developing new plug-ins? Got one to share? Post here!
casic
Posts: 258
Joined: Thu Mar 17, 2005 4:02 am
Location: Germany
Contact:

Terminal Server plug-in

Postby casic » Tue Jul 08, 2008 5:26 pm

Image
This plug-in provides several Terminal Server functions:

    • Check whether Terminal Services are installed
    • Check for active Installation Mode
    • Check for active Execution Mode
    • Switch to Installation Mode
    • Switch to Execution Mode
You can download mdPLUGINS for InstallAWARE here...

For more information please visit the official product site:

English: mdPLUGINS for InstallAWARE
German: mdPLUGINS for InstallAWARE

If you have any suggestions or comments please post to this thread so I get notified :-) or use the new forum at CASIC.de (English/German).

Cu

Markus
Last edited by casic on Sat Aug 15, 2015 6:06 am, edited 2 times in total.
Markus Diettrich
InstallAware MVP
If it can't be done with InstallAWARE then you are not using Windows

drewau
Posts: 27
Joined: Tue Aug 05, 2008 10:29 pm
Location: Australia

Postby drewau » Tue Aug 04, 2009 9:44 pm

Hi Markus,

We have an issue with this plugin on one of our Test servers.
It's running 2003 SP2 in Remote Administration mode.

When I check with the plugin to see if Terminal Services is Installed, it returns true. If I check in Add/Remove Programs - TS checkbox is not ticked.

I was wondering if you could tell me how it checks if TS is installed, so I can run the test manually on this server in an attempt to see where it's falling over.

Thanks,

Drew.

casic
Posts: 258
Joined: Thu Mar 17, 2005 4:02 am
Location: Germany
Contact:

Postby casic » Wed Aug 05, 2009 6:17 am

Hi Drew,

to determine whether Terminal Services are installed or not, the API function VerifyVersionInfo() is used. The first paramter of VerifyVersionInfo() is set to the OSVERSIONINFOEX structure. The field wSuiteMask of this structure is set to #VER_SUITE_TERMINAL. The second parameter of VerifyVersionInfo() is set to #VER_SUITENAME and the last parameter is the result of the VerSetConditionMask() function, which is called with the parameters #VER_SUITENAME and #VER_AND.

Hope this helps,

Cu

Markus
Markus Diettrich

InstallAware MVP

If it can't be done with InstallAWARE then you are not using Windows

drewau
Posts: 27
Joined: Tue Aug 05, 2008 10:29 pm
Location: Australia

Postby drewau » Thu Aug 06, 2009 4:43 pm

Thanks Markus,

I appreciate you taking the time to provide such detail.
Hopefully I'll get around to debugging this on the server in the next week or so. Will post up my findings for reference if I find anything out of the ordinary.

Cheers,

Drew.

drewau
Posts: 27
Joined: Tue Aug 05, 2008 10:29 pm
Location: Australia

Postby drewau » Wed Sep 02, 2009 11:34 pm

Hi Markus,

Finally got around to investigating this issue. Thought I would post up my findings.
I found to successfully determine if TS is installed on a server you need to call VerifyVersionInfo() twice.

The first time you call it, set wSuiteMask to #VER_SUITE_TERMINAL and get True or False.
The second call, set wSuiteMask to #VER_SUITE_SINGLEUSERTS and get True or False.

If the Server is running in Application Server Mode (Terminal Server Enabled), the 1st call with return True and the 2nd call will return False.

If the server is running in Remote Admin Mode (Terminal Server Disabled), both calls will return True.

If it's a desktop OS (XP/Vista), the 1st call returns false and 2nd returns true.

I can post up a test app written in Delphi that demonstrates this if you need further clarification.

Cheers,

Drew.

casic
Posts: 258
Joined: Thu Mar 17, 2005 4:02 am
Location: Germany
Contact:

Postby casic » Sat Sep 19, 2009 8:54 am

Hi Drew,

thank you very much for investigating this. Your solution has been implemented in the latest version von mdPLUGINS for InstallAware Version 1.2.7 and works great with Windows Server 2003/2008.

Thank you very much for your support,

Markus
Markus Diettrich

InstallAware MVP

If it can't be done with InstallAWARE then you are not using Windows

drewau
Posts: 27
Joined: Tue Aug 05, 2008 10:29 pm
Location: Australia

Postby drewau » Sun Sep 20, 2009 4:43 pm

Thank you very much for your support


Very happy to help out Markus :-)


Return to “Plug-In Development”

Who is online

Users browsing this forum: Bing [Bot] and 1 guest