Hello,
I have created an automated install of Spark in Powershell.
It checks if a specfic version is installed and recreates the spark.properties file for SSO.
You can find more details and the script on my website.
http://blog.oper-init.eu/?p=108
If somebody has comment or improvements, let me know.