I have an updater program, the pulled files from server has mixed vb6 dll and .net DLLs in one directory.
How to determine if a dll is a COM one? (so i can invoke regsvr32 to it from the updater program)
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I guess one way to do it would be to try load the file with
System.Reflection.Assembly.LoadFile()(more info). If you get aBadImageFormatException, it’s not a valid .NET assembly. There’s probably a neater way of doing this, but this should work.