Skip to content

Job_RemoveUserSetup

Removes a user script registration created by Job_ActivateUserSetup. Use it in the uninstall script of the package, so the user script no longer runs when users log on.

The function deletes the copied user script from <CapaInstaller client directory>\Usersetup\ and deletes the Active Setup key HKLM\SOFTWARE\Microsoft\Active Setup\Installed Components\<sGUID>.

When you create a package with a user script in the CapaInstaller Package Creator, the Package Creator adds this call to the uninstall script with the same GUID as the install script.

Job_RemoveUserSetup(sGUID) As Boolean

The GUID you used when you called Job_ActivateUserSetup, including the braces.

If bStatus Then bStatus = Job_RemoveUserSetup("{C7266906-339A-4905-BFB2-497D00F5C581}")

Scripting Guidelines

Job_ActivateUserSetup Constants Package Property Variables