I got it to work! I used a program called ‘‘StubbieMan SFX Maker’’. This program allows you at convert a .MSI file to a .EXE with various syntax and/or options. I allows you to run a series of commands before and after the install. So, I created .CMD file with the below commands:
taskkill /F /IM spark.exe
erase “c:\program files\spark*.*” /F /S /Q
I added the .CMD file in a file to be executed during the .EXE install. In return it ran the above commands. I referenced the .CMD file and the .EXE file vua UNC paths to void having to map drives. I used the custom software deployment utility built into GFI’‘s Network Security Scanner. It’‘s a reall simply software deployment utility and there are plenty of free ones out there. So, the goal is to create a .EXE file that runs a .CMD file. This .CMD file needs the above commands. These commands kill the currently running spark.exe process, which in return allows the ERASE command to delete all files pertaining to spark. Then the msiexec command launches the actual .MSI install. All of this done through the .EXE file that ‘‘StubbieMan SFX Maker’’ created. It’'s a free download…
I’'m about to deploy it to 70 workstations.