Put this in your login script.
Make sure X:\spark points to wherever your “installed” version of Spark is (i.e. install it on one computer, then copy the C:\Program Files\Spark\ directory to a central place on a server. Remember to put your server details, along with error checking in as well.
MKDIR “C:\Program Files\Spark”
MKDIR “%USERPROFILE%\Spark”
XCOPY “x:\Spark” “C:\Program Files\Spark” /H /E /C /K /V /I /Q /Z /Y
ECHO #Saving Spark Settings > %USERPROFILE%\Spark\spark.properties
ECHO #Wed Aug 16 16:33:50 EST 2006 >> %USERPROFILE%\Spark\spark.properties
ECHO password=== >> %USERPROFILE%\Spark\spark.properties
ECHO idleTime=^1 >> %USERPROFILE%\Spark\spark.properties
ECHO idleOn=true >> %USERPROFILE%\Spark\spark.properties
ECHO timeDisplayed=true >> %USERPROFILE%\Spark\spark.properties
ECHO username=%USERNAME% >> %USERPROFILE%\Spark\spark.properties
ECHO windowTakesFocus=false >> %USERPROFILE%\Spark\spark.properties
ECHO toasterPopup=true >> %USERPROFILE%\Spark\spark.properties
ECHO timeout=^5 >> %USERPROFILE%\Spark\spark.properties
ECHO xmppPort=1234 >> %USERPROFILE%\Spark\spark.properties
ECHO autoLoginEnabled=false >> %USERPROFILE%\Spark\spark.properties
ECHO showHistory=true >> %USERPROFILE%\Spark\spark.properties
ECHO showEmptyGroups=false >> %USERPROFILE%\Spark\spark.properties
ECHO server=127.0.0.1 >> %USERPROFILE%\Spark\spark.properties
ECHO chatNotificationOn=true >> %USERPROFILE%\Spark\spark.properties
ECHO downloadDirectory=C:%USERPROFILE%\Spark >> %USERPROFILE%\Spark\spark.properties
ECHO startHidden=false >> %USERPROFILE%\Spark\spark.properties
ECHO fileTransferTimeout=^1 >> %USERPROFILE%\Spark\spark.properties
ECHO passwordSaved=true >> %USERPROFILE%\Spark\spark.properties
ECHO spellCheckerEnabled=true >> %USERPROFILE%\Spark\spark.properties
ECHO defaultChatLengthTimeout=^15 >> %USERPROFILE%\Spark\spark.properties
We’‘ve rolled this out to about 90 users and it works fine almost every time (and when it doesn’‘t, running it from the login script a second time usually fixes it – if that doesn’‘t, we delete the application and profile directory, run the login script, and it’'s never failed after that).
It also works perfectly with roaming profiles. If a computer doesn’‘t have Spark installed, our login script installs it but doesn’'t modify their settings.