Advertisement
asteroidsteam

Installer

Dec 10th, 2016
450
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 2.28 KB | None | 0 0
  1. args = {...}
  2. if term.isColor() then
  3. if args[1] == "server" then
  4. print("Error installing J:OS Server service!")
  5. else
  6. if args[1] == "beta" then
  7. shell.run("pastebin run pD213HB3")
  8. else
  9. function install()
  10. term.setTextColor(colors.lightBlue)
  11. term.setBackgroundColor(colors.white)
  12. term.clear()
  13. term.setCursorPos(3,1)
  14. term.setBackgroundColor(colors.red)
  15. term.clearLine()
  16. print("Installation Guide for JS DOS 1.7")
  17. term.setCursorPos(3,3)
  18. term.clearLine()
  19. print("Please if you find a bug well, erm do nothing.")
  20. term.setCursorPos(3,6)
  21. term.clearLine()
  22. print("This will install a startup disk for JS DOS 1.7 to uninstall after installed just type \"Uninstall\" in CMD")
  23. -- Draw the text
  24. local tx, ty = 5, 10
  25. local text = "[Agree and Install]"
  26. term.setCursorPos(tx, ty)
  27. write(text)
  28. -- Event loop
  29. while true do
  30.   local e, but, cx, cy = os.pullEvent()
  31. if e == "mouse_click" then
  32.         if cx >= tx and cx <= tx + text:len() and cy == ty then
  33.          --PUT INSTALL CODE HERE
  34.         shell.clearAlias("help")
  35.         shell.setAlias("help", "os/help")
  36.         shell.run("cd /")
  37.         shell.run("pastebin get 8H9RmZuz startup")     
  38.         shell.run("mkdir ASSETS")
  39.         shell.run("mkdir os")
  40.         shell.run("mkdir loginkeys")
  41.         shell.run("cd ASSETS")
  42.         shell.run("pastebin get rWADAe0c Desktop")
  43.         shell.run("pastebin get jbE5tBnn CMD")
  44.         shell.run("cd /os")
  45.         shell.run("pastebin get n6cN292s help")
  46.         shell.run("pastebin get gda21ksW Desktop")
  47.         shell.run("pastebin get BtjcthXx uninstall")
  48.         shell.run("pastebin get kFmaBJQr un")
  49.         shell.run("pastebin get TFdKNWqq encrypt")
  50.         shell.run("pastebin get Fjm6cd2k login")
  51.         shell.run("pastebin get 189hC1AL ssh")
  52.         shell.run("pastebin get d2FSRc6Z antifile")
  53.         shell.run("pastebin get wjYsbRPC antivirus")
  54.         shell.run("cd /loginkeys")
  55.         shell.run("pastebin get a0HXru4P example")
  56.         shell.run("cd /")
  57.        
  58.          --END INSTALL CODE HERE
  59. shell.run("reboot")
  60. end
  61. end
  62. end
  63. end
  64. local file = fs.exists("startup")
  65. if file == true then
  66.  
  67. print("Sorry, a startup file for a different OS is currently installed to delete type y/n")
  68. input = io.read()
  69. if input == "y" then
  70. fs.delete("startup")
  71. print("Installing...")
  72. os.sleep(1)
  73. install()
  74. end
  75. else
  76. install()
  77. end
  78. end
  79. end
  80. else
  81. print("Your computer does NOT have the correct graphics card to install!")
  82. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement