Monday, 29 September 2008

Microsoft Program Compatibility Assistant

I was working my through some our compatibility checks this morning when I realized that it had been a few months since I last read the Vista Application Compatibility cookbook. This is a rich-text of application compatibility resources and every once in a while, it's worth a re-read.

One section caught my eye - the Program Compatibility Assistant, which is part of the Vista OS and monitors how applications install and how application behave in a run-time environment. 

In Microsoft's own words; 

"The Program Compatibility Assistant (PCA) is a new feature in Windows Vista® and Windows Server® 2008 that can make older programs that have compatibility problems work better in an automated manner. PCA monitors programs for known issues. If an issue is detected, PCA notifies the user of the problem and offers to apply solutions that will be effective before the user runs the program the next time."

There are a number of features to the PCA including;

  • Detecting Failures in Setup Programs
  • Detecting Program Failures under UAC
  • Detecting Program Failures While Trying to Launch Installers
  • Detecting Installers That Need to Be Run as Administrator
  • Detecting Legacy Control Panels That Might Need to Run as Administrator
  • Detecting Program Failures Due to Deprecated Windows Components
  • Detecting Unsigned Drivers on 64-Bit Platforms


I had a pretty good handle on the installation, legacy control panel issues, administrator requirement scenarios and the 64-bit driver installation issues but the Deprecated components area needed some more research.

I have seen the PCA pop-up dialog boxes a number of times, most commonly to advise the user that the application in question required access to a DLL that is no longer available on Windows Vista; a prime example is an application having a dependency on MSVBM50.DLL.

This got me thinking; What algorithm is the PCA using to determine a missing/deprecated component?

Is it;

1) Comparing missing dependencies against a list known missing DLL's?
- If so, are these files documented somewhere?
2) Hooking in the EXE loader (NT.DLL) and logging all failed loads

My thinking is that this is a bit reactive. We should be able to, prior to deployment be able to determine  which applications will experience runtime PCA issues relating to deprecated components.


I suggest the following analysis. Each package should have all of its dependencies  listed for each file contained in the target application package against;

- The target operating system
- All deployed middleware
- What files are contained within the package
Remember, this not about Vista compatibility, but about your build of Vista , your middleware in your environment and your packages.



References:



Friday, 26 September 2008

Adobe Reader - Redirection Blues

