Refine windows service register
Signed-off-by: dinner3000 <dinner3000@hotmail.com>