OK... Added the .OK checks back in..

That way, when you run the NTLOGON.BAT, it will find it..

Portion of the NTLOGON.BAT
code:
if not exist %SystemDrive%\Scripts\kix421.ok %LOGONSERVER%\NETLOGON\Programs\kix421update.exe /q

Here is the code..

code:
DIM $FilesToCopy,$
$tmp='%tmp%\'
$srcdir=@scriptdir+'\'
$destdir=split('%WINDIR%',':')[0]+':\Scripts\'
$msg=LEFT(JOIN(split(@kix,'.'),''),3)
$ok=$destdir+'kix'+$msg+'.ok'

IF 0=Exist($destdir)
MD $destdir
ENDIF

$FilesToCopy='kix32.exe wkix32.exe'
IF @inwin=2
$FilesToCopy=$FilesToCopy+' kx16.dll kx32.dll kx95.dll'
ENDIF

FOR EACH $ IN Split($FilesToCopy)
COPYKIX($srcdir+$,$destdir+$)
NEXT

FUNCTION COPYKIX($srcfile,$destfile)
dim $
IF Exist($srcfile)
IF Exist($destfile)
$=SetFileAttr($destfile,128)
$state=' >replaced'
ELSE
$state=' >new'
ENDIF
IF GetFileSize($srcfile)<>GetFileSize($destfile) OR
GetFileTime($srcfile)<>GetFileTime($destfile) OR
GetFileVersion($srcfile)<>GetFileVersion($destfile)
IF EXIST($destdir+'kix*.ok')
Del $destdir+'kix*.ok'
ENDIF
COPY $srcfile $destfile /h
$=WRITEPROFILESTRING($ok,split(split($destfile,'\')[2],'.')[0],'KIX',$destfile+$state)
ENDIF
ENDIF
ENDFUNCTION

The .SED file is -
code:
[Version]
Class=IEXPRESS
SEDVersion=3
[Options]
PackagePurpose=InstallApp
ShowInstallProgramWindow=1
HideExtractAnimation=1
UseLongFileName=0
InsideCompressed=0
CAB_FixedSize=0
CAB_ResvCodeSigning=0
RebootMode=N
InstallPrompt=%InstallPrompt%
DisplayLicense=%DisplayLicense%
FinishMessage=%FinishMessage%
TargetName=%TargetName%
FriendlyName=%FriendlyName%
AppLaunched=%AppLaunched%
PostInstallCmd=%PostInstallCmd%
AdminQuietInstCmd=%AdminQuietInstCmd%
UserQuietInstCmd=%UserQuietInstCmd%
SourceFiles=SourceFiles
[Strings]
InstallPrompt=
DisplayLicense=
FinishMessage=
TargetName=C:\!Kix\newpkg\kix421update.EXE
FriendlyName=Kixtart 4.21 installation
AppLaunched=KIX32.EXE
PostInstallCmd=KIX32.EXE install.kix
AdminQuietInstCmd=
UserQuietInstCmd=
FILE0="KX95.DLL"
FILE1="INSTALL.KIX"
FILE2="KX16.DLL"
FILE3="KX32.DLL"
FILE4="KIX32.EXE"
FILE5="WKIX32.EXE"
[SourceFiles]
SourceFiles0=C:\!Kix\newpkg\
[SourceFiles0]
%FILE0%=
%FILE1%=
%FILE2%=
%FILE3%=
%FILE4%=
%FILE5%=

Thanks,

Kent

[ 02. May 2003, 20:37: Message edited by: kdyer ]
_________________________
Utilize these resources:
UDFs (Full List)
KiXtart FAQ & How to's