Advertisement
Guest User

Untitled

a guest
Jun 26th, 2017
47
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.00 KB | None | 0 0
  1. ; --------------------------------- updatefunktion
  2. URLDownloadToFile, http://spodergang.de/keybinder_version/Vagos-Keybinder/Version.ini, Version.ini
  3. IniRead, n_version, Version.ini, Version, Version
  4. IniRead, OldKeybinder, DeleteOldKeybinder.ini, OldKeybinder, Name
  5.  
  6. version = 1.01
  7.  
  8. if(version != n_version)
  9. {
  10. Gui, show, w250 h70, LV²² Updater
  11. Gui, add, text, x20 y10, Es ist eine neuere Version verfügbar.
  12. Gui, add, text, x20 y27, Jetzt herunterladen?
  13. Gui, add, Button, w100 h20 x20 y45 gUpdate, Ja
  14. Gui, add, Button, w100 h20 x130 y45 gAbbrechen, Nein
  15. IniRead, dlink, Version.ini, Version, Dlink
  16. FileDelete, Version.ini
  17. return
  18. } else {
  19. FileDelete, %OldKeybinder%
  20. FileDelete, Version.ini
  21. FileDelete, DeleteOldKeybinder.ini
  22. return
  23. }
  24.  
  25. Update:
  26. filename = Vagos_v%n_version%.exe
  27. URLDownloadToFile, %dlink%, %filename%
  28. oldfilename = Vagos_v%version%.exe
  29. IniWrite, %oldfilename%, DeleteOldKeybinder.ini, OldKeybinder, Name
  30. Run, filename
  31. return
  32.  
  33. Abbrechen:
  34. Gui, Destroy
  35. return
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement