Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local System = os -- Used for System things like os.time() to System.time()
- local Screen = term -- Used for Screen thing on the turtle or computer like term.clear() to Screen.clear()
- local Per = peripheral -- Used shortcut for peripheral
- local Text = textutils -- Used shortcut for textilils
- local Pack = Text.serialize -- Makes a new command for packing ( shortcut used from local Text)
- local UnPack = Text.unserialize -- Makes a new command for unpacking ( shortcut used from local Text)
- local OldpullEvent = System.pullEvent
- System.pullEvent = System.pullEventRaw
- Screen.clear()
- Screen.setCursorPos(1,1)
- print("Welcome to OS Installer !")
- print("The installer will now run...")
- print("---------------------------------")
- Screen.setCursorPos(1,5)
- Screen.write("#")
- if fs.exists("/StartUp.lua") then
- fs.delete("/StartUp.lua")
- end
- Screen.setCursorPos(1,5)
- Screen.clearLine()
- Screen.write("##")
- if fs.exists("/Back.lua") then
- fs.delete("/Back.lua")
- end
- Screen.setCursorPos(1,5)
- Screen.clearLine()
- Screen.write("###")
- if fs.exists("/OS") then
- fs.delete("/OS")
- end
- Screen.setCursorPos(1,5)
- Screen.clearLine()
- Screen.write("####")
- if fs.exists("/Progs") then
- fs.delete("/Progs")
- end
- Screen.setCursorPos(1,5)
- Screen.clearLine()
- Screen.write("#####")
- fs.makeDir("/OS/")
- Screen.setCursorPos(1,5)
- Screen.clearLine()
- Screen.write("######")
- shell.run("pastebin get HDJUG11K /OS/Uninstall.lua")
- Screen.setCursorPos(1,5)
- Screen.clearLine()
- Screen.write("#######")
- shell.run("pastebin get VLdgN5Mp /Back.lua")
- Screen.setCursorPos(1,5)
- Screen.clearLine()
- Screen.write("########")
- shell.run("pastebin get 2w6RkVHv /OS/.Menu.lua")
- Screen.setCursorPos(1,5)
- Screen.clearLine()
- Screen.write("#########")
- local file = "/StartUp.lua"
- local File = fs.open(file, "w")
- File.write('shell.run("/OS/.Menu.lua")')
- File.close()
- Screen.setCursorPos(1,5)
- Screen.clearLine()
- Screen.write("##########")
- Screen.setCursorPos(1,6)
- print("The installer is done !")
- sleep(2)
Add Comment
Please, Sign In to add comment