Well there is a way of doing this (there's always a way of doing it! ;) But this would involve forking off the installation process and using IPC or another method to communicate with the forked process.
Is this what you are looking for? if so, consult the 'perldoc perlfork' page. There is however a limitation when used on a non-linux system like windows that doesn't support the fork system call.