What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » regsvr32 & DotNetFiles

regsvr32 & DotNetFiles
Author: Message:
ogilvie
New Member
*


Posts: 7
Joined: Feb 2007
O.P. regsvr32 & DotNetFiles
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?
02-05-2007 08:04 PM
Profile E-Mail PM Find Quote Report
deAd
Scripting Contest Winner
*****

Avatar

Posts: 1060
Reputation: 28
– / Male / Flag
Joined: Jan 2006
RE: regsvr32 & DotNetFiles
If you want it to register with regsvr32 use the OleFiles node instead of DotNetFiles. DotNetFiles uses RegAsm, which is for .NET libraries.

This post was edited on 02-05-2007 at 08:46 PM by deAd.
02-05-2007 08:45 PM
Profile PM Find Quote Report
ogilvie
New Member
*


Posts: 7
Joined: Feb 2007
O.P. RE: regsvr32 & DotNetFiles
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>

This post was edited on 02-05-2007 at 09:44 PM by WDZ.
02-05-2007 09:26 PM
Profile E-Mail PM Find Quote Report
deAd
Scripting Contest Winner
*****

Avatar

Posts: 1060
Reputation: 28
– / Male / Flag
Joined: Jan 2006
RE: regsvr32 & DotNetFiles
[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.

This post was edited on 02-05-2007 at 09:55 PM by deAd.
02-05-2007 09:55 PM
Profile PM Find Quote Report
Menthix
forum admin
*******

Avatar

Posts: 5537
Reputation: 102
39 / Male / Flag
Joined: Mar 2002
RE: regsvr32 & DotNetFiles
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 :).
Finish the problem
Menthix.net | Contact Me
02-05-2007 11:18 PM
Profile E-Mail PM Web Find Quote Report
« Next Oldest Return to Top Next Newest »


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On