Thanks for your reply.
It can be fixed by editting 'beats\generator\common\beatgen\setup\setup.go' as I mentioned above. However,I was stucked at ' "Found Elastic Beats dir at C:\Users\beats\go\src[github.com](http://github.com/)\your-github-name\examplebeat\vendor[github.com](http://github.com/)\elastic\beats"' which kept showing after that fix.
The documentation of beats doesn't mention whether it is officially supported to generate custom beats on Beats and I haven't seen successful examples of generating beats on windows.
Is it possible for you to confirm if it can be reproduced by the elastic team and generating beats on windows will be supported?