HELP!

We need a quick way to update the workgroup template path for MS Word via KiXstart.

We have Office 97, 2000 and XP, so we would rather not have to go through all the various registry keys to check the version of office. Instead, we have a VBScript that automatically updates the Workgroup Templates path. This code works fine in VBA, VB, and VBScript. However, when it was ported to KiXstart, it does not work. No errors are produced, but the code does not change the workgroup template path.

HELP!

;VBScript Syntax works 100%
;Set wrd = CreateObject("Word.Application")
;wrd.Visible = False
;wrd.Options.DefaultFilePath(3) = "\\Procom2\wab\Tech Serv\"
;wrd.Quit
;Set wrd = Nothing

;Corresponding KiXstart code does not work.
;WHY? Undocumented/missing syntax or bug or what?
$wrd = CreateObject("Word.Application")
? ''+@ERROR+' - '+@SERROR ;returns "The Operation Completed Successfully"
$wrd.Visible = 0
$wrd.Options.DefaultFilePath(3) = "\\Procom2\wab\Tech Serv\"
? ''+@ERROR+' - '+@SERROR ;returns "The Operation Completed Successfully"
$wrd.Quit
$wrd = 0