473,398 Members | 2,380 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,398 software developers and data experts.

Interesting question

I have two applications App1 and App2.

App1 is just checking for new version of App2.

If it finds newer version of App2 it will download App1 AND App2. (both of
them). That is what I am doing now in my application.

I am downloading from an FTP server and I can see download progress.
However, when the download is finished, App1 is not updated (which I
understand, because its file is being locked in the process of update).
(don't ask me why I download App1 then :)).

So, I can watch the download process of both App1 and App2, the App2 gets
updated (because it was not locked), App1 does not get updated (probably
because it was locked during the download).

My question is "If I can see download progress, what happens with the update
of App1?" Should not this pop up the warning box saying "File Access
Denied"? In my case it does not. Everything looks like it is downloading
App1 and overwriting it but when I run the code, I can see that what runs is
actually old App1.

Just an interesting thing, wondering what actuallly happens with the file
being downloaded.

Thank you,

--
Dino Buljubasic
Software Developer
http://rivusglobal.com


Nov 20 '05 #1
12 1393
Cor
Dino,
This depends on your FTP process.
But this will of course never work
I think that the solution is as in all this cases to download it with
another name.
Putting in the register that it is new downloaded (that is my way doing it,
but it can be another way too of course).
Give the command over to the downloaded program.
Look in the register, copy the newone over the old one (renaming does not
work either)
Set the register back.
And give then the command back to that new one.
If you will kill the downloaded copied file is a matter of taste, I would
leave it.

I hope this brings you on the route.
Cor
Nov 20 '05 #2
When you say "Registar", are you thinking of registry? Sorry, don't get it.

I am probably going to do it so that App1 downloads App2 and App downloads
App1. that way, they'll download each other because they never run at the
same time.

However, I still don't understand what happens with the file that is
downloaded. It gets sent thru the wires for sure, I am just wondering what
OS or whatever does with it when it finds out that the file with the same
name already exists and that it is running.

Thanks,

--
Dino Buljubasic
Software Developer
http://rivusglobal.com

"Cor" <no*@non.com> wrote in message
news:3f***********************@reader21.wxs.nl...
Dino,
This depends on your FTP process.
But this will of course never work
I think that the solution is as in all this cases to download it with
another name.
Putting in the register that it is new downloaded (that is my way doing it, but it can be another way too of course).
Give the command over to the downloaded program.
Look in the register, copy the newone over the old one (renaming does not
work either)
Set the register back.
And give then the command back to that new one.
If you will kill the downloaded copied file is a matter of taste, I would
leave it.

I hope this brings you on the route.
Cor

Nov 20 '05 #3
Cor
Hi Dino,
Yes I did mean registry (language error).
To find out what happens, is very easy to test.
Make a copy of a program
Start the program and try to copy the one you did copy over the running one
with explorer.
You normaly will see a text that it is impossible.
So that will throw an exeption in your program.
Cor
Nov 20 '05 #4
I don't get any exception though. It just shows that the file is being
downloaded but when I run it, the old version pops up
--
Dino Buljubasic
Software Developer
http://rivusglobal.com

"Cor" <no*@non.com> wrote in message
news:3f***********************@reader21.wxs.nl...
Hi Dino,
Yes I did mean registry (language error).
To find out what happens, is very easy to test.
Make a copy of a program
Start the program and try to copy the one you did copy over the running one with explorer.
You normaly will see a text that it is impossible.
So that will throw an exeption in your program.
Cor

Nov 20 '05 #5
Cor
Did you make the ftp yourself?
Nov 20 '05 #6
Lots of it yes, I used lots of references and code from the internet.
"Cor" <no*@non.com> wrote in message
news:3f***********************@reader22.wxs.nl...
Did you make the ftp yourself?

Nov 20 '05 #7
Cor
I was thinking, do you have maybe a Try that you don't real Catch with an
exception.
I could make that mistake, you of course not, but still I ask it.
Nov 20 '05 #8
:)

o, no, I could make that kind of error easily, too.

Thanks

"Cor" <no*@non.com> wrote in message
news:3f***********************@reader20.wxs.nl...
I was thinking, do you have maybe a Try that you don't real Catch with an
exception.
I could make that mistake, you of course not, but still I ask it.

Nov 20 '05 #9
why don't you let start the app2 after app1 and let app2 replace/update
app1? since app1 is replacing app2, let app2 replace app1 ..just a thought
:-)
"Dino M. Buljubasic" <di*************@rivusglobal.com> wrote in message
news:IyLbb.106$UE6.81@edtnps84...
I have two applications App1 and App2.

App1 is just checking for new version of App2.

If it finds newer version of App2 it will download App1 AND App2. (both of them). That is what I am doing now in my application.

