The activation scripts are open source and available on github.
I personally take the HWID route, which you only need to do it once and the license persists between disk wipes and clean reinstalls.