Download and install http://www.appdeploy.com/tools/repackager/
Install “Spark 2.6.0 or 2.5.8”
Open “AppDeploy Repackager”
Open "recipe file .xml"
(There may be missing files using a different version of Spark.)
Uninstall Spark and test the Spark.msi, it’s a silent package.
Doc is attached with pictures.
If you are building a package from scratch, leave out all registry entries that are found.
You will only need the files/folders in the Spark folder, leave out any other files that are found.