That's pretty nice, Will.. One modification that i would recommend (and I use) is to change:

code:
$RC=WriteValue("$McUpdate\CurrentVersion\Update\Update Site1","szFTPLocation",$dats,REG_SZ)
Shell "%comspec% /e:1024 /c C:\PROGRA~1\commoN~1\networ~1\mcupdate\mcupdate /task update /quiet"

to
code:
$RC=WriteValue($McUpdate + "\CurrentVersion\Update\Update Site1","szFTPLocation",$dats,REG_SZ)
$updatepath = READVALUE($Mcupdate + "\CurrentVersion","szInstallDir")
Shell $updatepath + "mcupdate /task update /quiet"

or something similar.. that way if the program was for some reason not in the default path for it, it would still work... of course that's real minor.. but thanks for posting your code.. The whole shutdown idea is pretty cool. I just seriously doubt I can get it approved.

Brian

[ 09 May 2002, 15:34: Message edited by: BrianTX ]