473,386 Members | 1,962 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

more deployment advice please

Hi

I am ready to deploy my app to some testers who have agreed to do some beta
testing.

I have some questions that I would like some advice on please.

Some of the people who will use my application will be on 'partially locked
down networks', ie. their program files folder will be read only. They
would need to get system administrators to allow them to install it or go
through a change management process to load this application. I would like
to allow users to deploy to their 'application data' folder and run the app
from there. I know that this will mean that the application would only be
available to the log in of the user who installed the application.

If I make any locational references to external files in my code 'hard
coded' then the ability for users to choose an alternative location would be
diminished. What is the best way to make references 'relative' for example
if i have .... location = "c:\\documents and settings\\"+user+\\Application
data\\MyApp.chm, if i make that to read location ="MyApp.chm" that should be
OK for the reference, but how do i include those relative locations in my
setup and deployment project?

I have thought about using an xml file that would contain the location that
the application was written to, and use that for location references, but
how do i create that file at deployment time? Is this possible by coding in
the setup project part?

Could someone please let me know the best way forward for this - or am i
looking at this in the wrong way?

Doug
Jun 9 '07 #1
2 1100
Hello Doug,

Why not to refer to the other files from the app directory, and don't use
the full path?

---
WBR, Michael Nemtsev [.NET/C# MVP].
My blog: http://spaces.live.com/laflour
Team blog: http://devkids.blogspot.com/

"The greatest danger for most of us is not that our aim is too high and we
miss it, but that it is too low and we reach it" (c) Michelangelo

D\\MyApp.chm,
D>
Jun 9 '07 #2
"Doug" <go**********@optusnet.com.auwrote in message
news:46*********************@news.optusnet.com.au. ..
If I make any locational references to external files in my code 'hard
coded' then the ability for users to choose an alternative location would
be diminished. What is the best way to make references 'relative' for
example if i have .... location = "c:\\documents and
settings\\"+user+\\Application data\\MyApp.chm, if i make that to read
location ="MyApp.chm" that should be OK for the reference, but how do i
include those relative locations in my setup and deployment project?

If you are going to put things in specific places, don't hard-code the
location, use System.Environment and System.Environment.SpecialFolder.

location = Environment.GetFolderPath( SpecialFolder.Applicationdata ) +
@"\MyApp.chm";

Give them that as a default and let them pick a different location, which is
the typical behavior for an installer.

Jun 12 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Don Wash | last post by:
Hi There! I'm just wondering what are the deployment issues with ASP.NET (VB.NET) ? How do I deploy them to my hosting server? Do I just upload the dll files in the \bin directory or do I also...
1
by: csgraham74 | last post by:
Hi, I have a problem with the deployment of my software. I have built my system using the following structure c:\inetpub\wwwroot\Myfolder. When I deploy my system i do not really deploy my...
0
by: KG | last post by:
Hi, In our windows form when user press F1 for help we want our help file to open through silent deployment. But when it open it opens a dialog window to save it or open it or cancel it. When we...
4
by: John Smith | last post by:
I am just learning about deployment (setup projects) in vb.net. Is there a way to run an Executable during an Installation or at the end of an installation? I am trying to install a windows...
1
by: Simon | last post by:
Hi all, I have converted an old VB6 app to .NET. The following DLL's are generated which I include in the same directory as the exe. AxInterop.ComctlLib.dll AxInterop.MCI.dll...
1
by: Terry Holland | last post by:
I have just created my first asp.net application and I am ready to deploy. The solution consists of the following: A single asp.net assembly to be deployed to web server A number of vb.net...
4
by: Zany | last post by:
I added a Web Deployment Project so I can create a debug, staging, and release version. Each set is compiled and saved in a separate folder under the csproj_deploy folder. All works fine. Here's...
1
by: =?Utf-8?B?UmljaA==?= | last post by:
I use "Click Once" Deployment from VS2005. Works like a charm. I have to deploy a console app and an MS Access ADP. The console app invokes the ADP. I copy the ADP to the application files to be...
4
by: | last post by:
Using VS.NET I am wondering what methods developers use to deploy ASP.NET website content to a remote server, either using FTP or network file copy. Ideally there would be a one-button or...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.