PC Review


Reply
Thread Tools Rate Thread

Deployment Package checking to see if file exists

 
 
shawrie
Guest
Posts: n/a
 
      16th Jan 2010
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
 
Reply With Quote
 
 
 
 
Wilson, Phil
Guest
Posts: n/a
 
      20th Jan 2010
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" <(E-Mail Removed)> wrote in message
news:12e0c9ec-97ed-4df9-8c47-(E-Mail Removed)...
> 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


 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Checking to see if a file exists. JHB Microsoft Excel Misc 3 5th Aug 2009 03:11 PM
Checking if a file exists regardless of the permissions on it sprash Microsoft C# .NET 7 16th Jun 2007 06:51 PM
Routine for checking if file exists Centurion Microsoft Excel Programming 6 26th Jan 2005 11:02 PM
Checking if a file exists =?Utf-8?B?YXJp?= Microsoft Access Getting Started 2 5th May 2004 07:14 PM
Checking if file exists in VBA NADavies Microsoft Excel Programming 3 23rd Oct 2003 02:16 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:33 AM.