943,696 Members | Top Members by Rank

Ad:
  • C# Discussion Thread
  • Unsolved
  • Views: 8084
  • C# RSS
Mar 2nd, 2006
0

C# VS2005 - Installing deployed application to an specif path

Expand Post »
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.
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
jcrcarmo is offline Offline
8 posts
since Feb 2006
Mar 5th, 2006
0

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

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
Reputation Points: 26
Solved Threads: 11
Posting Whiz in Training
f1 fan is offline Offline
275 posts
since Jan 2006

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in C# Forum Timeline: Nesting A Table
Next Thread in C# Forum Timeline: C# Classes





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC