When we install our MSI, we are adding some entries to the registry. Now I'm trying to add a custom action in Install shied, which should replace some values into the registry after uninstallating of the respective MSI.

I have added a VBScript for the same with properties as follows:
InScript execution : Differed execution
Install Exec Sequence :After Remove Registry Values
Install Exec Condition :REMOVE~="All" OR MaintenanceMode="Remove"

But still its not properly working. Please guide me.
Thanks in Advance,
Vijesh Ollithodi