HTC M7 FAILED (remote: 22 loading zip info fail) m7_ul error

Starting flash process...
sending 'zip'... (50226 KB) OKAY
writing 'zip'... (bootloader) adopting the signature contained in this image...
(bootloader) signature checking...
(bootloader) rom parsing start ...
(bootloader) rom parsing finish ...
(bootloader) zip header checking...
(bootloader) zip info parsing...
Execution time is 11092(ms)
FAIL22 loading zip info fail
FAILED (remote: 22 loading zip info fail)
Flash process completed.




Fix
- Download firmware.zip from here (OTA UPDATE).
- Download fastboot executable (XDA).
- Put all files in one directory.
- Enter commands.

fastboot oem rebootRUU
fastboot erase cache
fastboot flash zip firmware.zip  (rename your file.zip)


NOTE:
If flash zip does hboot-pre update you have to run fastboot flash zip command again.

After this flash stock RUU again.