how can i verify that RegistrationServices successfully unregistered a file
<p>I am creating an uninstall utility in C#. The utility will unregistered the files registered through Regasm.I wrote the code below </p>

<pre><code>RegistrationServices regAsm = new RegistrationServices();
for(int i = 0; i &lt; 100; i++)
{
Assembly asm = Assembly.LoadFrom("filespath[i]");
if (regAsm.UnregisterAssembly(asm))
logToFile(SuccessfullyUnregistered);
}
</code></pre>

<p>it worked fine but if i execute the above code 100 times and don't delete those files(which are registered throguht Regasm),  then regAsm.UnregisterAssembly(asm) always return true. 
Is this the right behaviour?
How can i verify that RegistrationServices successfully unregistered a file?</p>

<p>Thanks and Regards</p>
