Checking File Versions Before Installing

InstallShield 2020

Project:This information applies to the following project types:

Basic MSI
DIM
InstallScript MSI
Merge Module
MSI Database
MSM Database
Transform

For InstallScript projects, this functionality is handled by the component’s Overwrite setting. When you click the ellipsis button (...) in this setting, the Overwrite dialog box opens, enabling you to specify whether files of the component should overwrite existing files on the target system.

The Never Overwrite setting for a component enables you to indicate whether you want your installation to overwrite a file if it already exists on the target system:

If you select Yes, the file—if it exists on the target system—is never overwritten, regardless of the file version. Selecting Yes for this setting overrides file versioning rules.
If you select No and the file version on the target system is newer than the version being installed, the file on the target system is not overwritten. However, if the version being installed is newer, the file on the target system is overwritten.

Windows Installer checks for the existence of the component’s key file when determining if it should install the component. For more information, see Overwriting Files and Components on the Target System.