good to see that your install is working, but ...

When an upgrade guid is written to the registry, it will be written in packed form.
The Value in the upgrade table should be the UN-packed guid. If you need to use a packed guid here, then one of your older packages must have had a packed guid set for its UpgradeCode, and this is still hanging around in the regsitry.