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:
-dt-
Scripting Contest Winner
*****

Avatar
;o

Posts: 1819
Reputation: 74
35 / Male / Flag
Joined: Mar 2004
RE: [suggestion] Remove all files before import option in ScriptInfo.xml
quote:
Originally posted by roflmao456
right now i have a script that installs into the same folder.

i recoded the script and changed the JS file names..
when someone that has a lower version of the script imports the new version, the older version's files are still there and they conflict with each other (using same functions, etc)

i'm wondering if there could be an extra option in the ScriptInfo.xml such as <RemoveFiles> instead of
quote:
Originally posted by MeEtc
just put in an empty file with same name


you can see what i mean if you install WLMini Music Player 2.1.7a and then the beta after.


Music Now playing does

code:
    //uninstalls the old players 
    var OldFiles = [
        "iTunesClass.js",
        "WinampClass.js",
        "wmpClass.js",
        "jetAudioClass.js",
        "players\\MusicMonkey.player.js",
        "showConfig.txt"
    ];
   
   
    for(file in OldFiles){
        var name = MsgPlus.ScriptFilesPath + "\\" + OldFiles[file];
        if(fso.FileExists(name)){ fso.GetFile(name).Delete(true);}
    }


to delete old files

currently it does that on every OnEvent_Initialize though :( *wishes there was a onimport event*
[Image: dt2.0v2.png]      Happy Birthday, WDZ
04-07-2008 04:20 AM
Profile PM Web 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