Here's a report on how it went. Macrium couldn't clone the HDD, it threw an error. I then tried with AOMEI (another free backup program) and the cloning went well. After having swapped the old and the new HDDs, the computer started right away with no license issues. Very easy, and it feels good...