Write up: Configuring Isolation Modes VMware KB article

January 16, 2010 by Jurjen van Leeuwen

This is a copy of a post I placed on www.appvirtguru.com in the ThinApp board.

In the VMware Knowledge Base there is a document explaining the different isolation modes for the file system and the registry inside the virtualization, how to configure these isolation modes and some possible issues you might run into when they are configured wrong for your application. Although most ThinApp-ers are aware of these isolation modes, the Sandbox and how to use them, it couldn’t harm posting some information here right?

The article: Configuring Isolation Modes for the File System and Registry in ThinApp

If you run into similar issues like the next, the KB article can be very useful to you:
For example:

When you try to virtualize a different version of a locally installed application and the virtual app does not work like you expect

  • When you’re trying to create a multiuser version of a typical single user application, for example to store per user settings
  • When you can’t read or write files on your local disk from inside your virtual application, typically the writes in locked-down desktops

The isolation modes allow you to dictate what registry locations and file system directories/files the virtual application can see or make changes to. These boil down to the following three isolation modes available to you as packager:
Isolation modes:

  • Full: The application can’t read or write to the physical location
  • Merge: The application reads and writes to the physical location
  • WriteCopy: The application reads from the physical location and writes to the virtual location(called the Sandbox)

These isolation modes are for both registry and file system.
More detailed information on the isolation modes you find here: Verifying isolation mode usage in ThinApp on kb.vmware.com.
This link also mentions: Configuration of isolation modes are stored in the Sandbox. If you rebuild your package it might be necessary to delete the Sandbox.

When selecting the default file system isolation mode the Setup Capture wizard you are provided with two options:

  • Modified Merged isolation mode:
    Is for applications your know and trust. The virtual application has full access to about every directory but the following directories are sandboxed:

    • %AppData%
    • %Local AppData%
    • %Common AppData%
    • %SystemRoot%
    • %SystemSystem%
    • %ProgramFilesDir%
    • %Program Files Common%
  • Modified WriteCopy isolation mode:
    Almost all directories are sandboxed accept the following:

    • %Desktop%
    • %Personal% (My Documents)
    • %SystemSystem%\spool

These modifications to the isolation modes should increase your success factor for creating ThinApp-ed versions of your applications.
The KB article I’m writing about now, covers the differences between setting the default isolation modes in the Setup Capture Wizard and using the configuration file Package.ini.
Some important notes on this:

  • The default file system isolation mode in the Setup Capture Wizard is (a modified) Merged mode
  • The default file system isolation mode in the Package.ini is WriteCopy without the modifications added by the Setup Capture Wizard when choosing the WriteCopy mode there
  • The Setup Capture Wizard does not allow for selecting the Full isolation mode as the default mode. (Because it isn’t such a good idea)
  • The Setup Capture Wizard does not provide an option to configure the default registry isolation mode
  • The default registry isolation mode in the Package.ini: WriteCopy

This is important to know when, for example, you’re not using the Setup Capture Wizard to create ThinApp packages.

When you created a project with the Setup Capture Wizard and you change the default isolation mode afterwards, the directories created during the Capture maintain the setting from the Setup Capture Wizard. So you have to change those directories manually.

The default isolation mode does not apply to network drives and removable media.

To change the isolation mode per directory or registry key check the ThinApp User Guide on VMware.com.

So that’s the KB article I guess. Hope it was of some use to you.

Xenocode: Multiple Platform Merge

November 9, 2009 by Jurjen van Leeuwen

I worked with Xenocode Virtual Application Studio several times for the Application Virtualization Solutions Overview and Feature Compare Matrix from Ruben Spruijt.

Last few days I was evaluating the latest version of Xenocode’s Virtual Application Studio(www.xenocode.com). Version 2010 to be exactly. There were lot of new features and one of them I wanted to share with you by using an application deployment issue introduced with Windows Vista.

The issue

