473,605 Members | 2,637 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

vb.net Deployment - Storing the Installation Directory

I'm having a complete brainfart so I'll just let you all know the issue
and listen to any possible solution you can offer without asking for a
specific way to do this ;)

I have a Solution ( VB 2005) that consists of 3 projects: A Service, a
Configuration Project, and the Deployment project.

The config project is just the UI that will save settings to an XML
file in the installation directory.

The service loads this XML file.

The problem is that the Service needs to know where this XML file is
loaded. If I hard code the path into it, if the user does not choose
the default path then it will fail.

My work around is that when I save the XML document, I save the
complete path of this in the directory. The problem therein lies that
I have an OpenFileDialog for importing some things into the
configuration page. Doing this changes the working directory so that
the XML document is no longer saved in the installation's directory,
but somewhere else. Not a problem if I save the path of this document
every time, but rather sloppy to have a programs config file on the
desktop ;).

So basically...I'm looking for a way to Store the Installation
directory during setup time. Or possible even a better solution. I
think I've been looking at work arounds too long that I've made myself
blind to any good fix.

Thanks for the help!
-Jesse

Feb 28 '06 #1
1 2046
Jesse Albert wrote:
I'm having a complete brainfart so I'll just let you all know the issue
and listen to any possible solution you can offer without asking for a
specific way to do this ;)

I have a Solution ( VB 2005) that consists of 3 projects: A Service, a
Configuration Project, and the Deployment project.

The config project is just the UI that will save settings to an XML
file in the installation directory.

The service loads this XML file.

The problem is that the Service needs to know where this XML file is
loaded. If I hard code the path into it, if the user does not choose
the default path then it will fail.

My work around is that when I save the XML document, I save the
complete path of this in the directory. The problem therein lies that
I have an OpenFileDialog for importing some things into the
configuration page. Doing this changes the working directory so that
the XML document is no longer saved in the installation's directory,
but somewhere else. Not a problem if I save the path of this document
every time, but rather sloppy to have a programs config file on the
desktop ;).

So basically...I'm looking for a way to Store the Installation
directory during setup time. Or possible even a better solution. I
think I've been looking at work arounds too long that I've made myself
blind to any good fix.

Thanks for the help!
-Jesse


Why not use the Registry to save the location?

Chris
Mar 1 '06 #2

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

Similar topics

5
4903
by: Arun Bhalla | last post by:
I'm working with VS.NET 2003 and .NET 1.1 (not SP1) on Windows XP SP1. My application is using the Windows Installer Bootstrap. (I may have also installed a module which detects requirements (.NET 1.1 -> MsiNetAssembly Support.) I have a few issues and questions regarding the MSI and its properties. * This may be my biggest annoyance at the moment. When the installer creates the target directory, it's setting them as read-only. When the...
1
3036
by: 3f | last post by:
Hello; We have made a web application that people can download from our web site and installed on: Windows XP Windows 2000 Professional Windows 2003 Server Windows 2000 Server
2
1325
by: John Miner | last post by:
When I set up a deployment project for a web application and execute the resulting .msi installer on the target web server, the installation wizard asks for a virtual directory target. I am attempting to host a production and a demo version of the same web application on the same server. Each version is set up as a separate web site with different host header names (e.g. http://myapp.mysite.com and http://myapp-demo.mysite.com) on the...
1
980
by: Steve | last post by:
Hi, My issue is the same as posted by someone else here, and is unanswered. I urgently need help. I am deploying an asp.net application, and the issue is that I need to create the installer such that when my client runs it, he can make the virtual directory at whichever location he wants. In general, when the installation wizard is run, the VD is created by the given name in inetpub > wwwroot. But supposedly I want it to be there at the...
5
9381
by: Grumpy Aero Guy | last post by:
I have a project with a deployment project. All works GREAT !!! Is there a system variable (maybe via the dot net framework I'm assuming) that stores the installation path of the app, assuming the end-user changes the default path that I set up in the deployment project? Thank you in advance!
1
1755
by: SKarnis | last post by:
I have created a simple ASP.NET Web Service with VB on Win XP Pro SP2, IIS 5.1, .NET 1.1. Service works in Visual Studio environment. Created an deployment package. Tried running the deployment package in VS using Install - get the following error. The specified path 'http://development/WebServerSetup' is unavailable. The Internet Information Server might not be running or the path exists and is redirected to another machine. Please...
1
1877
by: Gene | last post by:
I would like to know if the following is even possible with the visual studio.net Setup and Deployment project. 1. During the deployment after creation of application directory the setup needs to prompt user to select another location to send a data file elsewhere on target machine (with ability to create this directory). 2. After that this secondary location selected/created by the user,
6
4058
by: andrewbb | last post by:
I want to deploy a service with a windows app and the setup program must conform to the Vista certification requirements. Can that be done with the standard .net setup project? Assuming cost is an issue, what else is available?
4
3367
by: ochocki | last post by:
Hi, I've created a solution with a project of type "Windows Service" and deployment project for this service that creates installation package. I want to have more then one copy of this service installed on one machine. Since it is not possible to have two services with the same name I faced the problem: how to parametrize installation wizard? I mean, I would like to be able to modify service name during installation. Is it possible?
0
8425
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8071
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8288
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
6743
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5445
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
3912
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
2438
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1541
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
1271
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.