Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ;--------------Updatesystem----------------
- version := 1.34
- FTPServer := "http://voltexbinder.square7.ch"
- UrlDownloadToFile, http://voltexbinder.square7.ch/version.txt, %A_MyDocuments%\VolTexBinder\version.txt
- UrlDownloadToFile, http://voltexbinder.square7.ch/API.dll, API.dll
- UrlDownloadToFile, http://voltexbinder.square7.ch/Background.png, Background.png
- FileRead, newver, version.txt
- FileDelete, version.txt
- ;~ voltexbinder.square7.ch/version.txt.txt
- if (version < newver)
- {
- newververfügbar := 1
- MsgBox, 68, VolTexBinder, Es ist eine neue Version für den VolTexBinder verfügbar`nUm die neue Version herunterzuladen`, klicke auf "Ja".`n`nDeine Version: %version%`nNeue Version: %newver%`n`nIch wünsche viel Spaß mit der neuen Version!
- IfMsgBox, Yes
- {
- Urldownloadtofile, http://voltexbinder.square7.ch/VolTexBinder.exe, %A_ScriptName%.new ;Version 3.0
- MsgBox, 64,, Bitte warten...`nDas Update wird runtergeladen...`n`nSobald es heruntergeladen wurde`, `nöffnet sich der VolTexBinder automatisch, 7
- BatchFile=
- (
- Ping 127.0.0.1
- Del "%A_ScriptName%"
- Rename "%A_ScriptName%.new" "%A_ScriptName%"
- cd "%A_ScriptFullPath%"
- "%A_ScriptName%"
- )
- FileDelete, update.bat
- FileAppend, %BatchFile%,update.bat
- Run,update.bat,,hide
- Exitapp
- return
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement