i am using vb.net and problem is i am trying to read installation path on runtime can you please tell me what will be the code.
farjack |
| farjack Monday, April 14, 2008 6:37 PM |
RobinS
Below is the solution,but it will work after publish
Dim instance As System.Deployment.Application.ApplicationDeployment
lblServer.Text = instance.CurrentDeployment.UpdateLocation.AbsoluteUri.ToString()
farjack
|
| farjack Thursday, April 17, 2008 8:56 PM |
You'll have to supply more detail.
This is a Setup project or a ClickOnce?
The installation for the .NET Framework, is that what you mean?
|
| PhilWilson Monday, April 14, 2008 9:18 PM |
its a ClickOnce deployment,i am talking about the application path where application is published i need this path at runtime.
|
| farjack Tuesday, April 15, 2008 1:36 AM |
You can get to the top level of the deployment by looking for the location of the executable.
System.Windows.Forms.Application.StartupPath.
(I'm assuming you meant programmatically.)
RobinS.
GoldMail.com
|
| RobinDotNet Tuesday, April 15, 2008 2:11 AM |
Hi RobinS
no i am talking about the path whereapplication is published i.e.
Publish Location
\\mattimore\Shared\publish\
Installation URL
\\mattimore\Shared\publish\
i need this path on run time,these path we mentioned under Project Properties then under Publish
farjack |
| farjack Tuesday, April 15, 2008 1:55 PM |
You can't get that programmatically. Why do you want to?
RobinS.
GoldMail.com |
| RobinDotNet Tuesday, April 15, 2008 3:51 PM |
thanks RobinS
i have resolved the problem
farjack
|
| farjack Tuesday, April 15, 2008 6:28 PM |
Did you figure out a way to get it programmatically?? How did you resolve the problem?
Thanks,
RobinS. |
| RobinDotNet Wednesday, April 16, 2008 1:59 AM |
RobinS
Below is the solution,but it will work after publish
Dim instance As System.Deployment.Application.ApplicationDeployment
lblServer.Text = instance.CurrentDeployment.UpdateLocation.AbsoluteUri.ToString()
farjack
|
| farjack Thursday, April 17, 2008 8:56 PM |