Marlingaming

CC Tweaked Single file Installer

Jan 21st, 2022 (edited)
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  1. --this script acts as a Custom Installer for Apps on the Appstore that doesnt have their own custom installer
  2. local tArg = {...}
  3.  
  4.  
  5. local type = tArg[3]
  6. local Name = tArg[1]
  7. local Code = tArg[2]
  8.  
  9. local Path
  10.  
  11. if type == "Client" then
  12. Path = shell.resolve("ClientApps")
  13. elseif type == "image" then
  14. Path = shell.resolve("os_SystemFiles/Images")
  15. elseif type == "audio" then
  16. Path = shell.resolve("os_SystemFiles/Audio")
  17. end
  18.  
  19. Path = fs.combine(Path,Name)
  20.  
  21. shell.run("pastebin","get",Code,Path)
  22. if type == "Client" then
  23. shell.run("os/os_Programs/Scripts/ClientAppSetup",Name,Path)
  24. end
  25.  
Add Comment
Please, Sign In to add comment