Re: vb.net Deployment - Storing the Installation Directory



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
.



Relevant Pages

  • vb.net Deployment - Storing the Installation Directory
    ... Configuration Project, and the Deployment project. ... The config project is just the UI that will save settings to an XML ... The service loads this XML file. ... My work around is that when I save the XML document, ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Viewing and Parsing XML files
    ... The Confirm Conversion on Open really did the trick.... ... I suppose I can treat the XML document as a text file ... then when you open the XML file choose Text file rather than XML document as the file type, but opening the .XML file in an XML ...
    (microsoft.public.word.docmanagement)
  • Re: Serialize a class adding a stylesheet
    ... I want to create an XML document from my object. ... but would have to be inserted into the XML file. ... > document from a serialized class is your goal, ...
    (microsoft.public.dotnet.framework)
  • Re: [PHP] XML & HTTP
    ... Chris Shiflett wrote: ... >> I generated XML file. ... ways to send an XML file. ... is supposed to receive the XML document? ...
    (php.general)
  • Re: xml in plain text file on heavy load.
    ... even if the XML file is magically and perfectly ... I want to emphasize that IIS would never be caching that XML file on its own ... Application is NOT synchronizing access to your ASP pages. ...
    (microsoft.public.inetserver.iis)