Even where it's not legal you can often do much of the work and hire a licensed contractor for the "final step". It can be worth asking around.