Shoutbox

regsvr32 & DotNetFiles - Printable Version

-Shoutbox (https://shoutbox.menthix.net)
+-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58)
+--- Forum: Messenger Plus! for Live Messenger (/forumdisplay.php?fid=4)
+---- Forum: Scripting (/forumdisplay.php?fid=39)
+----- Thread: regsvr32 & DotNetFiles (/showthread.php?tid=71414)

regsvr32 & DotNetFiles by ogilvie on 02-05-2007 at 08:04 PM

My script "RealPlayer What Im Listening To" uses a dll that I made.. It is in the top level of the plsc file along with ScriptInfo.xml
ScriptInfo.xml is:

<ScriptInfo xmlns="urn:msgplus:scripts" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <Information>
        <Name>RealPlayer - What Im Listening To</Name>
        <Description>Extracts the track and artist from the title of a RealPlayer window and sets it as what you are listening to</Description>
    </Information>
    <DotNetFiles>
        <FileName>RealMSNDll.dll</FileName>
    </DotNetFiles>
</ScriptInfo>

However, the dll is not registered automaticaly when the script is installed.
If I register it manualy then it works fine.
I am doing all this from an admin account so thats not the problem.

Any ideas about what the problem is? Does it work for anyone?


RE: regsvr32 & DotNetFiles by deAd on 02-05-2007 at 08:45 PM

If you want it to register with regsvr32 use the OleFiles node instead of DotNetFiles. DotNetFiles uses RegAsm, which is for .NET libraries.


RE: regsvr32 & DotNetFiles by ogilvie on 02-05-2007 at 09:26 PM

oh ok... the help file says it is the other way around:

Example 2
ScriptInfo file used to create a Script Pack. During import, the "ExtraFuncVB.dll" ActiveX will be registered with resvr32. The "ExtraFuncCSharp.dll" .NET Object will be registered for COM Interop with regasm.

<ScriptInfo xmlns="urn:msgplus:scripts" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="urn:msgplus:scripts PlusScripts.xsd">

    <Information>
        <Name>Test Script</Name>
        <Description>This script is an example from the documentation.</Description>
    </Information>

    <OleFiles>
        <FileName>ExtraFuncCSharp.dll</FileName>
    </OleFiles>
   
    <DotNetFiles>
        <FileName>ExtraFuncVB.dll</FileName>
    </DotNetFiles>

</ScriptInfo>


RE: regsvr32 & DotNetFiles by deAd on 02-05-2007 at 09:55 PM

[Image: 225403_docs.png]

Maybe there's a little error there (in what you posted, I mean)? If your library uses .NET, place it under DotNetFiles, otherwise place it under OleFiles.


RE: regsvr32 & DotNetFiles by Menthix on 02-05-2007 at 11:18 PM

There is/was indeed and error in the documentation Patchou wrote. He knows about it now and should be fixed soon if it isn't already fixed now.

ogilvie: Don't forget to submit your updated script :).