# Reg_CommitChanges

> Commits changes to Registry. E.g. if the system path is updated directly from the registry database the changes take effect only after a reboot.

Source: https://docs.capaone.com/capainstaller/vb-scripting-library/registry-functions/reg-commitchanges/  
Product: CapaInstaller — a separate CapaSystems product; do not apply this page to any other.

### Description

Commits changes to Registry. E.g. if the system path is updated directly from the registry database the changes take effect only after a reboot. By using the Reg_CommitChanges function a system update is enforced and therefore a reboot is unnecessary.

### Syntax

Reg_CommitChanges() as Boolean

### Example

**VBScript**

```vb
If bStatus Then bStatus = Reg_CommitChanges()

```

[Scripting Guidelines](/capainstaller/vb-scripting-library/scripting-guidelines/)

### Related functions

[Registry Functions](/capainstaller/vb-scripting-library/registry-functions/) [Constants](/capainstaller/vb-scripting-library/addendum/constants/) [Package Property](/capainstaller/vb-scripting-library/addendum/package-property/) [Variables](/capainstaller/vb-scripting-library/addendum/variables/)
