# Job_PostInstallProcedure

> Move entries from HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce to a temporary location.

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

### Description

Move entries from HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce to a temporary location.  
  
This function could be used in a case where the end users does not have admin rights. The issue could be that an installation has to update locked files. These files have to be updated during reboot and registered afterwards. To register a library admin rights is required.  
  
After Reboot the function [Job_PostProcedure](/capainstaller/vb-scripting-library/job-functions/job-postprocedure/) must be invoked form the post install job.  
  
If the function Job_PostInstallProcedure is being used it is also expected that the Computer is being rebooted immediately after.

### Syntax

Job_PostInstallProcedure() As Boolean

### Example

**VBScript**

```vb
If bStatus Then bStatus = Job_PostInstallProcedure()
If bStatus Then bStatus = Job_RebootWS("CapaInstaller")
```

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

### Related functions

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