What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » [suggestion] Remove all files before import option in ScriptInfo.xml

[suggestion] Remove all files before import option in ScriptInfo.xml
Author: Message:
CookieRevised
Elite Member
*****

Avatar

Posts: 15519
Reputation: 173
– / Male / Flag
Joined: Jul 2003
Status: Away
RE: RE: [suggestion] Remove all files before import option in ScriptInfo.xml
quote:
Originally posted by L. Coyote
I suggested this months ago, and since I don't think it got a good response (I can't really remember), I made my own extra script for that.
It has in fact been suggested years ago, and again when the new update system was created.

The response back then, IIRC, was something in the line of "you're not supposed to change your script file names, so choose the file names wisely".


* CookieRevised slaps himself for not reading the posting date....


-------

quote:
Originally posted by L. Coyote
Instead of setting a "RemoveFile", I think the idea is to have a flag tag like "RemoveNonListed" (or some similar name, to express that the engine must remove all files that are not listed in the package being imported). That way, you don't have to write down each filename, you won't miss one and you won't misspell one.
quote:
Originally posted by whiz
My workaround is a list of files that should be there, and then everything else is removed.

Which will also delete any user generated file, (or script generated file), which is a major big no-no.... That would be a realy bad choice imo. I don't want any script to remove any files I have put in the scripting directory (like comment files, backups, a link to the thread, the actual plsc, etc).

A "RemoveFile" is far safer and better than "RemoveNonListed".

Also, I'm personaly not a fan of using wildcards, like markee suggested, in the "RemoveFile" attribute, for the same reasons above.

If you want to remove files you, as the script creater, knows what exact files were created/needed by the previous version. So no need for wildcards. Yes, it makes the "RemoveFile" list a bit longer, but it is far more safer and the user will not accidently loose any files because the script developper thinks he needed to remove all the existing files with <RemoveFile>*</RemoveFile>.

;)

---------------

PS: in fact, I have no trouble manually deleting script files from scripts which are currently running though. The only thing you need to look out for when doing it manually is that the scripting editor isn't opened with the script you want to delete files from (goes only for JS files).

You can include the files you want to remove as null files (0 bytes long), and in the initialization of the script remove them (if they exist).
This even works when the scripting editor is opened (as long as you press "ok" to let Plus! close and re-open Messenger).

This post was edited on 07-26-2010 at 09:00 AM by CookieRevised.
.-= A 'frrrrrrrituurrr' for Wacky =-.
07-26-2010 08:17 AM
Profile PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
[suggestion] Remove all files before import option in ScriptInfo.xml - by roflmao456 on 04-07-2008 at 03:34 AM
RE: [suggestion] Remove all files before import option in ScriptInfo.xml - by -dt- on 04-07-2008 at 04:20 AM
RE: [suggestion] Remove all files before import option in ScriptInfo.xml - by markee on 04-07-2008 at 11:18 AM
RE: [suggestion] Remove all files before import option in ScriptInfo.xml - by -dt- on 04-07-2008 at 11:29 AM
RE: [suggestion] Remove all files before import option in ScriptInfo.xml - by markee on 04-07-2008 at 11:35 AM
RE: [suggestion] Remove all files before import option in ScriptInfo.xml - by roflmao456 on 04-08-2008 at 02:11 AM
RE: [suggestion] Remove all files before import option in ScriptInfo.xml - by Spunky on 04-08-2008 at 11:30 AM
RE: [suggestion] Remove all files before import option in ScriptInfo.xml - by roflmao456 on 04-08-2008 at 12:44 PM
RE: [suggestion] Remove all files before import option in ScriptInfo.xml - by mynetx on 04-08-2008 at 03:46 PM
RE: [suggestion] Remove all files before import option in ScriptInfo.xml - by L. Coyote on 04-08-2008 at 06:46 PM
RE: RE: [suggestion] Remove all files before import option in ScriptInfo.xml - by CookieRevised on 07-26-2010 at 08:17 AM
RE: [suggestion] Remove all files before import option in ScriptInfo.xml - by mynetx on 04-08-2008 at 10:15 PM
RE: [suggestion] Remove all files before import option in ScriptInfo.xml - by felipEx on 04-08-2008 at 10:49 PM
RE: [suggestion] Remove all files before import option in ScriptInfo.xml - by markee on 04-09-2008 at 09:03 AM
RE: [suggestion] Remove all files before import option in ScriptInfo.xml - by Matti on 04-09-2008 at 01:31 PM
RE: [suggestion] Remove all files before import option in ScriptInfo.xml - by roflmao456 on 07-23-2010 at 07:00 PM
RE: [suggestion] Remove all files before import option in ScriptInfo.xml - by whiz on 07-23-2010 at 07:32 PM


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