Your company's apps incompatible with Windows 7? Shim them, says Microsoft

It's one solution to running balky applications

Windows 7 may be looking faster and more polished than its predecessor, Windows Vista, but both operating systems are nearly identical under the hood.

That means some of the application compatibility problems that plagued Vista users could also strike Windows 7 users, especially corporate workers.

While many software and game makers have fixed the XP apps that broke under Vista three years ago, the same isn't true of custom applications running inside enterprises.

Often written in Microsoft languages such as .Net or Visual Basic, these apps can suddenly become a roadblock for enterprises intent on upgrading from XP to Windows 7, especially if they have thousands of them in use, said Chris Jackson, an associate software architect at Microsoft.

One solution is to run balky applications in virtualization, such as Windows 7's XP Mode or, for large enterprises, MED-V.

The disadvantage is that virtualized apps run slower, sometimes much slower. Also, companies may end up having to support the newer operating system as well as the one they upgraded from.

Enter shims, which are to programming what jujitsu is to hand-to-hand combat.

Essentially little bits of code, shims don't try to tackle app compatibility problems head-on, but use tricks to sidestep them.

For instance, one common problem is caused by a requirement in Windows Vista and Windows 7 that most users work in standard user mode rather than administrator mode. Because users in standard mode have fewer system rights, they are less likely to inadvertently install malware. But that also can break programs written for XP that assume users are running as administrators.

A shim either fools the app into believing the user has admin rights, or it simply bypasses the test. Since the user is still in standard user mode, no security is compromised, Jackson said. And no app code needs to be rewritten.

"Think of it as like rephrasing a question," Jackson said during a talk last week at Microsoft's TechEd conference in Los Angeles. "If I can't say yes to a question, I'll just change the question."

Microsoft has long created its own shims rather than making laborious bug fixes to Windows' oft-brittle code.

"If you walk too loudly down the hall near the [Windows] kernel developers, you'll break 20 to 30 apps," Jackson joked.

In the Release Candidate for Windows 7, Microsoft is providing shims for 6,999 applications, with more added in every patch update, according to Jeremy Chapman, a senior Windows program manager for Microsoft.

For IT pros who need to create shims for their custom apps, Microsoft offers its free Windows Application Compatibility Toolkit (ACT).

The toolkit helps IT pros diagnose app compatibility problems then apply the proper shims to get balky software running. The latest version 5.5 was released last month.

Besides sidestepping user rights problems, ACT can also apply a shim that tricks an app into believing it is running on a particular operating system. Some apps will disable themselves if they are not running on the right version of an operating system.

ACT also offers a shim that helps a custom app locate system files written in an unexpected directory due to different versions of the operating system.

While Jackson is enthusiastic about shims, he admits that they "can't fix everything." If a user is trying to do something that requires a certain credential or certificate, shims can't be used to bypass that, he said.

Also, approaches such as virtualization have at least one advantage over shims - continued support from most independent software vendors, Jackson said. The same can't be said of shimmed apps.

"If you need a support statement, shims are only a stopgap," Jackson said. The best strategy in that case is to wait for the free or paid upgrade to Windows 7, he said.

Join the Good Gear Guide newsletter!

Error: Please check your email address.

Tags Windows VistaMicrosoftWindows 7

Our Back to Business guide highlights the best products for you to boost your productivity at home, on the road, at the office, or in the classroom.

Keep up with the latest tech news, reviews and previews by subscribing to the Good Gear Guide newsletter.

Eric Lai

Computerworld
Show Comments

Most Popular Reviews

Latest News Articles

Resources

PCW Evaluation Team

Azadeh Williams

HP OfficeJet Pro 8730

A smarter way to print for busy small business owners, combining speedy printing with scanning and copying, making it easier to produce high quality documents and images at a touch of a button.

Andrew Grant

HP OfficeJet Pro 8730

I've had a multifunction printer in the office going on 10 years now. It was a neat bit of kit back in the day -- print, copy, scan, fax -- when printing over WiFi felt a bit like magic. It’s seen better days though and an upgrade’s well overdue. This HP OfficeJet Pro 8730 looks like it ticks all the same boxes: print, copy, scan, and fax. (Really? Does anyone fax anything any more? I guess it's good to know the facility’s there, just in case.) Printing over WiFi is more-or- less standard these days.

Ed Dawson

HP OfficeJet Pro 8730

As a freelance writer who is always on the go, I like my technology to be both efficient and effective so I can do my job well. The HP OfficeJet Pro 8730 Inkjet Printer ticks all the boxes in terms of form factor, performance and user interface.

Michael Hargreaves

Windows 10 for Business / Dell XPS 13

I’d happily recommend this touchscreen laptop and Windows 10 as a great way to get serious work done at a desk or on the road.

Aysha Strobbe

Windows 10 / HP Spectre x360

Ultimately, I think the Windows 10 environment is excellent for me as it caters for so many different uses. The inclusion of the Xbox app is also great for when you need some downtime too!

Mark Escubio

Windows 10 / Lenovo Yoga 910

For me, the Xbox Play Anywhere is a great new feature as it allows you to play your current Xbox games with higher resolutions and better graphics without forking out extra cash for another copy. Although available titles are still scarce, but I’m sure it will grow in time.

Featured Content

Latest Jobs

Don’t have an account? Sign up here

Don't have an account? Sign up now

Forgot password?