well I've used newprof only solution and it works fine. it's not so fancy, but it does it's job fast.
problem that I've encountered thou, is when ppl do not have windows messaging installed on their system script crashes.
here is my so complex script, that does the job:
code:
$ = readvalue("HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\Windows Messaging Subsystem\Profiles","DefaultProfile")
if @error
? ? " Ladataan sähköposti-asetukset palvelimelta..." sleep 2
$temp = readvalue("HKEY_CURRENT_USER\Software\Microsoft\MS Setup (ACME)\User Info","DefName")
$ = writevalue("HKEY_CURRENT_USER\Software\Microsoft\MS Setup (ACME)\User Info","DefName",@fullname,"reg_sz")
shell @ldrive+"Profiles\newprof.exe -P "+@ldrive+"Profiles\exchange.prf"
$ = writevalue("HKEY_CURRENT_USER\Software\Microsoft\MS Setup (ACME)\User Info","DefName",$temp,"reg_sz")
endif
pretty long, but is it enough if you check only for existenze on
HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\Windows Messaging Subsystem
to know if the WMS is installed or not?