This week I had the pleasure of working with some of the Microsoft Premier Field Engineers (PFE's)  in an effort to further understand some of the application compatibility issues that might occur when sequencing for Microsoft App-V (formerly SoftGrid).

Quickly, the topic turned to compatibility issues surrounding Folder Redirection as this appeared to pose a serious compatibility problem for Adobe.   

A quick scan of the web, raised a number of forum posting where numerous IT  personnel could not get Acrobat or Reader 9 deployed to C# debugging and "file not found" issues.

For a few samples look here:


It looks like there were some pretty drastic solution paths explored here, especially for Citrix deployments. Yikes... I am really glad that I don't have to do this stuff anymore...


Before I dive too deep into the Adobe deployment problems, let's have a little introduction to Microsoft's Folder Redirection . 

The idea of re-directing user local data folders onto the network was introduced with Windows XP and is defined as, "the automated re-routing of I/O (operations) from local standard folders to use a different, storage elsewhere on the network". Translated, this means that some standard user folders (i.e. My Pictures, My Documents) are redirected to store your files on a network server.  This greatly increases the chances that your files (and Pictures) will get backed up in the laptop being nicked or knackered.



Windows Vista uses folder re-direction on the following directories; Contacts, Desktop,  Documents, Downloads,  Favorites,  Music, Videos, Pictures, Searches,  AppData, Links, Saved Games.  

I have included a sample screen-shot of a Vista re-directory folder structure for your amusement.



If your browser has a spell checker AppData would appear with a red underline, which is appropriate as the AppData folder is one which caused us and to my great surprise, Adobe quite a lot of trouble.

Through our trouble-shooting exercise it became Adobe Reader and Acrobat 9 were attempting to write user specific data to the AppData folder. This is fine and according to the Microsoft logo application development specifications, this is OK.

So, in an enterprise environment, a user will logon to their desktop or laptop and if their IT department has done their job,  the AppData folder will be redirected to something like;  \\servername\region\department\username\AppData

And, here is the big issue. As folder re-direction takes place prior to logon- the user will not have any mapped drives. So, the fully qualified path to the final resting place on the target server for AppData will be a UNC path. 

Hint: It will be a UNC path.

As you can probably guess where I am going here; 

Adobe Acrobat 9 and Adobe Reader can not store their AppData files onto a UNC path. After a little debugging through their code, it appears that there is a failure to "read from left to right" and correctly parse the full path.

Hence, the file not found, app crashes and C# debugger errors that present themselves to users upon application start-up.

So, I did little more digging and loading Flash and version 6,7  and 8 of Adobe Reader. All of these packages use the redirected folder "AppData" in the same way - and I am sure that they will experience the same issue.

I will write more on the Adobe issues next week. And, there will be plenty to write about as it looks like there are over 400 application level conflicts between Adobe Reader 9 and Acrobat 9.

References:

Folder Redirection has a brief mention here: http://en.wikipedia.org/wiki/Folder_redirection 





Wednesday, 24 September 2008

Windows Server 2008 GPO ADMX Files Released

An associate (ex-softie) alerted me to the release of the Windows Server 2008 Group Policy Administrator pack this morning. 

These Active Directory Group Policy packs contain all of the registry settings required to manage Windows 2008 servers through Microsoft's Active Directory.  Effectively, these Administrator packs include all of the configuration information require to set and maintain your server preferences and security settings

These GPO Administrative  template files in Windows Server 2008 and Windows Vista are text based and divided into ADMX (language-neutral) and ADML (language-specific) files. ADML files are XML-based ADM language files that are stored in a language-specific folder. By default, the %Systemroot%\PolicyDefinitions folder on a local computer stores all ADMX files, and ADML files for all languages that are enabled on the computer.

These files are an important requisite tool for understanding how to deploy and manage Windows Server 2008 and can be found here; 

To find out more about managing Windows 2008 servers through Active Directory and GPO settings, you can refer to the following Microsoft documentation;

Microsoft Group Policy Preferences: Getting Started Guide

Best Practices for Authoring ADMX Files

If you are like me, you may find these packs hard to read, especially if you are looking for specific registry settings as a deployment or debugging effort.  Therefore, you may find the Microsoft Excel format (XLS) more helpful. This Excel file clearly lists all of the registry settings required for configuring your Windows 2008 server and can be found here:

Group Policy Settings Reference for Windows Server 2008 and Windows Vista SP1



Monday, 22 September 2008

SQL Server 2008 - Oh, bother

I can't believe that I am writing this blog entry on SQL Server.  I am not a hard-core Db guy, more of one of those engineering types who looks on the Database Administrators  with some scepticism and occasional bouts of devout worship when I am really in trouble with some deep, dark and scary SQL query.

I wanted to comment on a few things that seem to break when moving from SQL Server 2005  to SQL Server 2008. I was really surprised to discover that the latest version of Microsoft's SQL Server (2008) breaks some applications - particularly upon connection to the server. There are a number of security changes, which should be expected and can be found here:  http://www.microsoft.com/sqlserver/2008/en/us/wp-sql-2008-security.aspx

But, I was surprised to find that my existing/installed  version of  SQL Server Management Studio  would not connect to a fresh install of SQL Server 2008. 

A quick scan of the net, and there appears to be a few issues with compatibility of the new SQL server release including;


and for a great BLOG on the topic, visit the Scalability Experts tremendous effort located at: http://blog.scalabilityexperts.com/ 


If you are looking for a solution to the Management Studio connection  issue, Microsoft has released a  helpful KB article on the topic (http://support.microsoft.com/kb/946127/ ) and subsequently have released a hotfix; http://hotfixv4.microsoft.com/SQL%20Server%202005/latest/Yukon_SP2_CU5/9.00.3215.00/free/335088_intl_i386_zip.exe

I recommend that you install Service Pack 2 as well. SQL Server 2005 SP2 can be found here: 


I can't believe that I am writing this blog entry on SQL Server.  I am not a hard-core Db guy, more of one of those engineering types who looks on the Database Administrators  with some scepticism and occasional bouts of devout worship when I am really in trouble with some deep, dark and scary SQL query.

I wanted to comment on a few things that seem to break when moving from SQL Server 2005  to SQL Server 2008. I was really surprised to discover that the latest version of Microsoft's SQL Server (2008) breaks some applications - particularly upon connection to the server. There are a number of security changes, which should be expected and can be found here:  http://www.microsoft.com/sqlserver/2008/en/us/wp-sql-2008-security.aspx

But, I was surprised to find that my existing/installed  version of  SQL Server Management Studio  would not connect to a fresh install of SQL Server 2008. 

A quick scan of the net, and there appears to be a few issues with compatibility of the new SQL server release including;


and for a great BLOG on the topic, visit the Scalability Experts tremendous effort located at: http://blog.scalabilityexperts.com/ 


If you are looking for a solution to the Management Studio connection  issue, Microsoft has released a  helpful KB article on the topic (http://support.microsoft.com/kb/946127/ ) and subsequently have released a hotfix; http://hotfixv4.microsoft.com/SQL%20Server%202005/latest/Yukon_SP2_CU5/9.00.3215.00/free/335088_intl_i386_zip.exe

I recommend that you install Service Pack 2 as well. SQL Server 2005 SP2 can be found here: