So far I have used method like this:
-I have published single exe file
-"Autoupdate" = read newest version number from .txt file from my webpage (weebly) and if version number isnt same as in the exe file then bot opens download link (weebly too).
Well thats a really simple way to do it but this time Id like to know how to it more "professionally" I have thought to publish a whole folder instead of 1 exe file and updater updates just the necessary files. (how to get those? how to update? how to everything?)
I have several plans for this:
-User settings wont change anymore while newer version comes
-The updater should delete earlier version and download newest to same folder (or replace earlier one). At the moment, as I wrote on the top of msg, I have to select the folder every time.
Stubid question: Is this possible? making a startup form which loads "main form" from webpage. User settings / rescoures / etc would also be saved to loading form (but sometimes I should update them too..)
To be honest I have any idea how to start with this.. I hope you have
- check if new version is available
- start updater.exe/bat/...
- delete old version (close old version before deleting it if necessary)
- download new version
- start new version
- check if new version is available
- start updater.exe/bat/...
- delete old version (close old version before deleting it if necessary)
- download new version
- start new version
-The first one is clear. I know how to check
-This is too. I just have to make the updater
-Well I have never before deleted file but with fast googling found . looks it could work.
-download, how? I have earlier made: process.start() and this is the way I dont want to do anymore and how to get the location where earlier one is saved? (so it should autosave it to the same place)
download, how? I have earlier made: process.start() and this is the way I dont want to do anymore
WebClient.DownloadFile(Async)
Quote:
Originally Posted by BeginnerDO
and how to get the location where earlier one is saved? (so it should autosave it to the same place)
Well, what about Dropbox? Just drag your new version in the same folder (and replace it with the old version), the download link would be the same everytime.
Edit: Sorry didn't understand your second question.
PHP Code:
Dim myPath As String = Application.ExecutablePath
You could just pass myPath as a startup parameter to your updater.exe.
Well, what about Dropbox? Just drag your new version in the same folder (and replace it with the old version), the download link would be the same everytime.
Edit: Sorry didn't understand your second question.
PHP Code:
Dim myPath As String = Application.ExecutablePath
You could just pass myPath as a startup parameter to your updater.exe.
Thanks a lot
I think I get now the idea. I'll try later this evening
I generally generate an exe on runtime and launch that, that way that exe has access to overwrite/remove/create an exe that has the same name as the main program!
Public Shared Sub poista(nimi As String)
Dim FileToDelete As String
FileToDelete = Application.ExecutablePath.ToString()
If System.IO.File.Exists(FileToDelete) = True Then
System.IO.File.Delete(FileToDelete)
Else
'
End If
End Sub
I quess this requires running as admistator? cause it's giving error: Access to the path [path] is denied. So it there any other way to do that? Or can I somehow ask "run as admistator" only for this?
I am also really getting annoyed with this updating cause its working correctly... Say whats wrong
Code:
Dim linkki As Uri 'Download link'
Dim Uusitiedosto As String 'Name of the newest version'
Uusitiedosto = xml.<NewDataSet>.<WebUpdate>.<Nimi1>.Value.ToString()
linkki = New Uri(xml.<NewDataSet>.<WebUpdate>.<DownloadLink>.Value)
Try
poista(tiedosto) 'this is above and gives the error'
Catch ex As Exception
MsgBox("Earlier version of cannot be deleted." & vbNewLine & vbNewLine & ex.ToString())
End Try
lataa(linkki, Uusitiedosto) 'downloads newest version with webclient.downloadFileAsync'
MsgBox("Bot should be updated now :)" & vbNewLine & vbNewLine & "Restarting...") 'lets say this is MsgBoxA'
Process.Start(Uusitiedosto) 'Another problem here'
Form1.Close()
how can I make application wait that download is 100% ready? Now if I close MsgBoxA just after it popped up, process.start() doesnt work - it starts earlier version again (the same as application.restart() ). If I wait until the download is 100% ready and close the MsgBoxA after it then everything is working.
I generally generate an exe on runtime and launch that, that way that exe has access to overwrite/remove/create an exe that has the same name as the main program!
-jD
hoe do you create a .exe in runtime ?
Your coding C# right ?
help with autoupdate 07/22/2012 - SRO Private Server - 11 Replies I have been trying to make autoupdate in my server
but when i do it ,it say cant create file transfer manager
i checked in errors
errors i get :
1-
CFileSystem::OpenFile() - È*ÀÏ ¿ÀÇÂ½ÇÆÐ
2-
Shaiya Bot ( Autoupdate, nearly all Versions ) 11/25/2011 - Shaiya Hacks, Bots, Cheats & Exploits - 118 Replies IT DOES NOT WORK FOR Shaiya PH. Some of the
Hacks may also doesnt work anymore ( page 3 )
I did test it for Shaiya DE and Shaiya US, it should also
work on serveral Privat server.
DOWNLOAD:
uploaded.to - where your files have to be uploaded to
WTB AUTOUPDATE HACKS 08/31/2010 - Dekaron Trading - 1 Replies Im not sure if this is the right section or not but im Looking to Buy autoupdating Hacks or for sumone to provide me with updated hacks whenever the game updates if sumone has all the hacks message me or post here if ur interested hacks im looking for include:skill for summy devilswing,DA,poisonswrd,spiritdagger,/Bagi:madblo ods/Mage Inimid,creulty lightning, and the usuall Vac a good one not sum garbage one,Non Aggro again a good one, GM detect,GM privlages,Zoom,Far eye etc.... im sure u get...
AutoUpDate Trouble! 08/22/2009 - Dekaron Private Server - 2 Replies I need to know what i have to Upload to my webspace if i will use the Updater?
I know i have to insert my "IP" in this file:
"Update.ini"
Code:
<Section1>
IP
path /update
username anonymous
autoupdate 06/05/2007 - World of Warcraft - 13 Replies hio,
irgendjemand hat hier mal ein addon/programm gepostet, was automatisch nach den neusten versionen von addons sucht, die man selber benutzt. hab aber vergessen wie es hieß und wo es war. kann sich jemand erinnern?