kilrain

DFscript_installer.ahk

Apr 26th, 2013
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. if not A_IsAdmin
  2. {
  3.    Run *RunAs "%A_ScriptFullPath%"
  4.    ExitApp
  5. }
  6. ;;;;;;;;;;;;;;;;;;;;;;;;;;;; Installation Script ;;;;;;;;;;;;;;;;;;;;;;;;;
  7.  
  8. F1=http://pastebin.com/raw.php?i=fNJMTXTc
  9. F2=DFscript.ahk
  10. F3=http://pastebin.com/raw.php?i=HaziAzKp
  11. F4=functions.ahk
  12. F5=http://pastebin.com/raw.php?i=rLUhgGs3
  13. F6=keylist.txt
  14.  
  15. Progress, b w500, downloading DFscript.ahk..., DFscript Installer, dfscript
  16. urldownloadtofile,%F1%,%F2%
  17. Progress, 10, completed. checking files.., DFscript Installer, dfscript
  18. IfNotExist DFscript.ahk
  19. {
  20.    Progress, Hide
  21.    MsgBox , 5, DFscript Download ERROR 111, could not download %F2%.
  22.    IfMsgBox Cancel
  23.    {
  24.       ExitApp
  25.    }IfMsgBox Retry
  26.    {
  27.       Reload
  28.    }
  29. }
  30. Progress, 25 downloading functions.ahk..., DFscript Installer, dfscript
  31.  
  32.  
  33. URLDownloadToFile,%F3%,%F4%
  34. Progress, 50, downloading functions.ahk..., DFscript Installer, dfscript
  35. IfNotExist functions.ahk
  36. {
  37.    Progress, Hide
  38.    MsgBox , 5, DFscript Download ERROR 112, Could not download %F4%.
  39.     IfMsgBox Cancel
  40.    {
  41.       ExitApp
  42.    }IfMsgBox Retry
  43.    {
  44.       Reload
  45.    }
  46. }
  47.  
  48. URLDownloadToFile,%F5%,%F6%
  49. Progress, 75, completed.. Downloading keylist.txt..., DFscript Installer, dfscript
  50. IfNotExist keylist.txt
  51. {
  52.    Progress, Hide
  53.    MsgBox , 5, DFscript Download ERROR 113, Could not download %F6%.
  54.     IfMsgBox Cancel
  55.    {
  56.       ExitApp
  57.    }IfMsgBox Retry
  58.    {
  59.       Reload
  60.    }
  61. }
  62. Progress, 100, Download Complete
  63.  
  64. Sleep,2000
  65. Progress, off
  66. run,%F2%
  67. ExitApp
Advertisement
Add Comment
Please, Sign In to add comment