C
Chad Smith
Hi,
I have created a .NET deployment project in Visual Studio 2003. I have
specified an entry point into my own code in this installer which launches
into the familiar:
public override void Install(IDictionary savedState)
{
Application.Run(new MyForm());
base.Install(savedState);
}
That's the background and everything works swimmingly - one thing I cannot
find anywhere is how to get the installation location at this point, for
instance if the user chooses to install to the E: drive or similiar during
the install process, how would you then find the path the user chose?
The reason I want this path is because this application is a visual studio
add-in and thus can't use System.IO.Directory.GetCurrentDirectory() later on,
yet I want to allow the user to choose where the files it uses should be
installed and be able to access those.
Any help is kindly appreciated,
Chad Smith.
I have created a .NET deployment project in Visual Studio 2003. I have
specified an entry point into my own code in this installer which launches
into the familiar:
public override void Install(IDictionary savedState)
{
Application.Run(new MyForm());
base.Install(savedState);
}
That's the background and everything works swimmingly - one thing I cannot
find anywhere is how to get the installation location at this point, for
instance if the user chooses to install to the E: drive or similiar during
the install process, how would you then find the path the user chose?
The reason I want this path is because this application is a visual studio
add-in and thus can't use System.IO.Directory.GetCurrentDirectory() later on,
yet I want to allow the user to choose where the files it uses should be
installed and be able to access those.
Any help is kindly appreciated,
Chad Smith.