Archive for May, 2012


If you have a client (4.6 SP1 x86 Windows Desktop for sure, perhaps other installs and other installers) that is currently configured for a cache size policy of a maximum size and attempt to use the Client Management Console to modify the setting to instead use the Minimum Free Space option, when you hit apply you will get an error:

“The Application Virtualization Client could not modify file system cache settings. The parameter is incorrect”

Error code ends in 29-00000057

This appears to me to be a bug in the MMC console (or perhaps sftlist which implements the change request). I have developed a workaround for this issue, documented below. Appropriate cautions about backups etc apply, but hey, in the worst case you uninstall and reinstall the client with the correct policy setting.

First a little info gained from looking into this issue. It seems that the MMC uses sftlist (the client service) to implement the change request. Through testing making the change in the other direction, I have determined that there are two mutually exclusive registry entries that should exist, however the settings seem to also be stored inside the fsd cache file as well. Clearing out the cache file will cause the registry settings to be used when the cache file is recreated.

Here is the WORKAROUND. To change from a fixed maximum size to a minimum free size setting, you would do the following in regedit, after browing to the HKeyLocalMachine\Software\{Wow6423Node\}Microsoft\SoftGrid\4.5\Client\AppFS key:

•Delete the FileSize registry entry
•Add a new MinFreeSpace entry; as a DWORD and set the value to the ammount of needed free space (in MB) that must be present whenever the cache file is to be extended.
•Set the State registry entry to 0 (zero)
then reboot the OS. This will clear out the App-V cache file and set the new policy inside the cache file.

We released “The Client Book, About Microsoft App-V” some time back, and it has been a tremendous success. To date it has sold over two and a half what we ever expected to sell. Today, we released the paperback version of the book, which makes it available at a bit more afforadable price.

We are also pleased to finally release a German translation of the book (in hardcopy only). Now since niether I nor Kevin speak any German we partnered up with fellow MVP Nico Lunderman, a native of Germany, to create the translation. All three versions, in addition to my other books, are available for purchase online from TMurgent Books
.

image of The Client Book image of The Client Book

In conjunction with my upcoming book and sessions at Briforum, I am releasing a number of new and updated tools involving Windows Performance analysis. These tools may be found in the Performance Tools section of the TMurgent website. These tools are generally free to download and use (the only restrictions are for ISVs that want to use them to show off how good they are).

So what are these tools?

AndThenThereWasPower! A Detailed Walk-through the Windows 7 Boot Process (A Silverlight app).
ATM View Windows Memory Caches and Superfetch.
DePrio Open file at specified memory priority.
Factorial Tool to act as an app that eats one CPU core.
HyperV_Mon Monitors Hyper-V Server and VMs, including “overhead”.
IWillCrash Tool to act as an app that crashes itself.
LaunchTimeAnalyze Tool to Run scripts and measure Perceived Performance
LeakMemory Tool to act as an app that leaks memory in a controlled way.
LoadDlls Tool to load a bunch of dlls. Used to test effect of Windows App prefetch.
MassiveRebase Tool to investigate dll rebasing and effect of ASLR.
PageMania Tool to act as a bad app and cause paging activity on demand.
ReadyViewer Tool to analyze Windows ReadyBoost (flash caching).
SequentialRead Tool to read file sequentially or randomly on demand.
SuperFetch_Tools Two tools to investigate the SuperFetch database scenario files.

  SuperFetchList

  SuperFetchTree
WhatsMyBoot Tool to analyze Boot, Shutdown, Suspend/Hibernate, Resume, and Windows ReadyBoot feature performance.

These, and many more tools written by others, will be covered in my two BriForum Sessions in London (and probably the Chicago show also). The two sessions are:

  • Top 15 Ways Microsoft Uses Caching to Increase Performance
    Wednesday May 23, 1:05pm – 2:20pm
  • “And Then There Was Power,” the Story of a Windows 7 and 8 Boot Process
    Thursday May 24, 11:10am – 12:25pm

I have been having a problem with some of my sequences with the new App-V 5.0 Beta1 release; sometimes the client doesn’t get changes I make to the shortcut/FTA settings in the sequence editor.

I mentioned this to Patrick before I headed off to speak at the Citrix Synergy “Geek Speak Live” in San Francisco last week. He was supposed to be looking into those deployment and user config files and figure out just how and where we really want to use them (a work still in progress), but he couldn’t make progress unless he knew just what the client would reliably get from a given sequence without them. So he figured something new out.

In the App-V 5.0 Beta1 sequencer, the sequencer detects shortcuts and file type associations created during the installation phase. Previously, I have reported issues (with 4.6 SP1) that if FTAs are created during the Configure phase these will be missed, and this still applies to the 5.0 Beta1. This issue is creatly seen with sequencing 7Zip if you do not launch 7Zip after installing itduring the installation phase.

But in the 5.0 Beta1 sequencer, the later application editing phase that used to be in the wizard has been moved to the sequence editor. This move is a good change as it means that whichever wizard option you take you can still get to the application editor. But that only helps if the changes are remembered!

What Patrick figured out through trial and error, is that in the sequence editor we seem to be able to make some changes but not others.

  • Deleting an entire application (from the app name) works
  • Removing a shortcut from within an application works
  • Removing an FTA from within an application works
  • Changing the name only of an application works
  • Changing the location of a startmenu shortcut from the main dialogfails
  • Changing the location of a shortcut from the advanced dialog works

So if the application added a shortcut during install phase to the startmenu, for example to the root of the start menu so that it appears without a subfolder, you should not try to edit the location in the location box next to the startmenu check box. If you do, the client will get the old location for the shortcut. The only way to change the location of a startmenu appears to be to uncheck the startmenu box and then add a new shortcut using the advanced menu.

The bottom line is that with 5.0 Beta1, if at all possible, make shortcut changes manually in the installation phase to ensure that the client gets what you expect. If you must edit shortcuts in the sequence editor, only do so in the advanced dialog.