Posted 28 January 2012 - 09:20 AM
USE THIS SCRIPT TO PUT THE INSTALLER ON A DISK QUICKLY AND EASILY
Very simple script to install a startup program to a dedicated terminal (can be modified to install other things as well) Can also be used to update that program on terminals that already have it.
Thanks to FuzzyPurp for showing me the functions to use to throw this together XD (because I'm a total noob at lua)
NOTE: this code is nolonger used, the code in Kaleb702's post is used instead. the code has been updated a few times, take a look at the code on cc-get to see the changes
this is a link to the program itself, use the link at the top to properly add it to a disk ready for use cc-get Link
EDIT: UPDATED THE POST A BIT FOR NO REASON OTHER THAN IT WAS BUGGING ME
Very simple script to install a startup program to a dedicated terminal (can be modified to install other things as well) Can also be used to update that program on terminals that already have it.
Thanks to FuzzyPurp for showing me the functions to use to throw this together XD (because I'm a total noob at lua)
NOTE: this code is nolonger used, the code in Kaleb702's post is used instead. the code has been updated a few times, take a look at the code on cc-get to see the changes
fs.delete("NAME") -- startup can be changed if you dont want a dedicated terminal
fs.copy("disk/PROGRAM","NAME") -- PROGRAM is the name of the program you have added to the disk to be installed and startup is the same as above
sleep(1)
print("Your program has been installed.")
print("Shutting down the terminal.")
sleep(2)
shell.run("shutdown")
this is a link to the program itself, use the link at the top to properly add it to a disk ready for use cc-get Link
EDIT: UPDATED THE POST A BIT FOR NO REASON OTHER THAN IT WAS BUGGING ME