Register Primary Interop Assembley

J

Jim

I have a Windows Form app that uses the Windows Media Player Active-X
control. It works fine on my development machine, but on a client computer
the app crashes becuase the wmppia.dll hasn't been registered and installed
in the global assembly cache. I 've looked around and can't find a way to
automaticlly register the wmppia.dll during installation.

So as a test, I followed the instructions the do it manually on a
non-development machine that had Framework 1.1.4322 on it. I can "regasm
c:\Program Files\MyProgram\wmppia.dll" with no problem. But the Global
Assembly Cache installer; Gacutil.exe is missing. Isn't this supposed to
come with the Framwork? If not, how can I expect my end users to have it?

My question goes back to my origional thought: How can I set up my
installer to automaticlly register and install the wmppia.dll to the Global
Assembly Cache?

thanks
 
T

Tomas Restrepo \(MVP\)

Jim,
So as a test, I followed the instructions the do it manually on a
non-development machine that had Framework 1.1.4322 on it. I can "regasm
c:\Program Files\MyProgram\wmppia.dll" with no problem. But the Global
Assembly Cache installer; Gacutil.exe is missing. Isn't this supposed to
come with the Framwork? If not, how can I expect my end users to have it?

It isn't. It only comes with the .NET Framework SDK, not the regular
framework. As to how you're supposed to do it, well, MSI installations can
register assemblies in the GAC, so use that feature.
 
J

Jim

Thanks for the direction. I created a GAC Folder in the Windows Installer
in VS.Net. I added wmppia.dll and set the assembly to Register upon
installation. I rebuilt and redeployed the app, and upon installation the
wmppia.dll is now in the GAC.

But I still have the same problem. So back to the drawing board. Thanks.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top