| | |
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 ado.net algorithm angle array barchart bitmap box broadcast buttons c# capturing check checkbox client combobox control conversion convert csharp custom database datagrid datagridview dataset datetime degrees delegate design development disappear draganddrop drawing encryption enum event eventhandlers excel file form format forms function gdi+ geometry httpwebrequest image index input install java label leak list listbox mandelbrot math monodevelop mouseclick msword mysql operator path pause photoshop picturebox pixelinversion post programming radians regex remote remoting richtextbox round server sleep socket sql statistics stream string table text textbox thread time timer update usercontrol validation virtualization visualbasic visualstudio webbrowser windows winforms wpf xml





