Mikhail,
Well.. I think you cannot easily change VSGUID of a Repository object (or any other object, in fact). It can be set only once, I
think.
The reason is obvious - you can have some references to the object by its VSGUID in database. This is especially true when you
assign a component by a repository.
So, the only way I see to implement what you want is to create another repository in the SLD file with new GUID. Replace the current
component reference to the old repository by the new one.
Then, of course, you can clean up the old Repository object from database.
Keep in mind that repository objects are supposed to change rarely. Rather their contents may change quite often.
If you are trying to implement an automatic Repository update through a script, you will suffer from the XPE object model not being
designed (no convenient way) for such functionality.
--
Regards,
KM, BSquare Corp.
PS. When you post scripts, please make sure to have comments as you do in original RSP file (use ";" only and have the comments on
separate lines only). Otherwise the script will fail and it is hard sometimes understand why it does not work.
PPS. Instead of "DBOPEN 'my server'" command you can use "DBOPEN setup" which will work on any machine with XPe Toolkit installed.
PPPS. I reserve a right to say I am wrong in my statement above that VSGUID is one-time-set property. We do not have documentation
for CMI so we are guessing here.