Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- args = {...}
- if term.isColor() then
- if args[1] == "server" then
- print("Error installing J:OS Server service!")
- else
- if args[1] == "beta" then
- shell.run("pastebin run pD213HB3")
- else
- function install()
- term.setTextColor(colors.lightBlue)
- term.setBackgroundColor(colors.white)
- term.clear()
- term.setCursorPos(3,1)
- term.setBackgroundColor(colors.red)
- term.clearLine()
- print("Installation Guide for JS DOS 1.7")
- term.setCursorPos(3,3)
- term.clearLine()
- print("Please if you find a bug well, erm do nothing.")
- term.setCursorPos(3,6)
- term.clearLine()
- print("This will install a startup disk for JS DOS 1.7 to uninstall after installed just type \"Uninstall\" in CMD")
- -- Draw the text
- local tx, ty = 5, 10
- local text = "[Agree and Install]"
- term.setCursorPos(tx, ty)
- write(text)
- -- Event loop
- while true do
- local e, but, cx, cy = os.pullEvent()
- if e == "mouse_click" then
- if cx >= tx and cx <= tx + text:len() and cy == ty then
- --PUT INSTALL CODE HERE
- shell.clearAlias("help")
- shell.setAlias("help", "os/help")
- shell.run("cd /")
- shell.run("pastebin get 8H9RmZuz startup")
- shell.run("mkdir ASSETS")
- shell.run("mkdir os")
- shell.run("mkdir loginkeys")
- shell.run("cd ASSETS")
- shell.run("pastebin get rWADAe0c Desktop")
- shell.run("pastebin get jbE5tBnn CMD")
- shell.run("cd /os")
- shell.run("pastebin get n6cN292s help")
- shell.run("pastebin get gda21ksW Desktop")
- shell.run("pastebin get BtjcthXx uninstall")
- shell.run("pastebin get kFmaBJQr un")
- shell.run("pastebin get TFdKNWqq encrypt")
- shell.run("pastebin get Fjm6cd2k login")
- shell.run("pastebin get 189hC1AL ssh")
- shell.run("pastebin get d2FSRc6Z antifile")
- shell.run("pastebin get wjYsbRPC antivirus")
- shell.run("cd /loginkeys")
- shell.run("pastebin get a0HXru4P example")
- shell.run("cd /")
- --END INSTALL CODE HERE
- shell.run("reboot")
- end
- end
- end
- end
- local file = fs.exists("startup")
- if file == true then
- print("Sorry, a startup file for a different OS is currently installed to delete type y/n")
- input = io.read()
- if input == "y" then
- fs.delete("startup")
- print("Installing...")
- os.sleep(1)
- install()
- end
- else
- install()
- end
- end
- end
- else
- print("Your computer does NOT have the correct graphics card to install!")
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement