If you move everything of your current version in another directory then install new version. After installation check the variable and create new variables for old version

my suggestion is: if you want to have multiple versions it is easier to install it from source like rickbsgu said.