473,795 Members | 3,063 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

VB.NET and FTP Auto Update

I am building an applicatin that will be able to automatically update itself
from an FTP server.

I'd like to be able to determine which version of application is newer, the
one currently running or the one found on the FTP server (the .msi file).
My idea is to look at the FTP server for an .msi file and compare its date
with the date stamp of the application currently running and then download
the release only if it is newer then running application.

How can I get the information about currently running application such as
its file date stamp?

Any suggestions are welcome.

Regards,

--
Dino Buljubasic
Software Developer
http://rivusglobal.com
Nov 20 '05
17 9984
I know, but that is the requirement. I wish I could go with web server,
too.
"Ed Crowley" <cu******@pacbe ll.net> wrote in message
news:ex******** ******@TK2MSFTN GP09.phx.gbl...
You'll probably have to use time/date stamps - despite it being a crude
solution. An FTP server really isn't ideal for this kind of thing - you can do much more with a web server.

"Dino M. Buljubasic" <di************ *@rivusglobal.c om> wrote in message
news:iB******** ***********@new s1.telusplanet. net...
that is the requirement
"Ed Crowley" <cu******@pacbe ll.net> wrote in message
news:eo******** ******@TK2MSFTN GP12.phx.gbl...
Why do you have to do it from an FTP server?

"Dino M. Buljubasic" <di************ *@rivusglobal.c om> wrote in message news:Or******** ***********@new s1.telusplanet. net...
> Unfortunatelly, all the samples provided there and online are refering
to
> AutoUpdate with an Web Server. That is not what I want. I want to
do
it
> from an FTP server.
>
>
> "Ed Crowley" <cu******@pacbe ll.net> wrote in message
> news:ON******** ******@TK2MSFTN GP10.phx.gbl...
> > Look up .NET Application Blocks on MSDN. You can download some
code that
> > does this.
> >
> > HTH.
> >
> > "CJ Taylor" <ct*****@morton welding.com> wrote in message
> > news:eM******** ******@tk2msftn gp13.phx.gbl...
> > > You can get the version from your Assembly in the

System.Reflecti on > > > namespace with the
> > >
> > > AssemblyInforma tionalVersionAt tribute.Informa tionalVersion Property > > >
> > > Lot of information. can you have access to a sql server or text

file
to
> > > compare latest versions of the file?
> > >
> > > you can use a webclient to (I think) make connection to FTP. its just
a
> > > pain sometimes...
> > >
> > > I hate FTP though.
> > >
> > >
> > > "Dino M. Buljubasic" <di************ *@rivusglobal.c om> wrote in
message
> > > news:mc******** ***********@new s1.telusplanet. net...
> > > > Thank you for your reply.
> > > >
> > > > How can I get version number and how to create one?
> > > >
> > > > What is the better way? If you are reffering to auto update from
a
> Web
> > > > Server, it is not applicable to me, I have to do it from an

FTP > server.
> > > >
> > > > Regards,
> > > >
> > > > "CJ Taylor" <ct*****@morton welding.com> wrote in message
> > > > news:Oi******** *****@TK2MSFTNG P10.phx.gbl...
> > > > > File date stamp would be rather unreliable... get the version > info...
> > > > >
> > > > > plus, there a lot better ways to do live updaters than

filestamps
> > (plus
> > > > > firewall problems..)
> > > > >
> > > > >
> > > > > "Dino M. Buljubasic" <di************ *@rivusglobal.c om> wrote

in > > message
> > > > > news:EL******** ***********@new s1.telusplanet. net...
> > > > > > I am building an applicatin that will be able to automatically > > update
> > > > > itself
> > > > > > from an FTP server.
> > > > > >
> > > > > > I'd like to be able to determine which version of application
is
> > > newer,
> > > > > the
> > > > > > one currently running or the one found on the FTP server

(the .msi
> > > > file).
> > > > > > My idea is to look at the FTP server for an .msi file and
compare
> > its
> > > > date
> > > > > > with the date stamp of the application currently running and then
> > > > download
> > > > > > the release only if it is newer then running application.
> > > > > >
> > > > > > How can I get the information about currently running
application
> > such
> > > > as
> > > > > > its file date stamp?
> > > > > >
> > > > > > Any suggestions are welcome.
> > > > > >
> > > > > > Regards,
> > > > > >
> > > > > > --
> > > > > > Dino Buljubasic
> > > > > > Software Developer
> > > > > > http://rivusglobal.com
> > > > > >
> > > > > >
> > > > >
> > > > >
> > > >
> > > >
> > >
> > >
> >
> >
>
>



Nov 20 '05 #11
Cor
Dino,
Did you look at fileinfo?
Cor
Nov 20 '05 #12
Hi Cor,

yes FileInfo works fine but the problem is that I am downloading the file
from FTP server. To download the file, I have to create another file on
local machine and FileInfo gets the info about that newly created file, not
the original info of the file from the server.
"Cor" <no*@non.com> wrote in message
news:3f******** *************** @reader21.wxs.n l...
Dino,
Did you look at fileinfo?
Cor

