Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

Windows Installer does not uninstall\replace the text files if its modified.


View products that this article applies to.

Symptom

You have created a setup which installs some text files on the client machine. If you edit the file and then do a repair or if you install a newer version of the setup, you will find that the text file will not get replaced with the original file you have inside the installer.

↑ Back to the top


Cause

This is by design. The reason for this behavior is the Windows Installer\MSI engine, will not replace data files that have differing modify and creation dates. Its assumed that they've been modified by the user and shouldn't be replaced

"Nonversioned Files are User Data�If the Modified date is later than the Create date for the file on the computer, do not install the file because user customizations would be deleted. If the Modified and Create dates are the same, install the file. If the Create date is later than the Modified date, the file is considered unmodified, install the file."

↑ Back to the top


Resolution

      To work around this issue, you can do either of the following:

  1. Download ORCA tool from this link:
    1. Orca install package

      Use ORCA to open the target MSI file and add following name and value pair into Property table at the end

      Name = REINSTALLMODE

      Value = amus

      This value will force all files to be reinstalled, regardless of checksum or version. 

      For more information on the REINSTALLMODE Property, see this link:

      REINSTALLMODE Property

  2. You may want to use the command line to install the setup like
    msiexec /i xxx.msi REINSTALLMODE=amus
  3.  Write your own installer class (custom action).

      ↑ Back to the top


      Keywords: kbnomt, kbrapidpub, KB2001178

      ↑ Back to the top

      Article Info
      Article ID : 2001178
      Revision : 3
      Created on : 8/19/2009
      Published on : 8/19/2009
      Exists online : False
      Views : 473