I am downloading from an FTP server and I can see download progress.
However, when the download is finished, App1 is not updated (which I
understand, because its file is being locked in the process of update).
(don't ask me why I download App1 then :)).

So, I can watch the download process of both App1 and App2, the App2 gets
updated (because it was not locked), App1 does not get updated (probably
because it was locked during the download).

My question is "If I can see download progress, what happens with the update of App1?" Should not this pop up the warning box saying "File Access
Denied"? In my case it does not. Everything looks like it is downloading
App1 and overwriting it but when I run the code, I can see that what runs is actually old App1.

Just an interesting thing, wondering what actuallly happens with the file
being downloaded.

Thank you,

--
Dino Buljubasic
Software Developer
http://rivusglobal.com

Nov 20 '05 #10
Yes, I came to the idea as well. That will probably be the way to go.

Thanks,

--
Dino Buljubasic
Software Developer
http://rivusglobal.com

"ramki rao" <ve**************@hotmail.com> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
why don't you let start the app2 after app1 and let app2 replace/update
app1? since app1 is replacing app2, let app2 replace app1 ..just a thought
:-)
"Dino M. Buljubasic" <di*************@rivusglobal.com> wrote in message
news:IyLbb.106$UE6.81@edtnps84...
I have two applications App1 and App2.

App1 is just checking for new version of App2.

If it finds newer version of App2 it will download App1 AND App2. (both of
them). That is what I am doing now in my application.

I am downloading from an FTP server and I can see download progress.
However, when the download is finished, App1 is not updated (which I
understand, because its file is being locked in the process of update).
(don't ask me why I download App1 then :)).

So, I can watch the download process of both App1 and App2, the App2 gets updated (because it was not locked), App1 does not get updated (probably
because it was locked during the download).

My question is "If I can see download progress, what happens with the

update
of App1?" Should not this pop up the warning box saying "File Access
Denied"? In my case it does not. Everything looks like it is downloading App1 and overwriting it but when I run the code, I can see that what runs is
actually old App1.

Just an interesting thing, wondering what actuallly happens with the

file being downloaded.

Thank you,

--
Dino Buljubasic
Software Developer
http://rivusglobal.com


Nov 20 '05 #11
Hi Dino,

Yet the mystery remains - where does the App1 download go? One to tell
your grandchildren :-

Grandad Dibno:
[hushed and serious] "And I downloaded it again and again" ...
[suspensuful pause] ... "and nobody knows where it disappeared!!"

Children
[gasp] "Ooooh"

Regards,
Fergus
Nov 20 '05 #12
ha, ha,

yes, the mistery remains .... Hope to get the answer to it, though. :)
"Fergus Cooney" <fi******@tesco.net> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
Hi Dino,

Yet the mystery remains - where does the App1 download go? One to tell
your grandchildren :-

Grandad Dibno:
[hushed and serious] "And I downloaded it again and again" ...
[suspensuful pause] ... "and nobody knows where it disappeared!!"

Children
[gasp] "Ooooh"

Regards,
Fergus

Nov 20 '05 #13

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: pythonUser_07 | last post by:
Is this the correct place to post a jython question? I posted the following in the jython group, but I figured I'd post here too: _________________________________________ I am assuming that...
8
by: ºa¤Ö | last post by:
I find a interesting question, and I cannot solve it @.@ If i want to insert unicode data, I need using recordset.addnew instead of using "insert into table" query or "stored procedure" All...
2
by: Dylan Phillips | last post by:
A strang error is occurring when I run the following code: SqlConnection c = new SqlConnection(); c.ConnectionString = "Initial Catalog=Northwind;user id=sa;password=kat1ie;Data Source=server";...
7
by: git_cs | last post by:
Hey, guys and gals Somedays ago, I had asked for the DES algorithm in C language. Although I have written the algorthim in C myself, I am facing a peculiar problem, which I hope some of u guys and...
7
by: Jax | last post by:
I have this code, behold: string message = "Are you sure? You will lose this customer forever. (Well you'll have re-create from scratch)"; string caption = "Delete"; MessageBoxButtons buttons...
6
by: Claude Yih | last post by:
Hi, everyone. I noticed an interesting thing about fread() this afternoon. Well, I can't see why so I post this message in the hope of getting some explanation. Please help me. I wrote the...
26
by: v4vijayakumar | last post by:
Happened to see my old (last millennium) c code. Almost forgot that I wrote it . It is interesting. :-) int sqrt(int no) { int t; no = t * t; return t; }
5
by: Will Honea | last post by:
I've hit an interesting trap trying to migrate data off an OS/2 server running version 7.2 (fp14) over to 8.2 on Linux. Seems that one table has a column defined in the DDL as "BIGINT NOT NULL...
126
by: jacob navia | last post by:
Buffer overflows are a fact of life, and, more specifically, a fact of C. All is not lost however. In the book "Value Range Analysis of C programs" Axel Simon tries to establish a...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.