Retrieve the regid
Remove former lib