Or instead of using a central INI, you could query HKCU\Software\KiX\LoggedOnWorkstations for the workstations a user has logged on before.

Something like this (not tested):
Code:


$loggedon=readvalue('HKCU\Software\KiX\LoggedOnWorkstations',@wksta)
if @error <> 0 ;not logged on before
$cmd='%comspec% /c '+'yoursetup.exe'
shell $cmd
endif
$rc=writevalue('HKCU\Software\KiX\LoggedOnWorkstations',@wksta,@date+' - '+@time,'REG_SZ')


_________________________
Greetz,
Patrick Rutten

- We'll either find a way or make one...
- Knowledge is power; knowing how to find it is more powerful...
- Problems don't exist; they are challenges...