Jump to content

I need to add 2 " DetachedProgram=" in Winnt.sif


martin26uk

Recommended Posts

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 work

tried this

DetachedProgram="%SYSTEMDRIVE%\Install\mplayer\video.exe"

DetachedProgram=".\system32\cmd.exe"

But only the 1st option is picked up

Any ideas ?

Link to comment
Share on other sites


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 off

DetachedProgram="%SYSTEMDRIVE%\Install\mplayer\video.exe"

DetachedProgram=".\system32\cmd.exe"

exit

Link to comment
Share on other sites

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.exe
exit

Link to comment
Share on other sites

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...