PM plugin / PluginInstallPath is empty

PM plugin / PluginInstallPath is empty

dansam12
Contributor Contributor
401 Views
1 Reply
Message 1 of 2

PM plugin / PluginInstallPath is empty

dansam12
Contributor
Contributor

We wrote a plugin and want to store some files under the same directory.

While executing the 

 

public partial class MyPluginPane : UserControl
{

         ...........

        public MyPluginPane(IPluginCommunicationsInterface comms)
         {
              m_comms = comms;

              ...

            myInfo.Text =  m_comms.PluginInstallPath;

            .....

 

 

it looks like the PluginInstallPath is always empty. Other properties such as .PluginAssemblyName, .ConnectedToPowerMILL are correctly populated

 

any idea?

 

0 Likes
402 Views
1 Reply
Reply (1)
Message 2 of 2

dansam12
Contributor
Contributor

just to add more info, the plugin was registered using the following:

 

C:\Windows\Microsoft.NET\Framework64\v4.0.30319\regasm.exe <pluginname>.dll /register /codebase

 

and I can see the CLSID correctly stored.

 

in the PluginFrameworkBase.cs the utility function code looks like this:

 

.......

// Get the path to the dll
string dll_path = (string)Registry.GetValue(
@"HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{" + guid_string + @"}\InprocServer32",
"CodeBase",
"");

...

and this matches exactly the entry in my registry, but somehow an empty value is being returned.... 

Something do to perhaps with 64 vs 32bits?

 

 

0 Likes