Publish Explorer.exe in a New XenApp 6.x Farm

Publish Explorer.exe in a New XenApp 6.x Farm

book

Article ID: CTX131423

calendar_today

Updated On:

Description

This article contains procedure to publish Explorer.exe in a New XenApp 6.x Farm Windows 2008 R2 x64-bit.
When publishing Explorer.exe either with the direct path "c:\windows\explorer.exe" or "%windir%\explorer.exe, the application starts to load and at finish, the window terminates displaying a box with drive letters.

Publishing the Explorer as an internet.exe /e /n (and so on) does not work.

There are no event logs generated.

Requirements

Download AutoIt, from here.

CTX922603 - How to Publish Explorer.exe with Specific Drives, Folders, or URLs

Note: See here for more on -e switch being obsolete as of Internet Explorer 7.

Environment

Caution! Using Registry Editor incorrectly can cause serious problems that might require you to reinstall your operating system. Citrix cannot guarantee that problems resulting from the incorrect use of Registry Editor can be solved. Use Registry Editor at your own risk. Be sure to back up the registry before you edit it.

Resolution

Complete one of the following workarounds to successfully publish Explorer.exe in a New XenApp 6.x Farm Windows 2008 R2 x64-bit:

Workaround 1

Use the following code in AutoIt:

Dim $PIDIE

$PIDIE = Run( "C:\Program Files\Internet Explorer\IEXPLORE.EXE", @SW_MINIMIZE)
Sleep(2000)
Run("C:\Windows\explorer.exe H:\")
Sleep(2000)
ProcessClose($PIDIE)
Sleep(2000)

Workaround 2

Browse to the registry of the affected server and add the following registry key:

HKEY_LOCAL_MACHINESYSTEM\CurrentControlSet\Control\Citrix\Wfshell\TWI
DWord (32bit) – LogoffCheckerStartupDelayInSeconds
Set it to a value of 10.

The setting is active for every subsequent session launched, a restart is not necessary.

Workaround 3

Add the following ADM-Template to your XenApp Policy: 

CLASS MACHINE
CATEGORY "Citrix Settings"
KEYNAME "SYSTEM\CurrentControlSet\Control\Citrix\wfshell\TWI"
POLICY "Startup Delay"
PART "Set delay" NUMERIC REQUIRED SPIN 1
VALUENAME "LogoffCheckerStartupDelayInSeconds"
END PART
END POLICY
END CATEGORY

Problem Cause

This issue might occur if Windows 2008 R2 does not allow the Explorer dll to open in shell mode.

Issue/Introduction

This article contains possible workarounds to succesfully publish Explorer.exe in a new XenApp 6.x farm.

Additional Information

CTX922603 - How to Publish Explorer.exe with Specific Drives, Folders, or URLs

Key features by area

AutoIt Downloads