160 likes | 272 Views
Application Compatibility Remediation: The Dark Magic of Fixing Broken Applications. Aaron Margosis Principal Consultant Microsoft Session Code: CLI405. Some Available Techniques. Get rid of the app! Let Windows handle it File/registry virtualization
E N D
Application Compatibility Remediation: The Dark Magic of Fixing Broken Applications Aaron Margosis Principal Consultant Microsoft Session Code: CLI405
Some Available Techniques • Get rid of the app! • Let Windows handle it • File/registry virtualization • Limitations on file/registry virtualization • Update the application • Acquire new version from vendor • Fix compatibility bugs in the source code • Apply shims • Pre-install required files, registry keys • Employ application or machine virtualization
When to Use Shims • Define standards for when to use this technique: • Vendor no longer in business • Internal applications • Support negotiable • Shimming applications can be outsourced
How Shims Work Application Windows Import Function Import Function Export Function Shim DLL
When Shims Are Used Windows loads app. Checks AppCompat DB(s). Match found: Selected API calls intercepted and modified. AppY.exe v 2.3.4.5 AppY.exe v 2.3.4.5 • Windows APIs • Kernel32 • User32 • Advapi32 • OleAut32 • …
Detailed Shim Information • Install App Compat Toolkit and look in act.chm • Also on technet.microsoft.com • Chris Jackson’s blog (blogs.msdn.com/cjacks)
demo Show me the shims
Testing environment • Have multiple configurations available • Be able to reimage quickly • Virtual machines (snapshots, undo disks) • MDT deployment (e.g., PXE boot) • Apply security policies to local Group Policy rather than domain • LGPO utilities: blogs.technet.com/fdcc
Tools for identifying specific issues • Sysinternals Process Monitor • Standard User Analyzer (App Compat Toolkit) • LUA Buglight • v2.1 just released • Includes support for Windows 7 and x64 • http://blogs.msdn.com/aaron_margosis/pages/LuaBuglight.aspx
demo LUA Buglight, Process Monitor, SUA
Required Slide Speakers, TechEd 2009 is not producing a DVD. Please announce that attendees can access session recordings at TechEd Online. Resources • www.microsoft.com/teched Sessions On-Demand & Community • www.microsoft.com/learning • Microsoft Certification & Training Resources • http://microsoft.com/technet • Resources for IT Professionals • http://microsoft.com/msdn Resources for Developers
Complete an evaluation on CommNet and enter to win an Xbox 360 Elite!
Required Slide © 2009 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.