Advertisement
thegreatstudio

orange setup

May 2nd, 2013
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.65 KB | None | 0 0
  1. function main()
  2. print("Welcome to Orange Anti-Virus Setup!")
  3. print("Created By: thegreatstudio!")
  4. print("Do you want to install this program to your computer??")
  5. print("Type yes or no.")
  6. write("Choose: ")
  7. local choose = read()
  8. if choose == "yes" then
  9. install()
  10. else
  11. print("Aborting the installation!")
  12. end
  13. end
  14.  
  15. function install()
  16. resp = http.get("http://pastebin.com/raw.php?i=txZEtSbM")
  17. if resp then
  18. local fileHandle = fs.open("/orange", "w")
  19. fileHandle.write(resp.readAll())
  20. fileHandle.close()
  21. fs.makeDir("//.Orange")
  22. fs.makeDir("//.Orange/startup")
  23. fs.makeDir("//.Orange/kernel")
  24. else
  25. print("Can't reach the server!!")
  26. end
  27. end
  28.  
  29. main()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement