Netinstall process should keep the license installed on your device. However, if you have doubts, then I recommend that you contact support@mikrotik.com before installation. The you might get a free replacement license if it will be lost after installation process (if you contact us first, not after installation).
Thank you. I finally found the solution. Not sure if there are some differences in the format. My solution is as follow
I use a CD to boot up a 6.42.5 ISO and install to my existing harddisk, fortunately both licences and settings can be maintained. The settings are sure backup or kept during installation
reboot will allow me to use the new version
Please note that if software upgrade failed, everyone would be scared on this approach to upgrade via netinstall or CD ISO.