The "Allow Only One instance Of Application For Each User" Option Does Not Work
Saturday, 17 February 2007 by Michel Roth
Stuff to know about: After Citrix MetaFrame XP Feature Release 3, there has been a design change that prevents Presentation Server from tracking applications that aren’t launched from the ICA Client. Any application launched through another (through a published command line or a Visual Basic script or another method) is not tracked. This prevents the published application from appearing in the Presentation Server Console. It also prevents application limits from working.

Reason for the Design Change
Before Presentation Server 3.0, MetaFrame 1.0 kept track of all processes opened by the published application. This meant that the Allow only one instance of application for each use option also prevented any other instances if a process called by the published application was still running. This meant published applications that needed to open instances of another application could not be restarted after being shut down unless the other application was closed first.

An example of this would be if a document attachment in Microsoft Outlook was opened, then Outlook was closed with the attachment still open. MetaFrame would not allow another instance of Outlook to be run until the attachment was closed.

Effects of the Design Change
This design change means that if you run an application by calling it from a published batch file, the actual initial process is cmd.exe instead of the executable of the application. Once the application is called by the batch file, cmd.exe closes. This also could happen with other executables or Visual Basic scripts.

Because Presentation Server only tracks an application opened by the ICA Client, it regards the instance of the published batch file as closed. Unless a command is added to keep the cmd.exe process held open, there is no limit on the application's instances.

There's a solution. Read about it in CTX110325.

Related Items:

How to Enable A Citrix Server to Check for the Application Limit Instance Twice (17 January 2007)
What Happens When You Close A Windows 2008 RemoteApp? (28 September 2007)
A Free Tool Do Deal With Orphaned Processes In Citrix Sessions (15 October 2007)
Changed Printer Settings Are Not Saved (4 August 2005)
Microsoft CRM 3.0 On Citrix Presentation Server 4.0 (9 March 2006)
Preventing The Explorer.exe From Launching In Shell Mode (3 March 2006)
Alt-Printscreen Does Not Work In A Non-seamless Session (19 January 2006)
Presentation Server Published Application Execution Weakness (15 November 2007)
Methods For Upgrading Or Updating Virtualized Applications (25 September 2007)
How To Speed Up The Logon And Log Off Process (25 July 2006)
Comments (0)