Write manifest file to dir
Remove invalid registry calls