Added registration process to win8&win8.1