Migrate Bootcamp to new HD

Hello. I’m thinking of replacing the old Hard drive in my 2012 Mac Mini with an SSD. What would be the best way to migrate the bootcamp partition to the new SSD? I have valuable software on the disk which I won’t be able to install on a new windows installment. Grateful for advice.
/Bjarne