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
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.
Posted by: Dinant Scholte in 't Hoff | October 31, 2008 at 09:21 AM
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.
Posted by: Peter Bjork | November 02, 2008 at 04:18 AM
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.
Posted by: Dinant Scholte in 't Hoff | November 03, 2008 at 11:56 AM
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!
Posted by: Dean Flaming | November 06, 2008 at 12:18 PM
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.
Posted by: Dinant Scholte in 't Hoff | November 08, 2008 at 03:30 AM
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.
Posted by: Dean Flaming | February 26, 2009 at 12:11 PM
Dean, What entry point would you add in then if you are going to use a43?
Thanks
Posted by: Dan | August 19, 2009 at 06:17 AM
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.
Posted by: Toby Fruth | August 16, 2011 at 06:40 AM
Perhaps this article contains pertinent information:
http://blogs.vmware.com/thinapp/2008/10/creating-window.html
Posted by: Toby Fruth | August 16, 2011 at 08:27 AM
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.
Posted by: Peter Björk | August 17, 2011 at 06:01 AM