Job_RemoveUserSetup
Description
Section titled “Description”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.
Syntax
Section titled “Syntax”Job_RemoveUserSetup(sGUID) As Boolean
Parameters
Section titled “Parameters”sGUID (String)
Section titled “sGUID (String)”The GUID you used when you called Job_ActivateUserSetup, including the braces.
Example
Section titled “Example”If bStatus Then bStatus = Job_RemoveUserSetup("{C7266906-339A-4905-BFB2-497D00F5C581}")