Depends on what the application is, basically you need to look at the application and what uninstall command lines it supports. Basically it should be possible unless it needs to be de-registered from a console first eg some corporate antivirus software is like this.