Hi,
Because of the special requiremnet that download and update won't happen
when
the network connectivity is low. Only high. That is why i can't use
ClickOnce update automatically. It will have to be programatically. I
think
you may have missed the important part that no download and update when
network connectivity is low.
Actually, that's why I brought up option #2, and this is what I said about
it:
"It sounds to me like option 1 is your best choice, but option 2 is
definitely worth consideration."
It's your choice, since you know whether it's a requirement or something you
can avoid. I don't think that what you want is possible in ClickOnce, as
I've already stated, without programming it. Therefore, #2 might be your
only option. #1, IMO, is preferable if you can avoid this "feature".
I have created a very simple app and public it using ClickOnce technology.
I public it to a file share which is in my C drive
(C:\DeployTest\ClickOnceTest\). Run the setup.exe and it is installed in
my
PC (pretent that i am the end user). Then i created another form called
to
do the update but for some reason the
applicationDeployment.IsNetworkDeployed
returns fall all the time. here is the code. Hope you can help me with
this.
I have found the code from the msdn website. Thanks,
It sounds like, from the MSDN documentation, that your app isn't a ClickOnce
application or was installed on the local computer when the
IsNetworkDeployed property returns false:
"If you want your application to run both inside and outside of a ClickOnce
deployment (for example, if you need to debug your application on the local
computer before deploying it), test IsNetworkDeployed before accessing the
CurrentDeployment property.
IsNetworkDeployed will return true regardless of whether the application is
installed or hosted online, and regardless of whether it was installed from
a Web site, file share, or CD-ROM."
"ApplicationDeployment.IsNetworkDeployed Property"
http://msdn2.microsoft.com/en-us/li....applicationdeployment.isnetworkdeployed.aspx
<snip>
In the future, you may find it easier to load up the MSDN documentation for
classes and APIs that you don't understand. Reading the documentation
should prove to be quicker than waiting for responses in newsgroups, and
you'll acquire a much better understanding about the subject matter. I
recommend asking questions in newsgroups after you do the research or if you
don't quite understand something that you've read. My responses in this
thread were based partially on knowledge that I acquired from the
documentation on MSDN, which is readily available to you as well
HTH