VMware

Step by Step Instructions on How to ThinApp JAVA Runtime version 1.3.1.20 | Main | Step by Step Instructions on How to ThinApp Microsoft .NET Framework

October 30, 2008

Running explorer.exe inside the bubble

Normally Windows OS only allows you to run one instance of explorer.exe. This makes it a little more complicated to add an entry point to Explorer and launch it inside the bubble.

There is two ways of launching an Explorer windows inside the bubble.

Alternative 1:
Add an entry point to IExplorer and launch it with the -E parameter.
In package.ini
[iexplore.exe]
Shortcut=xxxx.exe
Source=%ProgramFilesDir%\Internet Explorer\iexplore.exe
CommandLine=%ProgramFilesDir%\Internet Explorer\iexplore.exe -E

Alternative 2:

Add virtual reg key:
isolation_full HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer
  Value=DesktopProcess
  REG_DWORD=#01#00#00#00

in Package.ini
[explorer.exe]
Shortcut=xxxxxx.exe
Source=%SystemROOT%\explorer.exe

Advantages:
Browse virtual file system using familiar interface
Enables correct file type associations without system changes (great for portable apps)
Access shell-integrated components without system changes

TrackBack

TrackBack URL for this entry:
http://www.typepad.com/services/trackback/6a00d8341c328153ef010535cae93d970c

Listed below are links to weblogs that reference Running explorer.exe inside the bubble:

Comments

Dinant Scholte in 't Hoff

Ok, I understand. But what if there is no explorer.exe process running. We use the Powerfuse shell, so there is no explorer.exe running. How to virtualize explorer.exe when there is no explorer.exe running?
Our work-around at this moment is to use iexplore.exe instead of explorer.exe.

Peter Bjork

You should be able to add explorer.exe to your bubble and use that to start the explorer but as far as I know IExplorer.exe -E works just as well.

Dinant Scholte in 't Hoff

Starting explorer.exe in the bubble with no explorer.exe running results in explorer being started in taskbar mode instead of browse mode. And because the Powerfuse shell is the default shell the windows shell isn't visible.

Dean Flaming

Dinant-

That is a hard coded setting in Windows Explorer. What EXPLORER is doing is checking for itself as a process in the process list. If it doesn't see itself already running, it will launch itself as a shell (task bar/start menu).

To get around this "feature" of Explorer, rename the copy of EXPLORER.EXE which you put into your package to something like "THINAPP EXPLORER.EXE" and just reset your entry point to launch that instead.

Happy ThinApping!

Dinant Scholte in 't Hoff

Dean,

I tried that before, but I have problems with this solution. E.g. we use RES Powerfuse. Powerfuse already makes a copy of explorer.exe called pexplorer.exe. Starting pexplorer.exe in the bubble sometimes the explorer window is shown sometimes it isn't. I can't get it stable launched.

Dean Flaming

I don't know why I didn't think to try this before.

One could also utilize a 3rd party file explorer such as A43 (http://www.primitus.us/a43/). Just copy the supporting files into the package and create an entry point for it.

I just tested A43 and it worked flawlessly.

Dan

Dean, What entry point would you add in then if you are going to use a43?

Thanks

Toby Fruth

Are iexplore and explorer the only EXE's that should be fired off via the bubble? For instance, I want users to be able to click the email button in a packaged version of Acrobat. Currently, whenever trying this feature, the Windows Installer launches for a moment, then an error appears stating that there is no email client or that it couldn't be found. Of course, we're using 64-bit Windows 7, and the registry enrty for the Outllok client points to c:\progra~2. I added a Merged registry entry to the package for HKLM\Software\Clients, but it isn't helping. I've tried ChildProcessEnvironmentExceptions=svchost.exe;OUTLOOK.EXE;fixmapi.exe and ChildProcessEnvironmentDefault=Virtual in Packag.ini, no luck. So now I'm considering launching Outlook via the bubble. I am also considering importing that portion of the registry in to the project.

Toby Fruth

Perhaps this article contains pertinent information:

http://blogs.vmware.com/thinapp/2008/10/creating-window.html

Peter Björk

Anything can be launched inside a bubble. But you shouldn't have to do it.. I bet you can tweak the project so it supports integration with native Outlook.. Please post questions in the community instead of using the blog posts: http://communities.vmware.com/community/vmtn/desktop/thinapp?view=discussions&start=0
You are much more likely to get help via the community.

Post a comment

If you have a TypeKey or TypePad account, please Sign In.

About this Blog

VMware ThinApp lets you deliver and deploy applications more efficiently, more securely, and more cost-effectively with agentless application virtualization.

Subscribe via RSS  

Or submit your email for updates:

End-User Computing Blog


Read additional blog posts for VMware ThinApp on the VMware End-User Computing Blog.

Visit Now

Search ThinApp Blog

Community


Discussions and resources for VMware ThinApp

Visit now

Twitter


Facebook

YouTube


    VMware Blogs