Link to home
Start Free TrialLog in
Avatar of dorenstein
dorenstein

asked on

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
Avatar of Meir Rivkin
Meir Rivkin
Flag of Israel image

is it possible those files are readonly or are used by some process at them time of installation?
ASKER CERTIFIED SOLUTION
Avatar of dorenstein
dorenstein

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial