Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 689
  • Last Modified:

Remove Files does not work in Windows Installer

I create installers that install revisions of software and files that coexist with previous installations.  I discovered that two unversioned files from previous installations were incorrect.  The only way I could find to always overwrite them was to add entries to the MSI's RemoveFiles table.  This did not work, even though the installer log said it did:

Action 14:18:27: RemoveFiles. Removing files
RemoveFiles: File: IntelliRupter-2.3.3.zsd, Directory: C:\Program Files\S&C Electric\Products\IntelliRupter\HMI\2.3\
RemoveFiles: File: IntelliRupter-2.2.9.zsd, Directory: C:\Program Files\S&C Electric\Products\IntelliRupter\HMI\2.2\
Action 14:18:27: CreateFolders. Creating folders

Later:
InstallFiles: File: IntelliRupter-2.3.3.zsd,  Directory: C:\Program Files\S&C Electric\Products\IntelliRupter\HMI\2.3\,  Size: 33129
and
InstallFiles: File: IntelliRupter-2.2.9.zsd,  Directory: C:\Program Files\S&C Electric\Products\IntelliRupter\HMI\2.2\,  Size: 33128

When I look at the appropriate directories, the older files are still there.

Has anybody had similar experiences, or does anybody know of an easy way (VS 2005, Windows Installer project) to force always overwrite on unversioned files?

Thanks

David Orenstein
0
dorenstein
Asked:
dorenstein
1 Solution
 
Meir RivkinFull stack Software EngineerCommented:
is it possible those files are readonly or are used by some process at them time of installation?
0
 
dorensteinAuthor Commented:
They are not read-only, but (I'm almost too embarassed to admit this):  I wanted to overwrite two older  files with newer revisions.  According to mis update rules, as long as the older unversioned files have the same create and modify dates (indicating they have not been modified), this should happen automatically.  But it was not working.  I just discovered why:  My updated installer was still pointing to the old files!  Sorry for wasting your time.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now