LDShadowLord

VERRDownloader

Jan 13th, 2013
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 2.29 KB | None | 0 0
  1. -- Installer
  2. error283 = "false:283:Directory Exists"
  3. error261 = "false:261:File Exists"
  4. error258 = "false:258:Could Not Connect to Server"
  5. term.clear()
  6. term.setCursorPos(1,1)
  7. print("VERR Downloader - OneStop Downloader!")
  8. print("Beginning Download...")
  9. if fs.exists("ProgramFiles") == false then
  10.   shell.run("mkdir","ProgramFiles")
  11.   print("Directory Configured")
  12. else
  13.   print(error283)
  14. end
  15. if fs.exists("ProgramFiles/temp") == false then
  16.   shell.run("mkdir","ProgramFiles/temp")
  17.   print("Directory configured")
  18. else
  19.   print(error283)
  20. end
  21. if fs.exists("ProgramFiles/temp/verrdown.tmp") == false then
  22.   shell.run("pastebin","get","8TycFHzF","ProgramFiles/temp/verrdown.tmp")
  23.   if fs.exists("ProgramFiles/temp/verrdown.tmp") == false then
  24.     print(error258)
  25.     print("The application will now close.")
  26.     sleep(0.5)
  27.     shell.exit()
  28.   else
  29.     print("Connection Established. Beginning download")
  30.   end
  31. else
  32.   fs.delete("ProgramFiles/temp/verrdown.tmp")
  33.   shell.run("pastebin","get","8TycFHzF","ProgramFiles/temp/verrdown.tmp")
  34.   if fs.exists("ProgramFiles/temp/verrdown.tmp") == false then
  35.     print(error258)
  36.     print("The application will now close.")
  37.     sleep(0.5)
  38.     shell.exit()
  39.   else
  40.     print("Connection Established. Beginning download")
  41.   end
  42. end
  43. fs.delete("ProgramFiles/firewolf")
  44. fs.delete("ProgramFiles/thunderbird")
  45. fs.delete("ProgramFiles/npaintpro")
  46. fs.delete("ProgramFiles/lightshot")
  47. shell.run("pastebin","get","A7wGH3ty","ProgramFiles/firewolf")
  48. print("Firewolf Downloaded")
  49. sleep(0.1)
  50. shell.run("pastebin","get","R9Eb4XuG","ProgramFiles/thunderbird")
  51. print("Thunderbird Downloaded")
  52. sleep(0.1)
  53. shell.run("pastebin","get","xhFunCyF","ProgramFiles/npaintpro")
  54. print("NPaintPro Downloaded")
  55. sleep(0.1)
  56. shell.run("pastebin","get","g0nVKvgr","ProgramFiles/lightshot")
  57. print("lightshot Downloaded")
  58. sleep(0.1)
  59. print("Download complete...")
  60. sleep(0.1)
  61. print("Configuring files...")
  62. shell.setAlias("firewolf","ProgramFiles/firewolf")
  63. shell.setAlias("fw","ProgramFiles/firewolf")
  64. shell.setAlias("thunderbird","ProgramFiles/thunderbird")
  65. shell.setAlias("tb","ProgramFiles/thunderbird")
  66. shell.setAlias("npaintpro","ProgramFiles/npaintpro")
  67. shell.setAlias("npp","ProgramFiles/npaintpro")
  68. shell.setAlias("lightshot","ProgramFiles/lightshot")
  69. print("Configured...")
Add Comment
Please, Sign In to add comment