| | |
C# VS2005 - Installing deployed application to an specif path
Please support our C# advertiser: Intel Parallel Studio Home
![]() |
•
•
Join Date: Feb 2006
Posts: 8
Reputation:
Solved Threads: 0
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.
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.
•
•
Join Date: Jan 2006
Posts: 275
Reputation:
Solved Threads: 11
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
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
![]() |
Similar Threads
- win98 and vb.net application with crystal reports (VB.NET)
- C# VS2005 - Problem publishing application (C#)
- tomcat jsp problem (JSP)
- problem with Sendkeys (Visual Basic 4 / 5 / 6)
- hi, how to set a proper path of a image file, many thanks! (C#)
- How do you install files in general on linux any operating system (*nix Software)
- field lengths (was: help urgent ) (Java)
Other Threads in the C# Forum
- Previous Thread: Nesting A Table
- Next Thread: C# Classes
| Thread Tools | Search this Thread |
.net access algorithm alignment app array barchart bitmap box broadcast c# c#gridviewcolumn check checkbox client combobox communication control conversion csharp custom database datagrid datagridview dataset datatable datetime degrees development draganddrop drawing elevated encryption enum event excel file focus form format forms function gdi+ hospitalmanagementsystem httpwebrequest image index input install java label list listbox localization login mandelbrot math messagebox mouseclick mysql operator path photoshop picturebox pixelinversion plotting pointer post programming radians read regex remote remoting richtextbox server sleep socket sql statistics stream string stringformatting sun table text textbox thread time timer update usercontrol validation visualstudio webbrowser whileloop windows winforms wpf xml