Nov 20 '05 #13
Pardon my french...

but who gave you these fucked up specs?

If you even tell me its a security thing, so help me god....

1993 called. they want there protocol back...
"Dino M. Buljubasic" <di************ *@rivusglobal.c om> wrote in message
news:Ex******** ***********@new s1.telusplanet. net...
Hi Cor,

yes FileInfo works fine but the problem is that I am downloading the file
from FTP server. To download the file, I have to create another file on
local machine and FileInfo gets the info about that newly created file, not the original info of the file from the server.
"Cor" <no*@non.com> wrote in message
news:3f******** *************** @reader21.wxs.n l...
Dino,
Did you look at fileinfo?
Cor


Nov 20 '05 #14
I know, I know. The problem is I am in a new field here and there is no
time to change requirements. Saying that, I need solution to THIS
requirement although I would be way happier to use Web Server instead.

Any suggestions are welcome.

Regards,

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

"CJ Taylor" <ct*****@morton welding.com> wrote in message
news:OS******** ******@TK2MSFTN GP09.phx.gbl...
Pardon my french...

but who gave you these fucked up specs?

If you even tell me its a security thing, so help me god....

1993 called. they want there protocol back...
"Dino M. Buljubasic" <di************ *@rivusglobal.c om> wrote in message
news:Ex******** ***********@new s1.telusplanet. net...
Hi Cor,

yes FileInfo works fine but the problem is that I am downloading the file from FTP server. To download the file, I have to create another file on
local machine and FileInfo gets the info about that newly created file,

not
the original info of the file from the server.
"Cor" <no*@non.com> wrote in message
news:3f******** *************** @reader21.wxs.n l...
Dino,
Did you look at fileinfo?
Cor



Nov 20 '05 #15
Hello,

"Dino M. Buljubasic" <di************ *@rivusglobal.c om> schrieb:
I am building an applicatin that will be able to automatically update

itself

Not FTP, but maybe useful:

http://windowsforms.net/articles/appupdater.aspx

HTH,
Herfried K. Wagner
--
MVP · VB Classic, VB .NET
http://www.mvps.org/dotnet
Nov 20 '05 #16
Cor
in 4 months?
:-)
Nov 20 '05 #18

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

Similar topics

0
3740
by: Jerry Brenner | last post by:
Our users have potentially dirty legacy data that they need to get into our application. We provide a set of staging tables, which map to our source tables, that the users do their ETL into. Every row in the source tables has a generated integer id. Every row in both the source and staging tables has a unique publicid (varchar(22)). All foreign key references in the staging tables are through publicids. (The foreign key reference could...
1
1818
by: Indian Ahir | last post by:
How to use auto update component of .NET like windows auto update facility which runs directly??
3
1509
by: Billg_sd | last post by:
I've been assigned a task to write an auto-update utility for our customers to update their software (n-tier dotnet , db app). I've written custom installers and WMI based installs using installshield. I'm really not for "re-inventing the wheel". Is there a 3rd party solution for this? --Billg_sd
1
3050
by: news.microsoft.com | last post by:
Hello When we build a setup project. As long as we use the same setup.msi, it will give you the option of repair & remove. However, if I send them an update, it tells you have an instance of the program installed, remove it by going to add / remove.
5
8065
by: mbyrd1332 | last post by:
Just wondering if any of you knew of a way to trap the <!-- #BeginDate format:Am1 -->April 4, 2006<!-- #EndDate --> (Dreamweaver's Auto-Update-on-Save Date Code) into a PHP variable and still have the Date update on save? Or really any way to have a variable with the updated date stored when the file is saved is what i'm looking for, this just seemed like a possible solution. Something to the effect of: <?php
1
3093
by: ainsley | last post by:
Hi this is going to sound like a very basic question, but I am creating a database in Access which is based on a number of unlimited tables. In my data entry form i have a number of combo boxes relating to these tables in which the look up field has no limit to list, as I require the users to be able to add new fields. This works fine, however, I want the fields in the table that each combo box relates to, to auto update when a new record is...
0
1134
by: Agnes | last post by:
I try the auto-update program from IIS - http://sourceforge.net/projects/appupdater It works find in window2003 However, when I do the same procedure and setup in window 2000 IIS 5.0 it is fail to run the auto update ,some error about "Propfind 405" Is there any auto-update for window 2000 ??? Please help Thanks in advance
0
1081
by: Agnes | last post by:
my server is WINDOW 2003 , When i process auto update , there is an error" "Application Update Failed" The auto-update of this application failed with the following error message: Download of a new update for H://192.0.0.1/TestDir/1.0.01. " failed with the network error: The remote server returned an error (401) Unauthorized. To Correct this problem, try rebooting the computer and re-lanuch this application.
1
1574
by: kamalhasnainee | last post by:
I have solved my previous Problem.............. Now I have a new problem.. please see below... TextBox Auto update I have two table like "Employees" Table Fields:
0
9672
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9519
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10213
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
10000
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9040
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7538
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5563
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4113
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3722
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.