Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --get this program with: pastebin run fjSV9kHj
- --Can download and perform the commands in an "installfile"
- --this makes it easier to install a program that has multiple files, or which uses other programs
- --example: install pastebin 9d5ATSSz
- os.loadAPI("theinsektAPIs/installerAPI")
- local args={...}
- function main(shellObj)
- if #args==0 then
- print("Get this program like this:")
- print("do: pastebin run fjSV9kHj")
- print("Usage: installer installfile <code>")
- return
- end
- local installed={}
- local resCode = installerAPI.doInstallWords(shellObj,installed,args)
- if resCode < 0 then
- error("Error: resCode "..tostring(resCode).." ("..installerAPI.getRescodeMeaning(resCode)..")")
- end
- print("Result: ",installerAPI.getRescodeMeaning(resCode))
- return 0
- end
- main(shell)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement