Advertisement
SpaceRanger4321

New OS Installer

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