cm 6870 compatibility with windows 10

I want to keep my files and apps and I always get this error message: 0xc1900101-0x40017 The installation failed in the SECOND_BOOT phase with an error during BOOT operation. (this is with the antivirus and hitman pro uninstalled).