Share via


RemovePreviousVersions Property

Specifies whether an installer will remove previous versions of an application during installation. If this property is set to True and an earlier version is detected at installation time, the previous version's uninstall function will be called.

The installer checks UpgradeCode and ProductCode properties to determine whether the earlier version should be removed. The UpgradeCode must be the same for both versions; the ProductCode must be different.

Settings

The settings for the RemovePreviousVersions property are:

Setting

Description

False

The installer does not check for previous versions.

True

The installer checks for previous versions and uninstalls them if found.

See Also

Reference

Deployment Properties

UpgradeCode Property

ProductCode Property