Dear,

We advise you to use an additional control file for W9x environment
and verify the actual file by a registry setting for your NT/W2K/XP
environment.

Our example handles about KIX32.EXE
code:
 $groupname="KiXtart Group"
IF @inwin = 1 ; -NT/W2K/XP-
IF (Exist(ReadValue("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders","Programs")+"\"+$groupname+"\kixtart.lnk") = 0)
$nul=AddProgramGroup($groupname)
IF (AddProgramItem("c:\winnt\kix32.exe","KiXtart","",0,"c:\windows",0,0) <> 0)
? "@error (@serror)"
ENDIF
IF (Exist(ReadValue("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders","Programs")+"\"+$groupname+"\kixtart.lnk") = 1)
? "installation completed."
ELSE
? "already installed."
ENDIF
ELSE ; -W9x/ME-
IF (Len(ReadProfileString("c:\software.ok",$groupname,"@userid")) = 0)
$nul=AddProgramGroup($groupname)
IF (AddProgramItem("c:\windows\kix32.exe","KiXtart","",0,"c:\windows",0,0) <> 0)
? "@error (@serror)"
ENDIF
$nul=WriteProfileString("c:\software.ok",$groupname,"@userid","@date @time")
? "installation completed."
ELSE
? "already installed."
ENDIF
ENDIF
;? "location: "+ReadValue("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders","Programs")+"\"+$groupname+"\kixtart.lnk"

An example of file c:\software.ok:
code:
[KiXtart Group]
mca=2002/03/25 02:37:22

greetings.

btw: another way for W9x environment is by copy created shortcuts to right
startup folder. In W9x startmenu will not removed existing shortcuts during
logging off. Possible is the desktop a better location for those icons,
which is much easierto handle in W9x environmentswith or without user pro-
files.
please let us know you need more help.

btw: verified with Kixtart 3.63,4.02
_________________________
email scripting@wanadoo.nl homepage scripting@wanadoo.nl | Links | Summary of Site Site KiXforms FAQ kixtart.org library collection mirror MCA | FAQ & UDF help file UDF kixtart.org library collection mirror MCA | mirror USA | mirror europe UDF scriptlogic library collection UDFs | mirror MCA