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

Conditionally Installing a file or component


1 reply to this topic

Seany

Seany
  • Full Members
  • 64 posts

Posted 09 June 2016 - 15:35

Hi

Does anyone know if it's possible to only install a file (or component or feature) if a particular file doesn't already exist on the target machine?

 

I want to install a file but only if it doesn't exist already on the target machine.

 

So I need to somehow detect if the file does exist and if it does I don't want to install it again. If it doesn't exist I do want to install it. I won't necessarily know where on the machine the file might be>

 

Thanks

Sean



Seany

Seany
  • Full Members
  • 64 posts

Posted 10 June 2016 - 13:29

Hi

 

I think I've figured out how to do this using FeatureSetData to mark the feature deselected if the file already exists. 

 

Now just got to work out the best way of detecting if the file exists or not.