I am trying to write a script that will auto uninstall Dr Sol's VirusScan 4.0.3.

I can read the uninstall string from the registry but I wish to amend it as follows

typical uninstall string

C:\WINNT\ISUNINST.EXE '*' C:\PROGRA~1\Citrix\ICACLI~1\Uninst.isu

I need to add some switches where I have but a '*'

I've looked at the trim/len/substr commands, but can't use them as the uninstall string varies, so the length can't be specified.

is there a way to break the string at the first space add a switch or two and add the rest of the original string ?

Many thanks in advance

Damon