From: shawrie on 16 Jan 2010 10:33 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
From: Wilson, Phil on 20 Jan 2010 17:47 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). -- Phil Wilson The Definitive Guide to Windows Installer http://www.apress.com/book/view/1590592972 "shawrie" <tourerukcom(a)googlemail.com> wrote in message news:12e0c9ec-97ed-4df9-8c47-13c8ea3ac2df(a)a6g2000yqm.googlegroups.com... > 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
|
Pages: 1 Prev: Apache Velocity or Freemarker equivalent in .Net / C#? Next: Problems with MySQL and Outlook |