How can I conditionally install a file?

PJRoyle

Member
Joined
Jun 7, 2004
Messages
11
Location
Uckfield, East Sussex, UK
Programming Experience
10+
Hello,

I have a deployment project and I have a file in it which goes in the user's data
folder. This file gets modified by the application, so I don't want to
overwrite it when re-installing - for an update, say - if it already
exists. I have tried some stuff with the Condition property for the
file, but I'm really not sure how to achieve this.

Is it easy?

If so - how do I do it?

Thanks for any advice,
Peter Royle
 
HI

Try it by adding a search for tht file in Launch Conditions at desired location and change the property in properties window for tht search.

Now put tht property value (tht is actually a named property for tht search) in condition for tht file File System Editor....

Hope this helps

ps316
 
to check to see if a file exists do something like this:

if file.exist(path\file.ext) = true then 'might be file.exists
'use the file
else
'make the file
end if
 
Back
Top