I apologize, as I'm confident my previous example won't work. That's only good for installing.
The first objective would be to figure out how to uninstall SQL Server without using IA (and with the command line)...
This article might help:
http://support.microsoft.com/kb/955499You're likely going to need to consult Microsoft on this.
But, once you have that figured out, you should be able to place the code to do it either immediately before or after your Apply Uninstall command, since it shouldn't matter whether your program is installed or not.
I would re-use the checksql... script to be sure that it is currently installed and then "if Variable SQL2008R2_X86 not Equals FALSE", then do the uninstall.