Deployment Package checking to see if file exists

S

shawrie

Hi
i wonder if someone can help me. Im creating a deployment package for
my program. On install i want to check to see if config.xml in my
application folder exists if it does then dont overite it. How can i
configure the deployment package to do that? Im using visual studio
2005
 
W

Wilson, Phil

In VS setups you can't. You can search for a file (in the Launch Conditions
view), but that happens before the install, and you don't know what the
application folder is until after the user has chosen a folder. Anyway,
what will you do if the user chooses a different install location? There
won't be a config.xml file there at all. It sounds like you want the config
file to be in a constant location so that it's always available, so having
it in the Application Folder is not the best place.

You could use a VS 2008 setup project. That upgrade will not replace data
files if they have been updated, so you wouldn't need to do anything (with
the caveat that the user might still choose to install in some location
completely separate from the original setup).
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top