Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- StarSetup
- -- by itzstarstruck
- pcode = "Yt8AmCtn"
- appname = "BasicApp"
- local tArgs = {...}
- dinsef = tArgs[1]
- if #tArgs < 1 then
- print("Incorrect Usage of Program")
- print("starsetup -dinstall")
- else
- if dinsef == "-dinstall" then
- shell.run("pastebin get",pcode,".temporary")
- print("Checking for programs folder...")
- if fs.exists("/programs/") then
- print("Programs folder found.")
- print("Putting application into Programs folder.")
- fs.move(".temporary","/programs/"..appname)
- print("Checking if installation complete..")
- if fs.exists("/programs/"..appname) then
- print("Complete!")
- print("Thanks for using StarSetup!")
- else
- print("Incomplete!")
- end
- else
- fs.makeDir("/programs")
- print("Programs Folder created!")
- fs.move(".temporary","/programs/"..appname)
- print("Checking if installation complete..")
- if fs.exists("/programs/"..appname) then
- print("Complete!")
- print("Thanks for using StarSetup!")
- else
- print("Incomplete!")
- end
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment