>You needn't copy regasm.exe at all.
>.NET Framework always installed in the fixed place under Windows directory.
>
>You just need to know which version of .NET Freamework your dll is using.
>
>Write something like this
>
>*If dll compiled for .NET 2.0
>regasm = "Run /N "+GetEnv("windir")+"\Microsoft.NET\Framework\v2.0.50727\regasm.exe YOUR_LIBRARY.DLL"
>*If dll compiled for .NET 1.1
>regasm = "Run /N "+GetEnv("windir")+"\Microsoft.NET\Framework\v1.1.4322\regasm.exe YOUR_LIBRARY.DLL"
>*Execute it
>®asm
I guess it would be better to have this as some external file with paths. Because there are .NET 3.0 and .NET 3.5
If it's not broken, fix it until it is.
My Blog