martin26uk Posted April 21, 2007 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 ?
kof94 Posted April 21, 2007 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.
IcemanND Posted April 21, 2007 Posted April 21, 2007 use detachedprogram to launch a cmd script and then run your to installers from the cmd script.
martin26uk Posted April 22, 2007 Author 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
IcemanND Posted April 22, 2007 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
martin26uk Posted April 22, 2007 Author 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=
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