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

Install file if not already present


1 reply to this topic

arj

arj
  • Members
  • 1 posts

Posted 22 September 2002 - 16:57

How can I install a file if it does NOT already exist. (This is a configuration file and I do not want to overwrite it if it already exists). I'm using VS.NET. I'm guessing I need to use a CONDITION on the file, but cannot work out how to write the condition. Previous versions of my application dod not use MSI so I cannot rely on using MSI's re-install code.

Stefan Krueger

Stefan Krueger

    InstallSite.org

  • Administrators
  • 13,269 posts

Posted 23 September 2002 - 14:05

You could make the file the key file of a component and mark the component as newver overwrite. Not sure if you can do this inside VSI.

But you may not have to do anything: by default MSI will not overwrite a file if it has been modified after installation (modify date more recent then create date)