What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » first time install script

first time install script
Author: Message:
cameron.stokes3
New Member
*


Posts: 12
32 / Male / –
Joined: Jan 2007
O.P. first time install script
hi... i was wondering how to make it so that the first time you install the script it pops up a little window saying thanks for installing this script... etc... with a close button... it kind of does this on the itunes+ script where it asks if you want to view the help file... but i just want it to open a window with a little info on it and thats it...
01-28-2007 03:39 PM
Profile E-Mail PM Find Quote Report
Felu
Veteran Member
*****


Posts: 2223
Reputation: 72
29 / Male / Flag
Joined: Apr 2006
Status: Away
RE: first time install script
quote:
Originally posted by cameron.stokes3
hi... i was wondering how to make it so that the first time you install the script it pops up a little window saying thanks for installing this script... etc... with a close button... it kind of does this on the itunes+ script where it asks if you want to view the help file... but i just want it to open a window with a little info on it and thats it...
Use the registry. If a value(say first run) doesn't exist or is true, then display the window and write false to the value. If you need an example, just ask [Image: msn_wink.gif].
01-28-2007 03:44 PM
Profile E-Mail PM Web Find Quote Report
cameron.stokes3
New Member
*


Posts: 12
32 / Male / –
Joined: Jan 2007
O.P. RE: first time install script
yeah i do need an example please... im a bit new to this
01-28-2007 03:46 PM
Profile E-Mail PM Find Quote Report
Felu
Veteran Member
*****


Posts: 2223
Reputation: 72
29 / Male / Flag
Joined: Apr 2006
Status: Away
RE: first time install script
code:
var Shell = new ActiveXObject("WScript.Shell");

function OnEvent_Initialize(MessengerStart){
    try{
        if(Shell.RegRead(MsgPlus.ScriptRegPath+Messenger.MyEmail+"\\FirstRun") != "false"){//If FirstRun is not false
            Debug.Trace("This is the first run");
            //Display Welcome Window
            Shell.RegWrite(MsgPlus.ScriptRegPath+Messenger.MyEmail+"\\FirstRun", "false")//Set FirstRun to false
        }
    }catch(e){//If key doesn't exist
        //Display Welcome Window
        Debug.Trace("This is the first run");
        Shell.RegWrite(MsgPlus.ScriptRegPath+Messenger.MyEmail+"\\FirstRun", "false")//Set FirstRun to false
    }
}

This post was edited on 01-28-2007 at 04:07 PM by Felu.
01-28-2007 04:05 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