Hi Akshay,
In order to be able to use, during the uninstallation, the value of a property that was set during the installation, you can go in the "Properties" page and select the "Set persistent property" option for that property.
Let me know if that helped.
Best regards,
Eusebiu