The Visual Studio 2005 Service Pack 1 Installation Experience

Visual Studio 2005 Service Pack 1 can take a long time to install and may apply to multiple products on your machine, appearing to install multiple times. This is a large service pack and installs a lot of files, fixing many issues and adding several new features to over 200 Visual Studio 2005 editions. What… Read more

Installation Guidelines for User-editable Configuration

A common problem with installations is user-editable files and registry keys. Configuration of this nature is a problem for every installer technology, but here are some guidelines to help developers overcome problems like users’ preferences being reset during repair. Windows Installer is a data-driven installation technology. Installing a patch on a Windows Installer installation package,… Read more

Uninstall Visual Studio 2005 Service Pack 1 Beta before Installing the Release

Before installing the release of Visual Studio 2005 Service Pack 1, you must uninstall the Service Pack 1 Beta. If you do not uninstall the beta first, you will receive the following message localized appropriately for Windows, “The upgrade patch cannot be installed by the Windows Installer service because the program to be upgraded may… Read more

Detecting Visual Studio 2005 Service Pack 1

Now that Visual Studio 2005 Service Pack 1 is released, it can be detected programmatically in various ways. Registry detection is recommended for ease and is less impacted by future changes to the product installation. Because there are many different Visual Studio 2005 editions and service pack 1 patch packages, you may need to perform… Read more

Slipstreaming Visual Studio 2005 Service Pack 1

Now that Visual Studio 2005 Service Pack 1 is released, some are wondering how to slipstream the patch so they can install Visual Studio 2005 with SP1 already applied. Much of this process is standard practice for Windows Installer packages. Please note this will require a lot of disk space, as you’re unpacking around 3… Read more

Source Resolution during Patch Uninstall

There are a number of guidelines to prevent requiring source media for patch installation. These guidelines can also help prevent requiring source media during patch uninstall, but there are a number of caveats. Recall from Rebuilding the Installer Cache that the baseline cache contains files that were replaced. But files that get replaced don’t always… Read more

The Windows Installer Service

Some have noticed that the msiexec.exe process seems to run for quite some time after a known installation completing, or that the Windows Installer service starts and stops even though it is set to manual startup mode. These are often the same process, and when you see msiexec.exe running as SYSTEM that is the Windows… Read more

Rebuilding the Installer Cache

During some operations upgrades internally, a problem arose on some machines where a patch for the Microsoft .NET Framework 2.0 would fail to install. I was looped into the thread to diagnose the issue and found that the Windows Installer package and the patch package were both missing from the installer cache. Since a .msp… Read more

Save Time and Space for VS 2005 SP1 by Disabling the Patch Cache

The upcoming Visual Studio 2005 Service Pack 1 can take a while to install and can require a lot of disk installed, and even more disk space while installing the patch. You can save a little of both by disabling the Windows Installer patch caching feature. Before doing so, understand that this patch cache contains… Read more

You Can’t Escape Quotes

SQL expression support is easy to use when modifying Windows Installer packages, but there is one major drawback that continues to cause problems: you can’t escape single quotation marks in Windows Installer SQL expressions. Consider the following sample code: TCHAR szSQL[MAX_SQL];LPCTSTR pszExample = TEXT(“Heath ‘ClubStew’ Stewart”);_stprintf_s(szSQL, MAX_SQL, TEXT(“INSERT INTO `Property` (`Property`, `Value`) VALUES (‘Example’, ‘%s’)”),… Read more