gummy2, on 28 May 2006 - 02:25 AM, said:
ANSWER_FILE.TXT is just like the winnt.sif so your install can be unattended
This line is the argument/Switch: /unattend30:d:\setup\XP\Professional\I386\ANSWER_FILE.TXT
/unattend, no user input is required
30:is the number of seconds between the time that Setup finishes copying the files and when it restarts your computer
where ANSWER_FILE.TXT is d:\setup\XP\Professional\I386\ANSWER_FILE.TXT
try this one in ams, it's work
function appPathOriginal()
local cdPath = "";
local findMarker = "SFXSOURCE:";
local cmdArgs = "";
if (Table.Count(_CommandLineArgs) > 0) then
for i = 1, Table.Count(_CommandLineArgs) do
if (String.Find(_CommandLineArgs[i], findMarker) > 0) then
cmdArgs = _CommandLineArgs[i];
break;
end
end
end
if (cmdArgs ~= "") then
if (String.Find(cmdArgs, findMarker) == 1) then
local fullPath = String.Replace(cmdArgs, findMarker, "", true);
local tblFullPath = String.SplitPath(fullPath);
cd_Path = tblFullPath.Drive .. tblFullPath.Folder;
end
else
cd_Path = _SourceFolder .. "\\";
end
return cd_Path;
end
sPath = appPathOriginal();
File.Run(sPath.."\\I386\\WINNT32.EXE", "", "", SW_SHOWNORMAL, false);