5. Getting and installing WinMerge

5.1. Getting files

Latest releases can be always downloaded from WinMerge homepage: WinMerge.org. Note that there may be some delay updating homepages for releases, but project statuspage at SourceForge.net shows latest files. There is also mailing-list for release announcements. Stable releases are also available in several file download sites.

WinMerge can be installed using installer or by unzipping files from archive.

Note

Installer requires Admin-user rights in Windows NT4/2000/XP. If you don't have Admin-user rights you can install WinMerge by unzipping from archive file.

5.2. Using installer (recommended)

This is recommended for most users. Installer asks location where WinMerge is installed, installs files, configures shell integration and adds WinMerge to Start-menu. To install WinMerge:

  1. Start installer executable (usually named WinMerge-version-setup.exe)

  2. Select Next-button in welcome screen

  3. Select Next-button in licence screen

  4. Select location for WinMerge and select Next-button. It is recommended to install WinMerge in own directory.

  5. Select components installed or one of preconfigured combinations. Typical configuration is recommended for most users. In addition to components already selected by Typical, language file(s) could be chosen. Components are:

    • WinMerge core files - cannot be unselected - WinMerge executable files

    • Application Runtimes - cannot be unselected - needed DLL files

    • User's Guide - HTML user guide/manual - if it is not installed WinMerge opens manual from WinMerge.org

    • Filters - file filter files

    • Plugins - plugins and scripts

    • Languages - WinMerge translation files. After installing translation file user interface language can be selected from menu View->Language.

  6. Select Start-menu folder or disable creating it.

  7. Select additional tasks:

    • Enable Explorer context menu integration - Enables basic WinMerge shell integration (can be later enabled from options).

    • Integrate with TortoiseCVS - sets WinMerge to TortoiseCVS diff application.

    • Create a Desktop Icon - adds WinMerge icon to Desktop

    • Create a Quick Launch Icon - adds WinMerge icon to Quick Launch bar

  8. Verify install selections and select Install button to continue.

  9. After installer has copied files final screen appears with two checkboxes asking if created WinMerge Start-menu folder should be opened and if WinMerge application should be started.

5.3. Installing from archive

WinMerge is pretty much independent from other system components. It doesn't integrate tightly to Windows or use lots of dlls. WinMerge[U].exe itself is dependent of MFC42[U].dll (and MSVCRT.dll) in addition to some system DLLs. So if mentioned DLLs already are installed to system, only WinMerge[U].exe is needed to run WinMerge.

Archive files have correct folder structure. WinMerge should be unzipped preserving folder structure to destination folder, for example C:\Program Files\. Root folder created has name /WinMerge-version, for example /WinMerge-2.4.0. This folder can be renamed or files copied to other folder (preserving folder structure!).

After unzipping files WinMerge is ready to run! ShellExtension and Archive Integration may need additional steps (see below).

5.4. Shell integration

Choose "Enable Explorer context menu integration" from installer's additional features to install shell integration.

If install program is not used, shell integration dll (ShellExtension[U].dll) must be registered separately. This is done by running register.bat from WinMerge directory. Reboot is recommended after installing so Windows updates all its references.

Note

Installing shell integration requires administrative user priviledges.

Updating shell integration outside installer requires first uninstalling current version. Uninstalling can be done by running uninstall.bat from WinMerge directory. After that computer should be restarted so Windows completes uninstallation. Then new version can be installed like described above.

5.5. 7-Zip and archive support

WinMerge uses 7-Zip for archive support, but WinMerge installer does not install 7-Zip or archive support. Installing 7-Zip application is recommended but not required for archive support. 7-Zip installer can be downloaded from 7-Zip.org.

To install archive support, download and install 7-Zip plugin (Merge7zInstaller, see below) from WinMerge.org.

WinMerge automatically detects installed 7-zip in system, there is no need to any configuration.

7-zip integration needs compatible Merge7z*.dll file in WinMerge program directory. * comes from 7-Zip version installed. For example 7-Zip version 4.23 needs Merge7z423.dll. And if WinMergeU.exe (unicode version) is used, then "U" is also added to filename: Merge7z423U.dll. If needed dll file is for some reason missing it can be copied to WinMerge directory, for example from 7z-archive downloadable in WinMerge download page.

If Merge7z*.dll file is missing, WinMerge informs user with message showing filename of needed file and recommended version of 7-Zip. This message can also be opened from Help-menu item "Archive Support Disabled".

5.5.1. Merge7zInstaller

This is a stand-alone installer for 7-Zip integration.

Installer filenames may seem weird at first, but there is reason for them: they show supported versions. Filename is formatted Merge7zInstallerXXX-YYY-ZZZ.exe. XXX is build number, YYY earliest 7-Zip version supported and ZZZ latest 7-Zip version supported. For example Merge7zInstaller0014-311-426.exe means build version 14, and support for 7-Zip versions 3.11 - 4.26.

This separate installer is much more flexible since we can update it whenever 7-Zip is updated. And we don't add files users don't need to base installer.

The latest version is always available directly in our downloads at SourceForge.net: 7-Zip plugin and of course from our homepage at WinMerge.org.

Tip

If you want to know immediately when we release new versions, you can Monitor our releases. When monitoring release, you get sent e-mail notifications about new releases when they happen.

Running installer is simple:

  1. Start installer executable

  2. Select installation type and dll files (supported 7-zip versions) to install

    • Shared installation copies 7-Zip plugin files to system directory so they can be shared between multiple WinMerge installations and other programs using 7-zip plugin. This is recommended installation.

    • Application specific installation copies 7-zip plugin files to program directory. Files are then usable only by that program.

      This selection requires user to select executable in directory where plugin files are installed. Select WinMerge executable file when installing to WinMerge directory.

    • Enable standalone operation installs also required 7-Zip files to program's (application specific installation) directory. This allows minimal usable installation of 7-Zip for archive support. This can be used when 7-Zip application is not wanted or needed.

      This installation type does contain only needed files for WinMerge (or other application) to enable archive support. It does not install 7-Zip user interface or other related tools or files. After this install it is not possible to open or create 7-Zip archive files outside WinMerge.