jrsoftware.org // Jordan Russell's Software


-Inno Setup







visitors since
Jan. 1998

Inno Setup Knowledge Base
Return to index

HOWTO: Install Visual C++ 6.0 Run-Time Files

Article Created: 2003-10-22 08:30 GMT by Jordan Russell
Last Updated: 2007-06-08 18:00 GMT by Jordan Russell

Installing Visual C++ 6.0 Run-Time Files

If you need to distribute any of the following files:


then follow these steps:

  1. Obtain the necessary redistributable system files. There are two ways to get them:
    1. From my site: vcredist.zip (size: 1,757,372 bytes; md5sum: 9057e4992b61bb4baa34b6bdac60d8e2). (The files came from vcredist.exe in Visual Studio 6.0 Service Pack 6.)
    2. From the vcredist.exe file inside Visual Studio 6.0 Service Pack 6. The individual files may be extracted by opening vcredist.exe in WinZip (8.0 or later).
  2. Add the following lines to your script's [Files] section. (Change "vcfiles" to the path you extracted the files to.)
    Note: It may not be necessary to install every file depending on your application's requirements. For example, mfc42u.dll is not necessary if your MFC application isn't Unicode-based.

If you're using an Inno Setup version prior to 3.0.5, you should upgrade. If that's not possible, then you need to add CopyMode: alwaysskipifsameorolder to each of the lines. (This isn't necessary on version 3.0.5 and later since it's the default behavior.)

Put all other files pertaining to your application after the "end VC system files" line.

Never pull in any of the system files from your own Windows System directory. If this advice is ignored, you risk potentially causing DLL version conflicts (like this one) on users' systems.

Administrative privileges are required

In order for the files with the restartreplace flag to install successfully on Windows NT/2000/XP, the user must have administrative privileges. By default, Inno Setup installations do not check for administrative privileges. It is recommended that make your installation script check for this, by setting the PrivilegesRequired [Setup] section directive:


If this is not done, and the user doesn't have administrative privileges, an "Access Denied" error message will be displayed during the installation.

Revisions to this Document


  • Added OnlyBelowVersion: 0,6 parameters to each line to prevent Setup from trying to install the files on Windows Vista. All of the files come preinstalled on Vista already, and cannot be re-registered due to security restrictions on the registry.


  • Updated links for Visual Studio 6.0 Service Pack 6.


  • Added sharedfile flag to all the files, since some other installers incorrectly use shared file counting on them.


  • Removed CopyMode: alwaysskipifsameorolder from each of the lines since it's the default behavior in Inno Setup 3.0.5 and later.
  • Replaced the obsolete AdminPrivilegesRequired=yes setting with PrivilegesRequired=admin.

Site contents Copyright © 1997-2021 Jordan Russell. All rights reserved.
Portions Copyright © 2000-2021 Martijn Laan. All rights reserved.