lectrode / nwconnectionresetter

Precursor to quick-net-fix. Monitors network connection and attempts fix if disruption detected. Automatically exported from code.google.com/p/nwconnectionresetter
0 stars 0 forks source link

Auto-Updater #1

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I would like to add this. Unfortunately, at the moment the only way to 
implement this would require that the user reset their settings each time it 
updates.

I'm working on a solution for this

Original issue reported on code.google.com by electrodexs@gmail.com on 21 Aug 2011 at 1:03

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Auto-Updater will probably be downloading from 
http://nwconnectionresetter.googlecode.com/svn/trunk/Network_Resetter.bat

It will need to check after it has successfully connected to the internet

Original comment by electrodexs@gmail.com on 21 Aug 2011 at 7:20

GoogleCodeExporter commented 9 years ago
There will be different "branches" one can subscribe to. The above link will be 
used for the "DEV" branch (the very latest changes)

There will be a BETA "branch", hosted on my site or here, depending on whether 
or not the url changes to a download. I'll probably just host on my site, it'd 
be easier to keep track of the URL. The only other way I can think of is making 
an SVN branch called "BETA" and updating that branch whenever I release a new 
BETA version. Now that I think about it, that's probably the way I'll go.

There will also be a STABLE "branch" that will be hosted in the same location 
as the BETA "branch"

Depending on what the user chooses, the program will automatically update 
itself to one of these.

One of the last things I have to figure out is WHEN the batch file will update 
itself. Obviously when it has successfully repaired the connection, but if it's 
running in CONTINUOUS mode, I can't have it updating itself every time it 
checks the connection.

I'd need to have it automatically detect if the remote version is newer than 
the current one, but the only way I can think of doing that would be to have it:
-download a small text file with "SET vsn=##"
-name that file a .bat file
-call that new .bat file
-compare versions
-delete temporary version file

I don't like the thought of downloading that small file every time it detects 
an internet connection. hmmm... maybe once every 10 minutes. If I can get 
setting a variable to the substring of %DATE% and %TIME% working, I can use 
that to perform a calculation to see how long the program has been running.

The actual amount of time that has to pass will be set by the user.

The user will also be able to opt-out of the auto update.
By default, the program will update itself to whatever the latest version is 
that it was downloaded as
(versions in the BETA "branch" will be hard-coded to update to that branch by 
default, versions in the STABLE "branch" will be hard-coded to auto update to 
latest in STABLE branch, etc). 

Original comment by electrodexs@gmail.com on 2 Oct 2011 at 4:37

GoogleCodeExporter commented 9 years ago
The branch can probably be a setting. Depending on what the user chooses, the 
program would download from different urls.

Original comment by electrodexs@gmail.com on 20 May 2012 at 1:16

GoogleCodeExporter commented 9 years ago
The actual code to do the updating will need to be exported to a temporary .bat 
file and run. That .bat file would then download the updated file and overwrite 
the old one. Once it has done that, it would run the file it just created and 
delete itself.

Original comment by electrodexs@gmail.com on 20 May 2012 at 1:19

GoogleCodeExporter commented 9 years ago
r120 adds this

Original comment by electrodexs@gmail.com on 3 Jun 2012 at 10:45