As of Windows Vista (Windows Vista, Windows 2008, Windows 2008 R2 and Windows 7), Microsoft doesn’t ship Winhlp32.exe with the operating system anymore, needed to display the .hlp Help files with certain legacy applications. Instead a message is displayed how to resolve the issue which requires an optional download and installation, a privilege a user typically doesn’t have (and shouldn’t have in my opinion). The download is a platform specific Winhlp32.exe from the Microsoft download site. See the issue discussed here: http://support.microsoft.com/kb/917607

The message when trying to open a .hlp Help file in Windows 7:

Windows 7 Help file needs (winhlp32.exe)

Those of you skipping Windows Vista and are migrating their apps to Windows 7 might run in to this now.

By the way: 16-bit .hlp files are still supported in Vista and Windows 7.

A solution

Using application virtualization from Xenocode this time, I’ll show you how you can create ONE Xenocode virtualized application (and ONE file to distribute) supporting different operating systems. In this case I will use an application designed for Windows XP and display the help correctly on Windows XP and Windows 7.

Now, this post is not about how to virtualize with Xenocode but just to show you one of the cool new features in the 2010 version of their Virtual Application Studio.

The “How”

I found an older version of a known compression tool which uses an .hlp file for the help.

Using the Xenocode Virtual Application Studio 2010 I created two different snapshots:

- The installation of only WinRAR version 3.6 on Windows XP

- For Windows 7, I installed the same WinRAR application AND the WinHlp32 Windows Update for Windows 7. This last one is needed to view 32-bit .hlp help files on this platform.

In version 2010 of the Virtual Application Studio there is now an Advanced tab with a button Merge Platforms. When clicked, it allows for up-to five operating systems specific snapshots to be merged in to one snapshot.

When there is no need for a specific Windows 2003 configuration for example, it can just inherit it from one of the other snapshots. Windows XP in that case would be logical.

Next is to build the application into an executable and test it on Windows XP and Windows 7.

Remember that the Winhlp32.exe for Windows 7 won’t work on Windows XP and vice-versa. That’s why you would, in any other case, need two virtual applications to distribute. Using the Multi-Platform feature in Virtual Application Studio I can now use my legacy application on both Windows XP and Windows 7 with just one Xenocode executable.

WinXPHlp

Win7HlpFixed

The two arrows on both screenshots denote the virtualization with Xenocode Virtual Application Studio.

I used WinRAR 3.6b from RARLAB (http://www.rarlab.com), designed for the platforms Windows XP/2003. WinRar now uses a .CHM file for the Help so this is not an issue any longer, but the older version was a good test case.

Key new features in Xenocode Virtual Application Studio 2010:

- Windows 7 Compatibility

- Publish to Web

From the VAS Console you can publish virtual application to the internet, see http://spoon.net/ for more on this.

- Software Expiration

You can allow your applications to be used for a number of days or a specific date. To control this you can verify time against the system clock or a web server clock.

- Multi-platform capabilities

Merging different operating specific snapshots of an application to be distributed as a single Xenocode application

- New application templates

Application templates allow one-click virtualization of most popular software applications, including Office, OpenOffice, Firefox, and Internet Explorer.

Leodesk – Jurjen van Leeuwen

All trademarks and copyrights are the property of their respective owners.

CUGtech Høst 2009 for me in a few hours

October 7, 2009 by Jurjen van Leeuwen

So last stuff packed and then off to Geilo. Few hours drive, hoping there won’t be so much snow as yesterday. Even though I have very proper winter-tyres it was quite slippery.

What I expect from CUG Tech:

- A lot of new Norwegian connections

- Meet Shawn B. and Rick D. again, after I met them in BriForum Chicago 2007

- Good sessions

- og mye å prøve med norsk språk ;-)

You can find the agenda here: http://cug.no/cugtech-autumn-2009/agenda/

App-V server host name

October 2, 2009 by Jurjen van Leeuwen

Do you know:

A Microsoft System Center App-V server host name can’t start with a number?

Better not use spaces or “-” either…