ClickOnce Server Name

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
 
A

Andrej

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top