[THIN] Re: Applications Listed in the Presentation Server Console

  • From: "Carl Stalhood" <cstalhood@xxxxxxxxxxxxx>
  • To: <thin@xxxxxxxxxxxxx>
  • Date: Thu, 17 Aug 2006 19:54:10 -0500

Have you seen this?

 

Published Applications Do Not Appear in the Citrix Management Console

 


Document ID:

CTX102683


Created:

Oct 9, 2003


Updated:

Sep 14, 2005


Products:

Citrix MetaFrame XP 1.0 for Microsoft Windows 2000, Citrix MetaFrame XP 1.0
for Microsoft NT 4.0 Server Terminal Server Edition, Citrix MetaFrame XP 1.0
for Microsoft Windows 2003, Citrix MetaFrame Presentation Server 3.0 for
Microsoft Windows 2000, Citrix MetaFrame Presentation Server 3.0 for
Microsoft Windows 2003, Citrix Presentation Server 4.0 for Microsoft Windows
2000, Citrix Presentation Server 4.0 for Microsoft Windows 2003 

Issue

Published applications don't appear in the Citrix Management Console.

Cause

A published application is an executable that calls another executable and
then terminates (for example, to publish the Citrix Management Console, you
publish Ctxload.exe, but the executable that stays running is Javaw.exe) and
the user already has a session open with another application that is used by
only one executable (that is, Microsoft Word uses only Winword.exe).

The Citrix Management Console tracks the executable that is published, in
this case, Ctxload.exe. Because Ctxload.exe calls Javaw.exe and then unloads
itself from memory, the Citrix Management Console thinks that Ctxload.exe is
no longer running and stops displaying that information.

Steps to Reproduce

1. Publish Notepad (\WINNT\notepad.exe).

2. Publish the Citrix Management Console on the same server (\Program
Files\Citrix\Administration\ctxload.exe).

3. Open Notepad as a published application.

4. Open the Citrix Management Console as a published application.

Under Sessions you see only a session for Notepad, but under the executables
you see Notepad.exe and Javaw.exe.

Resolution

This behavior was originally by design.

For MetaFrame XP, install Post Service Pack 3 Hotfix XE103W2K056 or its
equivalent and apply the registry changes outlined below.

MetaFrame Presentation Server 3.0 and Presentation Server 4.0 includes the
fixes introduced in MetaFrame XP Post Service Pack 3 Hotfix XE103W2K056, but
the registry changes below must still be applied.

27. If a published application was a program that created a new process and
then terminated itself, the published application appeared in the Citrix
Management Console. However, in a seamless session the application was
launched through session sharing, the application appeared in the Citrix
Management Console but then disappeared.

By default, the thread that checks the process cares about only the first
instance of the launched process. The thread regarded the published
application as terminated when the first instance of the process was
terminated even if that process created a separate process.

This fix provides a way to configure those published applications to use the
JOB object so that additional processes created by the initial process are
considered as published applications.

For this fix to work properly, you need to perform the following steps:

If the command line of the published application is [ApplicationPath], go to
the following registry key and make changes as necessary:

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Citrix\wfshell\TWI\Start
InJobObject

Key Value: [ApplicationPath]

Type: DWORD

Value: 0 

. For example, if the command like specified for the published application
is c:\notepad.cmd, go to the following registry key and make changes as
necessary:

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Citrix\wfshell\TWI\Start
InJobObject

Key Value: c:\notepad.cmd

Type: DWORD

Value: 0

For those applications whose command line is specified in the
StartInJobObject key, the published application will not disappear from the
Citrix Management Console until all of the processes created by the process
are terminated.

[From Hotfix XE103W2K056][#63894]

Note:

If the path to the script that launches the application contain spaces, such
as c:\program files\test.cmd, add quotation marks around the Key Value:

"c:\program files\test.cmd"

CTX107592 - Citrix
<http://support.citrix.com/article/entry.jspa?entryID=7877>  Management
Console Does Not Show Connected Users Under the Individual Server Node

http://support.citrix.com/article/CTX102683
<http://support.citrix.com/article/CTX102683&searchID=27102328>
&searchID=27102328 

 

  _____  

From: thin-bounce@xxxxxxxxxxxxx [mailto:thin-bounce@xxxxxxxxxxxxx] On Behalf
Of Joe Shonk
Sent: Thursday, August 17, 2006 12:49 PM
To: thin@xxxxxxxxxxxxx
Subject: [THIN] Applications Listed in the Presentation Server Console

 

Hello,

 

Has anyone run into an issue in which the Published application does not
appear in the Presentation Server Console.  Only those Published
Applications that launch a script/batch file seem to be affected.

 

I found a similar issue in the archives, but that was for XP FR3/SP4 Rollup
1.   This environment is PS4 Rollup 1.

 

Thanks,

 

Joe

Other related posts: