Felu
Veteran Member
Posts: 2223 Reputation: 72
30 / /
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.
|
|