Tested tested tested.

Result is some changes to the registry functions. Uninstall function works in the one case I tested (had to make more changes to get it working). Install function too works for that one case.