Hi,
By "ftp file synch", do you mean that you'll write your own program that
monitors an ftp directory?
That would surely work, however that's basically what ClickOnce does anyway.
Automatically or on demand, ClickOnce will check whether a newer version is
available on a web server, download it and then install it. Why reinvent
the wheel?
BTW, the requirement to defer updates when the program detects low network
connectivity doesn't really make much sense anyway. What happens if the
program detects high connectivity, then the user moves to a place with low
connectivity, or no connectivity at all, while the download is in progress?
I think that allowing the user to choose when they will perform the update
is a good choice, but if coding ClickOnce to do this is too complex for you
then I can't see how a custom solution is going to be any easier to develop
unless you already "know" exactly how to do it.
GL
--
Dave Sexton
"piggy" <pi***@discussi ons.microsoft.c omwrote in message
news:83******** *************** ***********@mic rosoft.com...
After doing some research, i don't think ClickOnce works well for us down
the
road. We are thinking about ftp file synch. Download the new version if
available to user machine. Is it possible? Thanks.
"Dave Sexton" wrote:
>Hi,
Well, from the docs on MSDN it looks like you might have to use a program
called MageUI.exe. I haven't used this myself, so I'm not sure how it
works, but it seems that you might have to manually configure the
application manifest (AFAICT).
"How to: Check for Application Updates Programmaticall y Using the
ClickOnce
Deployment API"
http://msdn2.microsoft.com/en-us/lib...63(VS.80).aspx
(Check out the table of contents (TOC) to the left and you'll see a whole
bunch of links to information regarding ClickOnce deployments.)
--
Dave Sexton
"piggy" <pi***@discussi ons.microsoft.c omwrote in message
news:AE******* *************** ************@mi crosoft.com...
>I appreciate your help.
i have a sample app (it just has a simple form) and i pulish it but i
uncheck the "appliation should check for update" since i don't want to
the
application to automatically check for the new version. I got that
part
done
and working. Then i add a update form in the same solution. The form
has
a
"update button" and that is the event handler when the event is raised.
But
it always returns "no new version" and it makes sense because i run the
setup
again so it has the lastest version. Then i create a new application
with
an
update in there and it is still the same thing. I am trying to come up
with
the way to test for update programatically . Do you have any ideas how
this
can be done? thanks,
"Dave Sexton" wrote:
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
applicationDepl oyment.IsNetwor kDeployed
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
IsNetworkDeplo yed 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 IsNetworkDeploy ed before accessing
the
CurrentDeploym ent property.
IsNetworkDeplo yed 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."
"ApplicationDe ployment.IsNetw orkDeployed Property"
http://msdn2.microsoft.com/en-us/lib...kdeployed.aspx
<snip>
In the future, you may find it easier to load up the MSDN
documentatio n
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
documentatio n on MSDN, which is readily available to you as well :)
HTH
--
Dave Sexton