finalize install file
Resolve some errors in generate demo.