First, this will only work if the machine you are installing on supports 64-bit HP-UX.
There are 2 ways to do this. Do an actual upgrade to 64-bit.
Second, and my personal preference, do a clean installation of 64-bit HP-UX. Boot from the installation CD, and just follow the prompts. If your machine supports the 64-bit version, the you will be able to choose 32-bit or 64-bit installation.