hp38guser, on Oct 4 2005, 01:21 PM, said:
Rewritten the program. It's now even easier....(no need for copying to system32 folder anymore)
Ok, I am going to test this on my next U-DVD.
A small explanation of the code:
i386\WinNT.sif said:
[GuiUnattended]
DetachedProgram = ".\system32\cmd.exe"
Arguments="/Q /C FOR /F %I IN (%SystemRoot%\SYSTEM32\$WINNT$.INF) DO (FOR %J IN (%I$OEM$) DO (IF EXIST %J (%J\Autoit3.exe %J\presetup.au3)))"
CMD = Starts a new instance of the Windows XP command interpreter
/Q = Turns echo off
/C = Carries out the command specified by string and then terminates
FOR = Runs a specified command for each file in a set of files.
/F = Filenameset - Each file is opened, read and processed before going on to the next file in filenameset.
%I = First Variable name
IN (%SystemRoot%\SYSTEM32\$WINNT$.INF) = location to search (aka - "set")
DO = Specifies the command to carry out for each file.
FOR = Runs a specified command for each file in a set of files.
%J = Second Variable name
IN (%I$OEM$) = location to search (aka - "set")
DO = Specifies the command to carry out for each file.
(IF EXIST %J = Specifies a true condition if the specified filename exists.
(%J\Autoit3.exe %J\presetup.au3))) = run presetup.au3 using autoit3.exe
This post has been edited by a06lp: 10 October 2005 - 08:16 PM