PDA

View Full Version : Check to see if file already exists?



arrigob
08-30-2010, 11:38 AM
Hi there,

I'm trying to find a way to have my installer check to see if a file already exists, is this possible? We would like to be able to check to see if previous instances of our software is installed onto the target computer. If it is we would abort the user out with an error message or run a backup of the old build, but we need to know first.

I know how to check for running programs and other items but I can't seem to find a way to accomplish this specifically. Any help would be greatly appreciated.

Thanks,

Brandon

linder
08-30-2010, 11:22 PM
Brandon,

Yes, absolutely no problem. You can use the "If File/Folder..." Statement do handle this (see attached screenshot).

But the recommended way to detect a previously installed application is the use of "Detect Previous Version..."

Does this help?

Friedrich

arrigob
08-31-2010, 07:50 AM
That is exaclty what I was needing! Thanks a bunch for the quick responce!:)

linder
08-31-2010, 07:52 AM
You are very welcome :)

Friedrich