ClickOnce Server Name

  • Thread starter Thread starter Rob Quet
  • Start date Start date
R

Rob Quet

Hi,
So far we were using No Touch Deployment (Framework 1.1) to run the
application.
Using No Touch Deployment when we run command Application.ExecutablePath it
gives the full url from where the application executed. Like
http://ServerName/CompanyName/Application.exe.

Now we are trying to use ClickOnce Deployment Technology. Everything works
great.
But, when we run the command Application.ExecutablePath or
Application.StatupPath it gives local temp directory path.(where it
installed the application).

My question is how do I get the full url or the server name from where it
downloaded the files.

Thanks in advance,
Rob
 
You can check the ApplicationDeployment.CurrentDeployment.UpdateLocation
property.
You'll find ApplicationDeployment class in the System.Deployment.Application
namespace.
This class features plenty of other properties to check out; just check the
ApplicationDeployment.IsNetworkDeployed property before accessing them to
make sure your application is ClickOnce deployed.

Andrej
 
Back
Top