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 Github Site.
Spark/SparkInstall.ps1 at 5e548c988b35619fb5365a9ce74e1af2a9050ea3 · 2Dman/Spark · GitHub
If somebody has comment or improvements, let me know.