I want to protect uninstallation of console application which is running (listening to receive SMS message)
That is, when we try to uninstall it, it should check a text file
if (it has a text "allow" )
-> it will allow to uninstall
->it wont allow to uninstall
I am referring this link
but this will work for GUI application.
how to do it for console applications