Installation Manager

I am writing code in vb.net trying to completely remove the old version of solidworks.  In the code, I am calling a Batch file I created.  Here is that line if code

dim IngTask as long

lngTask = Shell("O:\SolidWorks\Solidworks 2009 Removal\" & "Complete Uninstall.bat", AppWinStyle.Hide, True)

In the bat file, I have one line that looks like this, "C:\WINDOWS\SolidWorks\IM_20090-40400-1100-200\sldim\sldIM.exe" /remove "C:\WINDOWS\SolidWorks\IM_20090-40400-1100-200\sldim\sldIM_installed.xml".  The manager comes up as it would if you were to go to the Control Panel of the machine, select solidworks, and hit remove.

Here is what I am looking for.  Knowing I am using a bat file to call this up, I want to catch and make sure the user does not hit the cancel button on the Installation Manager.  If he does, I would like to stop the program.  I want to stop the program, because I am also removing folders and reg keys later in the code.

I hope this makes sense.  Any ideas would be great.

Thanks,

Rodney

SolidworksApi macros