Use "try-catch" block instead of "if" block to prevent interruption of new installation