If you get a security error during installation of Tomcat, you have maybe still installed a Tomcat service an the system. You have to deinstall this service. For this open a DOS box and execute the command

sc delete [servicename]

for Tomcat 5 :: sc delete Tomcat5

After deleting the service, you’re right to continue the installation…