martin26uk Posted April 21, 2007 Share Posted April 21, 2007 Hi, in Winnt.sif i install the drivers by placing the following in [GuiUnattended]DetachedProgram=".\system32\cmd.exe"But i've added a video now to the setup which uses DetachedProgram="%SYSTEMDRIVE%\Install\mplayer\video.exe"Can i use 2 detached programs because i cant get it to worktried thisDetachedProgram="%SYSTEMDRIVE%\Install\mplayer\video.exe" DetachedProgram=".\system32\cmd.exe"But only the 1st option is picked upAny ideas ? Link to comment Share on other sites More sharing options...
kof94 Posted April 21, 2007 Share Posted April 21, 2007 I've never need to use DetachedProgram before but if you can only launch one thing from it why don't you try using a .cmd or an AutoIt script. Link to comment Share on other sites More sharing options...
IcemanND Posted April 21, 2007 Share Posted April 21, 2007 use detachedprogram to launch a cmd script and then run your to installers from the cmd script. Link to comment Share on other sites More sharing options...
martin26uk Posted April 22, 2007 Author Share Posted April 22, 2007 Right- i've never made a command script so does the following look right ? I'd call the cmd script using:DetachedProgram="%SYSTEMDRIVE%\Install\script.cmd"And the cmd script would contain:@echo offDetachedProgram="%SYSTEMDRIVE%\Install\mplayer\video.exe"DetachedProgram=".\system32\cmd.exe"exit Link to comment Share on other sites More sharing options...
IcemanND Posted April 22, 2007 Share Posted April 22, 2007 Here's what I add to my sif file for detached program to run my cmd script to copy the i386 folder and others to the hard drive:DetachedProgram=CMD.EXE Arguments="/Q /C START /MIN /B %systemdrive%\Install\CopySource.cmd"Cmd script should read:@echo off%SYSTEMDRIVE%\Install\mplayer\video.exe.\system32\cmd.exeexit Link to comment Share on other sites More sharing options...
martin26uk Posted April 22, 2007 Author Share Posted April 22, 2007 Just noticed that i have arguement instructions that belong to 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 Drivers.cmd)))"Think i'l just find a different way of installing the drivers so i dont have 2 instances of DetachedProgram= Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now