Guest User

starsetup

a guest
Jan 2nd, 2017
232
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.96 KB | None | 0 0
  1. -- StarSetup
  2. -- by itzstarstruck
  3. pcode = "Yt8AmCtn"
  4. appname = "BasicApp"
  5. local tArgs = {...}
  6. dinsef = tArgs[1]
  7. if #tArgs < 1 then
  8. print("Incorrect Usage of Program")
  9. print("starsetup -dinstall")
  10. else
  11. if dinsef == "-dinstall" then
  12. shell.run("pastebin get",pcode,".temporary")
  13. print("Checking for programs folder...")
  14. if fs.exists("/programs/") then
  15. print("Programs folder found.")
  16. print("Putting application into Programs folder.")
  17. fs.move(".temporary","/programs/"..appname)
  18. print("Checking if installation complete..")
  19. if fs.exists("/programs/"..appname) then
  20. print("Complete!")
  21. print("Thanks for using StarSetup!")
  22. else
  23. print("Incomplete!")
  24. end
  25. else
  26. fs.makeDir("/programs")
  27. print("Programs Folder created!")
  28. fs.move(".temporary","/programs/"..appname)
  29. print("Checking if installation complete..")
  30. if fs.exists("/programs/"..appname) then
  31. print("Complete!")
  32. print("Thanks for using StarSetup!")
  33. else
  34. print("Incomplete!")
  35. end
  36. end
  37. end
  38. end
Advertisement
Add Comment
Please, Sign In to add comment