Tech Support > Microsoft Windows > Windows CRM > Finding isv.config
Finding isv.config
Posted by JB on July 25th, 2005


How can one programmatically find where isv.config is on a system?
Obviously its quite easy to do this manually just by a brute force
search but are there any registry keys etc. that one can examine to
find where CRM has been installed?

Posted by Roof on July 25th, 2005


I think there is a registry key for CRM website. Just concatenate
_Resources/isv.config to it and you will get the path of isv.config.

Good Luck!

Posted by JB on July 26th, 2005


On 25 Jul 2005 16:28:24 -0700, "Roof" <maruf.dolani@gmail.com> wrote:

I thought there would be but looking throught the registry I can't
find anything explicitly pointing to it. There is a registry key for
the location of the IIS installation but that doesn't necessarily have
to be the location of the CRM installation.


Posted by David Jennaway on July 26th, 2005


There's no registry key indicating the physical location of the CRM
installation, as this information is only stored in the IIS Metabase.

I can think of 2 ways to get the physical path, both of which would require
code:

1. Query the IIS metabase programmatically, using the IIS SDK
(http://msdn.microsoft.com/library/de...359ff427ce.asp
gets you started). The web site under which CRM is installed is identified by
the registry key HKLM\Software\Microsoft\MSCRM\website

2. Create a simple web service within the CRM installation, with a piece of
code that returns the physical path, using the
HttpRequest.PhysicalApplicationPath property (assuming you're developing with
..Net). Doing this is arguably a security risk, though you can minimise this
by restricting access to the web service



"JB" wrote:

Posted by Matt Parks on July 28th, 2005


or you could open up the IIS Admin tool and select the properties of the CRM
Website and look at the Directory tab to see what directory the root of the
website is in.

Matt Parks
MVP - Microsoft CRM

----------------------------------------
----------------------------------------
On Tue, 26 Jul 2005 08:28:13 -0700, "David Jennaway"
<DavidJennaway@discussions.microsoft.com> wrote:

There's no registry key indicating the physical location of the CRM
installation, as this information is only stored in the IIS Metabase.

I can think of 2 ways to get the physical path, both of which would require
code:

1. Query the IIS metabase programmatically, using the IIS SDK
(http://msdn.microsoft.com/library/de...359ff427ce.asp
gets you started). The web site under which CRM is installed is identified by
the registry key HKLM\Software\Microsoft\MSCRM\website

2. Create a simple web service within the CRM installation, with a piece of
code that returns the physical path, using the
HttpRequest.PhysicalApplicationPath property (assuming you're developing with
..Net). Doing this is arguably a security risk, though you can minimise this
by restricting access to the web service



"JB" wrote:


Posted by JB on July 28th, 2005


On Thu, 28 Jul 2005 00:00:17 -0500, Matt Parks
<mattp65@Yax_RemoveDashAndX_xhoo.com> wrote:

Unfortunately the requirement is;
"How can one programmatically find where isv.config is on a system?"

Thanks for the suggestions though.


Posted by Roof on July 28th, 2005


What if you use ASP.NET Server Variables for this? I think you should
be able to get it.
- Roof

Posted by JB on July 28th, 2005


On 28 Jul 2005 08:58:09 -0700, "Roof" <maruf.dolani@gmail.com> wrote:

Unfortunately I'm not in an ASP application when I do this. This is
just a conventional windows application that wants to find its way to
isv.config. No ASP.net involved, in fact there's no good reason to
even have .net in this application!



Similar Posts