win32: fix registry file generation.