Advertisement
SpaceRanger4321

InstallMe

Jan 7th, 2020
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.28 KB | None | 0 0
  1. os.pullEvent = os.pullEventRaw
  2. -- Installer Function
  3. installerf = function(code, file)
  4. print("Downloading pastebin.com/"..code)
  5. downloader = http.get("http://pastebin.com/raw/"..code)
  6. if downloader then
  7. input = io.open(file, "w")
  8. input:write(downloader.readAll())
  9. input:close()
  10. return true
  11. else
  12. print("Download Failed Error Check HTTP . . .")
  13. os.reboot()
  14. end
  15. end
  16. -- End of function
  17. colBack = colors.lightBlue
  18. colText = colors.red
  19. installerf("3LdTetJJ", ".logo")
  20. installerf("cVADapZd", ".instFin")
  21. installerf("ZA6eLSif", "/.os/.uninstall")
  22. installerf("57TmWKA8", "/.os/.reinstall")
  23. term.clear()
  24. function install()
  25. shell.run("set shell.allow_disk_startup false")
  26. local logo = paintutils.loadImage(".logo")
  27. term.setBackgroundColor( colBack )
  28. term.clear()
  29. term.setTextColor( colBack )
  30. paintutils.drawImage(logo, 6, 4)
  31. term.setCursorPos( 1,1 )
  32. end
  33. install()
  34. sleep(2)
  35. local finish = paintutils.loadImage( ".instFin" )
  36. term.setCursorPos( 16, 6 )
  37. term.setBackgroundColor( colBack )
  38. installerf("vGdX1f3Z", "/startup")
  39. install()
  40. term.setCursorPos( 16, 6 )
  41. term.setBackgroundColor( colBack )
  42. installerf("gCVxvMY6", "/.os/.gui" )
  43. install()
  44. term.setCursorPos( 16, 6 )
  45. term.setBackgroundColor( colBack )
  46. installerf("GjhNSmJL", "restart")
  47. install()
  48. term.setCursorPos( 16, 6 )
  49. term.setBackgroundColor( colBack )
  50. installerf("XMEFm89J", "/.os/.backgrounds/desktop")
  51. install()
  52. term.setCursorPos( 16, 6 )
  53. term.setBackgroundColor( colBack )
  54. installerf("WJwBD9qy", "/.os/.backgrounds/pIcon")
  55. install()
  56. term.setTextColor( colors.red )
  57. term.setCursorPos( 13, 6 )
  58. term.setBackgroundColor( colBack )
  59. term.clearLine()
  60. print( "Half Way through installation . . ." )
  61. sleep(4)
  62. install()
  63. term.setCursorPos( 16, 6 )
  64. term.setBackgroundColor( colBack )
  65. installerf("VRxvgCGk", "/.os/.boot")
  66. install()
  67. term.setCursorPos( 16, 6 )
  68. term.setBackgroundColor( colBack )
  69. installerf("AUFnUb3M", "/.os/.password")
  70. install()
  71. term.setCursorPos( 16, 6 )
  72. term.setBackgroundColor( colBack )
  73. installerf("3zCuAfF5", "/edit")
  74. install()
  75. sleep(3)
  76. term.clear()
  77. term.setBackgroundColor( colors.white )
  78. term.clear()
  79. term.setTextColor( colors.green )
  80. term.setCursorPos( 16,6 )
  81. print( "SpaceOS Installed!" )
  82. paintutils.drawImage( finish, 5, 3 )
  83. sleep(3)
  84. os.reboot()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement