On a XenApp 5 farm on Windows 2008 server, all published applications launch slowly and do not launch in seamless mode (The application would be presented in a fixed size window). The issue affected both streamed to server applications and normal applications such as a simple published Notepad.
The issue started after several Microsoft hotfixes had been deployed using Windows update. The procedure in CTX102750 - Seamless Applications Launch in a Fixed Window did not resolve the issue and there were no permission related problems. Recreating the ICA listener also did not fix the issue.
However, published desktops and non-seamless applications (fixed size resolution or percentage of screen) launch quickly.
Adding the dll avoids failures in scenarios where the short names in the 8.3 naming convention cannot be resolved at the server. Refer to CTX131995 - User Cannot Launch Application in Seamless Mode in a Provisioning Services Server when XenApp Optimization Best Practices are Applied.
From the export of the registry key HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\Windows\, it was possible to see that the value of AppInit_DLLs was blank and did not contain the mfaphook.dll.