What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » Plug-Ins » Automatic uninstall of a plugin

Automatic uninstall of a plugin
Author: Message:
ketchup_blade
New Member
*


Posts: 8
Joined: Jul 2005
O.P. Automatic uninstall of a plugin
Hello,

I have created an uninstaller that automatically delete all files of my plugin.  I am doing a call to Messenger Plus using a message with "MessengerPlus_PluginChange" just before uninstalling the plugin.  However, what it seems is that doing this call doesn't unload the plugin, it just refreshes the list of plugins.

My problem: when MSN Messenger is open, a reference to the plugin is still in memory, making it impossible to delete the plugin DLL.  Is there an other Messenger Plus call I can do to tell it to unload the plugin/all plugins?  If not, would sending a message to MSN Messenger to close itself possible?

Thanks.
07-18-2005 04:55 PM
Profile E-Mail PM Find Quote Report
Dempsey
Scripting Contest Winner
*****

Avatar
http://AdamDempsey.net

Posts: 2395
Reputation: 53
38 / Male / Flag
Joined: Jul 2003
RE: Automatic uninstall of a plugin
"MessengerPlus_PluginChange" does unload the plugins, but it automatically reloads them after 5 seconds.

What language have you coded your plugin in?  If it's visual basic then I dont think it's possible to unload the plugin without exiting messenger.
SoundPacks   -   Scripts   -   Skins

that's not a bug, thats an unexpected feature
07-18-2005 05:08 PM
Profile E-Mail PM Web Find Quote Report
Mnjul
forum super mod
******

Avatar
plz wub me

Posts: 5396
Reputation: 58
– / Other / Flag
Joined: Nov 2002
Status: Away
RE: Automatic uninstall of a plugin
What you describe only happens with VB/VB.Net/C#.Net-developed plug-ins (Active-X plugins)... if a plug-in is a pure DLL (I don't know how to call that, but I mean what you get when you compile the plugin in C++ with Patchou's example), you can delete the physical file within 5 seconds after MessengerPlus_PluginChange is sent :) Patchou has explained why it acts like this but I forgot where :(
07-18-2005 05:09 PM
Profile PM Web Find Quote Report
ketchup_blade
New Member
*


Posts: 8
Joined: Jul 2005
O.P. RE: Automatic uninstall of a plugin
Yes, indeed, my plugin is written with VB.Net.  Maybe if I "regasm /u" the plugin just before calling MessengerPlus_PluginChange?  I'm not sure if this is enough to remove the reference to the DLL from memory.
07-18-2005 05:54 PM
Profile E-Mail PM 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