Be careful when installing SHLWAPI.DLL with Visual Installer

I happened to come across a serious problem when installing my own software with Visual Installer 1.1: the installation of my product on Windows 98 computers caused a system crash during the next Windows start-up. The only way to fix things was to reinstall Windows from CD, over the existent version!

The only modification done on the computer used to build the software and the setup (a machine dedicated to this sole task) was the installation of IE6, followed by its security patches.

After some experiments, here it is the explanation for the problem. Visual Installer correctly detects a dependency to SHLWAPI.DLL during the build (as it did before the IE6 was installed). However, this DLL was replaced by the newer version installed with IE6, and thus it was this updated DLL to be included in my setup package.

Once this DLL was installed on the client computer, it caused a system crash if the existent version of SHLWAPI.DLL was not the same. To fix the problem you can use a boot disk to avoid loading Windows, and manually replace SHLWAPI.DLL version 6.0.2600.0 (the one distributed with IE6) with version 5.0.2614.3500 (the one distributed with Win98 OSR2).

As for the setup package, you can avoid including the file and rely on the file already installed on the client machine, or include the DLL with version 5.0.2614.3500 (that will not be installed on the client if the setup detects that a newer version is already present).

Share the Post:
Share on facebook
Share on twitter
Share on linkedin

Overview

The Latest

microsoft careers

Top Careers at Microsoft

Microsoft has gained its position as one of the top companies in the world, and Microsoft careers are flourishing. This multinational company is efficiently developing popular software and computers with other consumer electronics. It is a dream come true for so many people to acquire a high paid, high-prestige job

your company's audio

4 Areas of Your Company Where Your Audio Really Matters

Your company probably relies on audio more than you realize. Whether you’re creating a spoken text message to a colleague or giving a speech, you want your audio to shine. Otherwise, you could cause avoidable friction points and potentially hurt your brand reputation. For example, let’s say you create a

chrome os developer mode

How to Turn on Chrome OS Developer Mode

Google’s Chrome OS is a popular operating system that is widely used on Chromebooks and other devices. While it is designed to be simple and user-friendly, there are times when users may want to access additional features and functionality. One way to do this is by turning on Chrome OS