Browse to your MySQL's bin folder (e.g. C:\Joget-v4-Enterprise-4.0.2\mysql-5.0.96-win32\bin) in your command prompt.
Execute the following.
mysqld --install
You will get the following when service is installed successfully.
Service successfully installed.
You may verify it by going to your Windows's List of Services