Andrew Benton, sorry I didn't describe things very well, I wanted something more along the lines of what Hko put up. However I still don't quite understand what is happening with the script, it makes another script that permantly put my variables into place so that I wouldn't have to enter them each time the script was ran. But I don't see how it did that.
read -ep "Please enter path to copy from: " COPYFROM
read -ep "Please enter path to copy to: " COPYTO
the install script collects the locations that I want there.
sed -e 's:__COPYFROM__:'$COPYFROM':' \
-e 's:__COPYTO__:'$COPYTO':' \
this part confuses me a little. the sed -e is saying wherever we find "__COPYFROM__" replace it with the value of "$COPYFROM", and then again with "COPYTO", then it takes "skript.sh" and makes those changes, but only in ram and doesn't over write "./skript.sh" but instead writes it with changes to "$INSTALLDIR/$SCRIPT". is that right? I think the part that is confusing me is the redirect, if that wasn't there would the sed command just take ./skript.sh make the changes and overwrite it? and the reason that it doesn't overwrite ./skript.sh is because we redirect it?
In any case thank you both very much for your help.