Deployment properties help

  • Thread starter Thread starter Tim Law
  • Start date Start date
T

Tim Law

I have added a custom install class to my application.
The System.Configuration.Installer.Context property is
supposed to contain runtime properties for the currently
running install. I have not been able to find a list of
properties that can be accessed. For example, I want to
know the install path. Please help.

Tim
 
You'll have to retrieve the proeprties by name.
Configuration.Installer.Context.Parameters["Application Folder"]

Configuration.Installer.Context.Parameters is a StringCollection object so
you can loop through the items to find out other available parameters.
 
Thanks for the response. I do understand how to access the paramaters. I
was hoping to find a list or reference to the names of the parameters that
would exist during a typicol install.


TJoker .NET said:
You'll have to retrieve the proeprties by name.
Configuration.Installer.Context.Parameters["Application Folder"]

Configuration.Installer.Context.Parameters is a StringCollection object so
you can loop through the items to find out other available parameters.


--
TJoker, MCSD.NET
MVP: Paint, Notepad, Solitaire

****************************************


Tim Law said:
I have added a custom install class to my application.
The System.Configuration.Installer.Context property is
supposed to contain runtime properties for the currently
running install. I have not been able to find a list of
properties that can be accessed. For example, I want to
know the install path. Please help.

Tim
 
Well, I think you can get those names by looping through the Parameters
collection. That was my point.

foreach(DictionaryEntry d in Configuration.Installer.Context.Parameters)
{
Debug.WriteLine("Parameter: " + d.Key + ", value: " + d.Value);
}

I don't have a reference handy for you. I'd recommend the book Inside Visual
Studio.Net 2003, which has a very good chapter on this topic with the
reference you want.

--
TJoker, MCSD.NET
MVP: Paint, Notepad, Solitaire

****************************************


Tim said:
Thanks for the response. I do understand how to access the paramaters. I
was hoping to find a list or reference to the names of the parameters that
would exist during a typicol install.


TJoker .NET said:
You'll have to retrieve the proeprties by name.
Configuration.Installer.Context.Parameters["Application Folder"]

Configuration.Installer.Context.Parameters is a StringCollection object so
you can loop through the items to find out other available parameters.


--
TJoker, MCSD.NET
MVP: Paint, Notepad, Solitaire

****************************************


Tim Law said:
I have added a custom install class to my application.
The System.Configuration.Installer.Context property is
supposed to contain runtime properties for the currently
running install. I have not been able to find a list of
properties that can be accessed. For example, I want to
know the install path. Please help.

Tim
 
Back
Top