Greg:

The main problem is that you cannot have empty entries in a .INI file. The following is correct:
code:
[name]
key=value

whereas
code:
[name]

or
code:
[name]
value

would be incorrect.

you must therefore restructure your .INI file structure accordingly. The following would for example be a good way to have a list of computers and at the same time keep track of the SU install
code:
[SU Install]
COMP1=0
COMP2=1
COMP3=1
COMP4=0

which would indicate that COMP2 and COMP2 have SU installed.
The corresponsding code fragment would look like this:
code:
$suinstalled=val(trim(readprofilestring('su.ini','SU Install',@WKSTA)))
if not $suinstalled
; run the SU install routine
$rc=writeprofilestring('su.ini,'SU Install',@WKSTA,1)
endif

and the login script could for example contain
code:
$suinstalled=val(trim(readprofilestring('su.ini','SU Install',@WKSTA)))
if not $suinstalled
$rc=writeprofilestring('su.ini,'SU Install',@WKSTA,0)
endif

in case you want to keep the collection and the installation separate.

Also, please take the time to read the KiXtart Manual as both READPROFILESTRING and wRITEPROFILESTRING are explained extensively in it.

You might want to take a look at thread about the Task Scheudler or the ScheudleTask() UDF, or read the FAQs, e.g. Installing an Application as an Admin

[ 22. October 2002, 15:07: Message edited by: sealeopard ]
_________________________
There are two types of vessels, submarines and targets.