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.
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.
Complete one of the following workarounds to successfully publish Explorer.exe in a New XenApp 6.x Farm Windows 2008 R2 x64-bit:
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)
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.
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
This issue might occur if Windows 2008 R2 does not allow the Explorer dll to open in shell mode.