Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --pastebin run fjSV9kHj
- --pastebin get fjSV9kHj updateinstaller
- --will download installer programs, and updateinstaller program
- --downloads the given file and then returns 2
- function pastebin(shellObj, path,code,overwrite)
- if overwrite then
- fs.delete(path)
- end
- shellObj.run("pastebin","get", code, path)
- return 2
- end
- --updates installer and self
- function updateInstaller(shellObj)
- print("Updating...")
- --table with installed files
- local installed={}
- --download latest installer
- local code="2WLg1AWL"
- local path="theinsektAPIs/installerAPI"
- print("downloading installerAPI...")
- pastebin(shellObj,path,code,true)
- --load installerAPI
- print("loading installerAPI...")
- os.loadAPI("theinsektAPIs/installerAPI")
- --mark installerAPI as installed
- print("marking installerAPI as installed...")
- installerAPI.markAsInstalled(installed, path,code)
- --use installerAPI to install additional installer programs,should also update self
- print("downloading additional installer programs...")
- local resCode=installerAPI.standardInstall(shellObj,installed,"E2yS26wy")
- print("Result: "..installerAPI.getRescodeMeaning(resCode))
- end
- --do the update
- updateInstaller(shell)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement