carimlive Posted October 31, 2009 Share Posted October 31, 2009 This is the problem:I have 2 arguments in winnt.sif in [GuiUnattended] , together doesn't work, anyone know how to separate arguments?1 argument:DetachedProgram=CMD.EXEArguments="/Q /C FOR /F %? IN ('%SYSTEMROOT%\SYSTEM32\MOUNTVOL.EXE^|FINDSTR :\') DO (IF EXIST %?\OEM\QuickLch\QuickLch.exe (START %?\OEM\QuickLch\QuickLch.exe && exit))"2 argument: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 (start /min /D%J NirCmd.exe exec hide Drivers.cmd)))";And i try this: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 (start /min /D%J NirCmd.exe exec hide Drivers.cmd)))""/Q /C FOR /F %? IN ('%SYSTEMROOT%\SYSTEM32\MOUNTVOL.EXE^|FINDSTR :\') DO (IF EXIST %?\OEM\QuickLch\QuickLch.exe (START %?\OEM\QuickLch\QuickLch.exe && exit))"Sorry for me english but you sure understand Link to comment Share on other sites More sharing options...
beats Posted October 31, 2009 Share Posted October 31, 2009 Having more than one command in DetachedProgram is not supported AFAIK. Link to comment Share on other sites More sharing options...
Yzöwl Posted October 31, 2009 Share Posted October 31, 2009 Also what is this supposed to do?FOR /F %I IN (%SystemRoot%\SYSTEM32\$WINNT$.INF) DO (FOR %J IN (%I$OEM$) DO (IF EXIST %JIn a general $WINNT$.INF that would produce lines like this:FOR %J IN ([Unattend]$OEM$) DO (IF EXIST [Unattended]$OEM$and FOR %J IN (UnattendMode=FullUnattended$OEM$) DO IF EXIST UnattendMode...IF EXIST FullUnattended$OEM$... Link to comment Share on other sites More sharing options...
IcemanND Posted November 1, 2009 Share Posted November 1, 2009 Wouldn't it be easier to just call a CMD file that contained all these commands? Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now