Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- URLDownloadToFile, http://spodergang.de/keybinder_version/Vagos-Keybinder/Version.ini, Version.ini
- IniRead, n_version, Version.ini, Version, Version
- IniRead, OldKeybinder, DeleteOldKeybinder.ini, OldKeybinder, Name
- version = 1.01
- if(version != n_version)
- {
- Gui, show, w250 h70, LV²² Updater
- Gui, add, text, x20 y10, Es ist eine neuere Version verfügbar.
- Gui, add, text, x20 y27, Jetzt herunterladen?
- Gui, add, Button, w100 h20 x20 y45 gUpdate, Ja
- Gui, add, Button, w100 h20 x130 y45 gAbbrechen, Nein
- IniRead, dlink, Version.ini, Version, Dlink
- FileDelete, Version.ini
- return
- } else {
- FileDelete, %OldKeybinder%
- FileDelete, Version.ini
- FileDelete, DeleteOldKeybinder.ini
- return
- }
- Update:
- filename = Vagos_v%n_version%.exe
- URLDownloadToFile, %dlink%, %filename%
- oldfilename = Vagos_v%version%.exe
- IniWrite, %oldfilename%, DeleteOldKeybinder.ini, OldKeybinder, Name
- Gui, Destroy
- Run, %filename%
- return
- Abbrechen:
- Gui, Destroy
- return
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement