[THIN] Explorer.exe shell question

  • From: "Nikolic, Aleks" <ANikolic@xxxxxxxxxxxxxxxxxxx>
  • To: thin@xxxxxxxxxxxxx
  • Date: Thu, 5 Jun 2003 12:14:41 +0200

Hi All,

Our setup:

W2K SP2+Hotfixes
Citrix Metaframe XP 1.0 SP2 FR2
Published Applications + Desktop

We have an application in which users can browse to attached documents on a
network drive. When the user clicks this icon, it tries to open explorer.exe
and yes opens a Desktop instead of the Explorer. when the user immediately
tries this the second time, Windows detects Explorer.exe (a desktop) is
running and opens the (file)explorer as intended.

I found an article on the Citrix site, it's this article on which my
question is based:
The article:
------------------------------------------------------------------------
I had this problem as well. Looking into this, I saw no real-world 
solutions available. Citrix says "Tell your users not to email UNCs" and 
that these are the only work-arounds available until Microsoft fixes their 
code. (CTX991230)

However, they do mention in CTX991230 steps to use Internet Explorer as an 
"Explorer" replacement. Even though this didn't fit our needs, we 
modified this somewhat to come up with this solution.

We already publish a Windows Explorer and you may have to modify these 
registry entries to tailor them to your particular environment. This 
example has a Data drive (W:) and a copy of EXPLORER.EXE renamed to 
PUBEXPLORER.EXE located in W:\Apps\Explore.

1. HKEY_CLASSES_ROOT\Folder\shell\explore\command
(Default) REG_EXPAND_SZ 
W:\Apps\Explore\Pubexplore.exe /e,/idlist,%I,%L

2. HKEY_CLASSES_ROOT\Folder\shell\open\command
(Default) REG_EXPAND_SZ 
W:\Apps\Explore\Pubexplore.exe /idlist,%I,%L

3. HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Folder\shell\explore\command
(Default) REG_EXPAND_SZ 
W:\Apps\Explore\Pubexplore.exe /e,/idlist,%I,%L

4. HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Folder\shell\open\command
(Default) REG_EXPAND_SZ 
W:\Apps\Explore\Pubexplore.exe /idlist,%I,%L

5. HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows 
NT\CurrentVersion\Terminal 
Server\Install\Software\MICROSOFT\Office\9.0\Outlook\Prefereces
InternetBrowserPath REG_SZ 
W:\Apps\Explore\pubexplorer.exe

6. HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows 
NT\CurrentVersion\Terminal 
Server\Install\Software\Microsoft\office\9.0\Common\Open Find\Microsoft 
Outlook\Settings\Locate Link Browser\File Name MRU
Value 
hex(7):77,3a,5c,61,70,70,73,5c,65,78,70,6c,6f,72,65,00,00,

7. HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows 
NT\CurrentVersion\Terminal 
Server\Install\Software\Microsoft\office\9.0\Common\Open Find\Microsoft 
Outlook\Settings\Locate Link Browser\File Name MRU
Maximum Entries dword:0000000a

8. HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows 
NT\CurrentVersion\Terminal 
Server\Install\Software\Microsoft\office\9.0\Common\Open Find\Microsoft 
Outlook\Settings\Locate Link Browser\View
Data 
hex:03,00,00,00,14,00,00,00,01,00,00,00,01,00,00,00,01,00,00,00,00,00,00,00
,03,00,00,00,28,00,00,00,14,00,00,00,14,00,00,00,14,00,00,00,0b,00,00,00,01
,00,00,00,00,00,00,00,01,00,00,00,00,00,00,00,01,00,18,00,00,00,00,00,41,00
,06,00,0b,00,00,00,00,00,00,00,00,00,00,00,01,00,00,00,ff,ff,ff,ff,08,00,00
,00,00,00,00,00,e8,b0,06,00,0b,00,00,00,00,00,00,00,00,00,00,00,01,00,00,00
,ff,ff,ff,ff,08,00,00,00,00,00,00,00,e8,b0,06,00,0b,00,00,00,00,00,00,00,00
,00,00,00,01,00,00,00,ff,ff,ff,ff,08,00,00,00,00,00,00,00,e8,b0,06,00,0b,00
,00,00,00,00,00,00,00,00,00,00,01,00,00,00,ff,ff,ff,ff,08,00,00,00,00,00,00
,00,e8,b0,06,00,0b,00,00,00,00,00,00,00,00,00,00,00,01,00,00,00,ff,ff,ff,ff
,08,00,00,00,00,00,00,00,e8,b0,06,00,0b,00,00,00,00,00,00,00,00,00,00,00,01
,00,00,00,ff,ff,ff,ff,08,00,00,00,00,00,00,00,e8,b0,06,00,0b,00,00,00,00,00
,00,00,00,00,00,00,01,00,00,00,ff,ff,ff,ff,20,00,00,00,00,00,00,00,e8,b0,06
,00,0b,00,00,00,00,00,00,00,00,00,00,00,01,00,00,00,ff,ff,ff,ff,08,00,00,00
,00,00,00,00,e8,b0,06,00,0b,00,00,00,00,00,

Keys 1-4:
These keys replace Explorer.exe with your copy of Pubexplorer.exe. All 
the switches and variables remain the same. When you click on UNCs, these 
are the keys that are used to determine what to do with them.
Keys 5-8:
When I implemented Keys 1-4 ONLY then clicked on a UNC link, I got a 
dialog box for "Locate Link Browser" and would have to browse to 
W:\Apps\Explore\Pubexplorer.exe. Keys 5-8 eliminate the need to do that.
**Important: If you have different drive letters and path locations, this 
will need to be modified. (Especially Key 6 and possibly 8)
---------END OF ARTICLE----------------
We already had published the explorer as an application
(N:\Applications\Explorer\MFExplorer.exe).
The question:
I tried to adjust the first 2 regkeys in CLASSES ROOT to :
N:\Applications\Explorer\MFexplorer.exe /e,/idlist,%I,%L (keys 3 and 4
change "automatically")
Now when I click the the browse button nothing happens!!! The Desktop nor a
Explorer are started.
When I remove the /idlist switch it works! The file explorer is opened and
not the desktop. After some testing I got the best results just using 
N:\Applications\Explorer\MFexplorer.exe %L  This opens the file explorer on
the network drive I want it to.
What do the "/e,/idlist,%I,%L " switches stand for? (/e = Opens Windows
Explorer in its default view) M$ tells me nothing more. 
And more important can I just change my shell to
N:\Applications\Explorer\MFexplorer.exe %L  without complety messing up my
Terminal Server?
Any thoughts, tips, experience on this topic?
Thanks in advance,
Aleks
- - - - - 






This e-mail message has been scanned for Viruses and cleared by RAV
Antivirus!

********************************************************
This Week's Sponsor - Appsense Technologies
New! AppSense Optimizer is a new product from AppSense 
designed to increase the user capacity of your servers. 
http://www.appsense.com/
**********************************************************
Useful Thin Client Computing Links are available at:
http://thethin.net/links.cfm

For Archives, to Unsubscribe, Subscribe or 
set Digest or Vacation mode use the below link:
http://thethin.net/citrixlist.cfm

Other related posts: