C# VS2005 - Installing deployed application to an specif path

Please support our C# advertiser: Intel Parallel Studio Home
Reply

Join Date: Feb 2006
Posts: 8
Reputation: jcrcarmo is an unknown quantity at this point 
Solved Threads: 0
jcrcarmo jcrcarmo is offline Offline
Newbie Poster

C# VS2005 - Installing deployed application to an specif path

 
0
  #1
Mar 2nd, 2006
Hello everyone,

Where exactly do I configure a C# application to install in a specific path? Like, for example:

C:\Program Files\myApp

Please note that I don't mean the deployment folder!

I looked throughout the application properties, publish properties and publish Wizard, but didn't find a configuration option for that.

Thanks a lot,

JC.
Reply With Quote Quick reply to this message  
Join Date: Jan 2006
Posts: 275
Reputation: f1 fan is an unknown quantity at this point 
Solved Threads: 11
f1 fan f1 fan is offline Offline
Posting Whiz in Training

Re: C# VS2005 - Installing deployed application to an specif path

 
0
  #2
Mar 5th, 2006
What are you using to deploy the project? If you create a setup and deployment project you control the install directory there (though if you dont want the end user to be able to change then you have to do some changes to the setup UI too - though i always recommend you let a user choose).
If you want to fix the path for some reason - it rings warning bells. Why are you hardcoding paths? They should be relative to the application. If you need to hardcode to get to something then you should use isolated storage instead (for example if you are storing settings or some information that the user configures).
If it is to get to something in your app then you should use a relative path from your app directory (if you need to pass the full path to something you can get the app directory path at runtime).
Hope i have helped an not confused or made things worse
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC