kilrain

dfscript3_installer.ahk

May 17th, 2013
73
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=c6gyngkk
  9. F2=DFscript.ahk
  10. F3=http://pastebin.com/raw.php?i=snAQQU2N
  11. F4=functions.ahk
  12.  
  13. Progress, b w500, downloading DFscript.ahk..., DFscript Installer, dfscript
  14. urldownloadtofile,%F1%,%F2%
  15. Progress, 20, completed. checking..,
  16. IfNotExist DFscript.ahk
  17. {
  18.    Progress, Hide
  19.    MsgBox , 5, DFscript Download ERROR 111, could not download %F2%.
  20.    IfMsgBox Cancel
  21.    {
  22.       ExitApp
  23.    }IfMsgBox Retry
  24.    {
  25.       Reload
  26.    }
  27. }
  28. Progress, 40, downloading functions.ahk...
  29.  
  30.  
  31. URLDownloadToFile,%F3%,%F4%
  32. Progress, 75, downloading functions.ahk...
  33. IfNotExist functions.ahk
  34. {
  35.    Progress, Hide
  36.    MsgBox , 5, DFscript Download ERROR 112, Could not download %F4%.
  37.     IfMsgBox Cancel
  38.    {
  39.       ExitApp
  40.    }IfMsgBox Retry
  41.    {
  42.       Reload
  43.    }
  44. }
  45. Progress, 100, Download Complete
  46.  
  47. Sleep,2000
  48. Progress, off
  49. run,%F2%
  50. ExitApp
Advertisement
Add Comment
Please, Sign In to add comment