Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Windows Forms / WinForm General / October 2005

Tip: Looking for answers? Try searching our database.

ClickOnce Server Name

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Rob Quet - 14 Oct 2005 19:30 GMT
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
Andrej - 15 Oct 2005 17:16 GMT
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

> Hi,
> So far we were using No Touch Deployment (Framework 1.1) to run the
[quoted text clipped - 14 lines]
> Thanks in advance,
> Rob

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.