Solved

Remove Files does not work in Windows Installer

Posted on 2010-09-09
2
668 Views
Last Modified: 2013-11-14
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
Comment
Question by:dorenstein
2 Comments
 
LVL 42

Expert Comment

by:sedgwick
ID: 33656989
is it possible those files are readonly or are used by some process at them time of installation?
0
 

Accepted Solution

by:
dorenstein earned 0 total points
ID: 33664251
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

Featured Post

ScreenConnect 6.0 Free Trial

Want empowering updates? You're in the right place! Discover new features in ScreenConnect 6.0, based on partner feedback, to keep you business operating smoothly and optimally (the way it should be). Explore all of the extras and enhancements for yourself!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Dell Precision T3600 SAS driver 8 302
VMWare Workstation 12.0 3 98
Installshield 2015 does not remove program files during uninstall 4 119
VMware nested installation 2 93
Among others, I monitor the Windows Installer zone and Installer zone. I find that many of the questions could be answered much more quickly if a Windows Installer verbose log were submitted with the question.   However, I do not always have t…
I have been scripting applications way too long and can never remember how to create an ISS file.  So I decided to write this article to act as my own knowledge base for future reference, and hope you will also benefit. An ISS file is a response …
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

831 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question