Wrong constant in VBScript?

Action “Set Registry Value”

Action.RegValType = rtExpandString
returns an error

Error Executing script : AfterAction
Laufzeitfehler in Microsoft VBScript
Typenkonflikt: ‘Action.RegValType’

but this works
Action.RegValType = rtString

It’s a bug, rtExpandString was not registered with the scripting engine (it was probably added after the others and the dev forgot about scripting support).

You can work around it for now by replacing it with it’s value : 4

This will be fixed in the next update.