vb.net installer: do not install file if it already exists

I am setting up the vb.net installer for my application and I need to know how to set it up so that if a file already exists on the target machine it does not install over it. For instance, my app uses an Access mdb. If the database file already exists I don't want to install over it. I have looked at the Conditional Deployment, but can't figure out how to do this. Any help would be very much appreciated. Thanks!
myesterAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

naveenkohliCommented:
Follow these steps..

To add a file launch condition
-------------------------------

In the Launch Conditions Editor, select the Requirements on Target Machine node.

On the Action menu, choose Add File Launch Condition.
Select the Search for File node. In the Properties window, select the FileName property and type the name of the file to search for.

Select the Folder property and type the name of the folder where the search will start. This can be either the bracketed name for a Windows Installer special folder (for example, [ProgramFilesFolder]) or the full path to any folder (for example, C:\Program Files\MyProgram).
Optionally, set the additional properties to specify the depth (levels of folders to search), date, size, and version.

Note   The Property property value matches the Condition property value in the launch condition. If you change the Property property, you must also change the Condition property to match.
Select the Condition node. In the Properties window, select the Message property and type the error message that will be displayed if the file is not found.


This is from VS.Net docs..
(ms-help://MS.VSCC/MS.MSDNVS/vsintro7/html/vxtskaddingfilelaunchcondition.htm)
0
myesterAuthor Commented:
Naveen, I have tried in the past what you suggest above. I am using the condition FILEEXISTS1 but this just stops the installation when the file I specified is found. What I want is for the app to install, but not overwrite the .mdb file if it exits.
0
myesterAuthor Commented:
Naveen, I have tried in the past what you suggest above. I am using the condition FILEEXISTS1 but this just stops the installation when the file I specified is found. What I want is for the app to install, but not overwrite the .mdb file if it exits.
0
moduloCommented:
Dear expert(s),

A request has been made to close this Q in CS:
http://www.experts-exchange.com/Community_Support/Q_20605987.html

Without a response in 72 hrs, a moderator will finalize this question by:

 - Saving this Q as a PAQ and refunding the points to the questionner

When you agree or disagree, please add a comment here.

Thank you.

modulo

Community Support Moderator
Experts Exchange
0
moduloCommented:
Saving this Q as a PAQ and refunding the 500 points to the questionner

modulo

Community Support Moderator
Experts Exchange
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
.NET Programming

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.