Jump to content


This is a ready-only archive of the InstallSite Forum. You cannot post any new content here. / Dies ist ein Archiv des InstallSite Forums. Hier können keine neuen Beiträge veröffentlicht werden.
Photo

Coping over single file


2 replies to this topic

Island

Island
  • Members
  • 1 posts

Posted 31 March 2004 - 17:34

I have a .mdb, which is giving me fits! I would like to just copy the file over with out any type of version or attribute checking. I don't want it registered in the Files Remove dialog. What is the simpliest way to accomplish. Thank you all once again.

luke_s

luke_s
  • Full Members
  • 532 posts

Posted 02 April 2004 - 01:57

Windows Installer does not really provide a way to always overwrite a file.

Probably the most reliable way to always overwrite the file is to write code to delete the file so that the new one always gets installed.



Stefan Krueger

Stefan Krueger

    InstallSite.org

  • Administrators
  • 13,269 posts

Posted 02 April 2004 - 10:05

The other option would be "version lying", i.e. put a version number in the File table of your .msi. Thus Windows Installer thinks the file in your msi is newer than the existing file and will always overwrite it. (Always in this case also means during a modify or repair operation!)