I don't know if I should have done this but I found the productregistry file in the /var/sadm/install/ directory. I removed all references to the installation at /opt/SUNWappserver. I was then able to install it at that directory.
[Message sent by forum member 'jfaldmo' (jfaldmo)]
http://forums.java.net/jive/thread.jspa?messageID=303601