Tutorial: making an installer for your plugin in a few easy steps - 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) +----- Forum: Plug-Ins (/forumdisplay.php?fid=28) +------ Thread: Tutorial: making an installer for your plugin in a few easy steps (/showthread.php?tid=42157) Tutorial: making an installer for your plugin in a few easy steps by Xerxis on 04-07-2005 at 08:26 PM
Ok, so I decided to make a tutorial for visual basic classic programmers (aka vb6) who make a plugin for Messenger Plus! This tutorial will deal with making code: Valuename can be whatever you like, keep it meaningful, valueclass should be the name of your class. next add the following function to your code section code: This function will check if the user has msgplus installed and will abort if not. Note: this function is not bulletproof, check if the msgplus file exists or if the process is running if you want te be 100% sure. This function should be called before the file is installed en should abort the installation of the file if msgplus is not installed, therefore add the following part to your files section (the plugin file line) Check: MsgPlusCheck(); This line should now look like this: Source: "C:\Documents and Settings\Administrator\Bureaublad\Count_Nickname\CountNick.dll"; Check: MsgPlusCheck(); DestDir: "{reg:HKLM\SOFTWARE\Patchou\MsgPlus2,PluginDir|NotFound}"; Flags: regserver Add following procedure to your code section code: This will cause Messenger Plus to reload it's plugins To call this function add BeforeInstall: InstallPlugin; to your files section, you become this Source: "C:\Documents and Settings\Administrator\Bureaublad\Count_Nickname\CountNick.dll"; Check: MsgPlusCheck(); BeforeInstall: InstallPlugin; DestDir: "{reg:HKLM\SOFTWARE\Patchou\MsgPlus2,PluginDir|NotFound}"; Flags: regserver Now you're almost done, the only thing left is the uninstallation of the plugin Add this function to your code section code: That's it, no more restarting messenger, no more bat files. I hope this helped some of you. Included is the complete source and it's compiled version. have fun. XerXis co-founder of SodeX bvba (srr, always wanted to say that ) RE: install script by Jhrono on 04-07-2005 at 09:01 PM i really don't get what you mean sorry.....Do you want somebody to make you a setup file for your plugin? RE: install script by Mike on 04-07-2005 at 09:47 PM
quote:He made a setup script for Inno Setup and he is sharing the source of the installer he made with us Anyway, I didn't know that you could use api calls in inno setup... RE: install script by Xerxis on 04-08-2005 at 06:51 AM Sorry if it wasn't very clear, maybe i'll make an example of how to make an inno setup project for Plus! Plugins, as i noticed a lot of developers use a bat file and require the user to restart messenger. And since inno setup 4 you can do a lot with it, i like the delphi scripting engine that is included (makes me think those years of turbo pascal in high school weren't a waste of time after all ) RE: Tutorial: making an installer for your plugin in a few easy steps by (CyBeRDuDe) on 04-08-2005 at 11:36 AM
That is really nice done Xerxis!!! Nice information!!! I would use this.. And I don't mind you using my counter plugin as example!!! RE: Tutorial: making an installer for your plugin in a few easy steps by Xerxis on 04-08-2005 at 12:35 PM I can install a plugin several times without deleting the file? Reloadplugins works fine I thought, I tested it with you plugin and it showed up in the plugin menu without problems . If it doesn't work with you i'll make a function that terminates the Messenger Plus! process RE: Tutorial: making an installer for your plugin in a few easy steps by (CyBeRDuDe) on 04-08-2005 at 02:39 PM It works?... Also with my plugin???... Whenever I try using the same reload api code you use, and try to overwrite the existing plugin dll file it won't let me... since it's in use.. and in matter of fact it was a known fact that the reload funtion doesn't unload vb6 dll files... .. Unless this have been fixed in 3.50 I don't know?.... I'll just check out the installer soon.. ... RE: Tutorial: making an installer for your plugin in a few easy steps by Xerxis on 04-08-2005 at 03:14 PM works on my win2k machine without problems RE: Tutorial: making an installer for your plugin in a few easy steps by eSouL on 10-27-2005 at 05:07 PM
Hi Xerxis, RE: Tutorial: making an installer for your plugin in a few easy steps by Tobiaz on 10-29-2005 at 01:31 PM
Fuckin' great Tutorial! RE: Tutorial: making an installer for your plugin in a few easy steps by parveenjain on 08-13-2008 at 11:52 AM
Hi Xerix, Hi Xerxis, In my inno setup program I wanted to know the "exit error codes" so that I can determine what happened to my installation. is there any way to do it in ecript itself ? Though I had found some exit codes , but don't know which inno function(or const) can give me these error codes? Are these error codes only available If I am using shellExecute(). Please see if it you can help as I require it very urgently and I am in my last phase of it. Regards, Parveen PS. Please let me know If you wanted to know somehting more about my problem. RE: Tutorial: making an installer for your plugin in a few easy steps by CookieRevised on 08-16-2008 at 11:33 AM
You might wanna read the help files for INNO setup. If there is a buildin function which can return it, it will be listed in the help files/pages. |