Major install script rewrite