You can't install software into system directories without root. I have a few programs that I've installed as a regular user to subdirectories of $HOME. They are mostly java thinglets, but not always.
True but the script would need to know the directory name under $HOME to do the install.