MarcosKoco

TRC_Uninstaller

Jun 5th, 2021 (edited)
131
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.40 KB | None | 0 0
  1. local System = os -- Used for System things like os.time() to System.time()
  2. local Screen = term -- Used for Screen thing on the turtle or computer like term.clear() to Screen.clear()
  3. local Per = peripheral -- Used shortcut for peripheral
  4. local Text = textutils -- Used shortcut for textilils
  5. local Pack = Text.serialize -- Makes a new command for packing ( shortcut used from local Text)
  6. local UnPack = Text.unserialize -- Makes a new command for unpacking ( shortcut used from local Text)
  7.  
  8. local OldpullEvent = System.pullEvent
  9. System.pullEvent = System.pullEventRaw
  10.  
  11. Screen.clear()
  12. Screen.setCursorPos(1,1)
  13. print("Welcome to OS Uninstaller !")
  14. print("The uninstaller will now run...")
  15. print("---------------------------------")
  16. Screen.setCursorPos(1,5)
  17. Screen.write("##")
  18.  
  19. if fs.exists("/StartUp.lua") then
  20.     fs.delete("/StartUp.lua")
  21. end
  22.  
  23. Screen.setCursorPos(1,5)
  24. Screen.clearLine()
  25. Screen.write("##")
  26.  
  27. if fs.exists("/Back.lua") then
  28.     fs.delete("/Back.lua")
  29. end
  30.  
  31. Screen.setCursorPos(1,5)
  32. Screen.clearLine()
  33. Screen.write("#####")
  34.  
  35. if fs.exists("/OS") then
  36.     fs.delete("/OS")
  37. end
  38.  
  39. Screen.setCursorPos(1,5)
  40. Screen.clearLine()
  41. Screen.write("#######")
  42.  
  43. if fs.exists("/Progs") then
  44.     fs.delete("/Progs")
  45. end
  46.  
  47. if fs.exists("/API") then
  48.     fs.delete("/API")
  49. end
  50. Screen.setCursorPos(1,5)
  51. Screen.clearLine()
  52. Screen.write("##########")
  53.  
  54. Screen.setCursorPos(1,6)
  55. print("The uninstaller is done !")
Advertisement
Add Comment
Please, Sign In to add comment