oviradoi Posted July 2, 2005 Posted July 2, 2005 Hii have a problem using detachedprogramI have made an app that shows a window in the lower left side of the screen allowing you to run solitaire, minesweeper and spider during setup, but i can't get it to run automatically during setup. It can run, if i manually run it by pressing SHIFT-F10, and running it using the command window, and it runs (it's not a question of having or not libraries for the prg)I wonder if someone could give me an example of using detachedprogram (cause Microsoft, in the ref.chm file doesn't), or attach a winnt.sif file to a replyPlease help
benners Posted July 2, 2005 Posted July 2, 2005 From the Microsoft ref.chmDetachedProgramIndicates the path of the custom program that runs concurrently with the Setup program.Syntax DetachedProgram = detached_program_string Value detached_program_string Example DetachedProgram = "%SYSTEMDRIVE%\extras\install.exe"Comments If the program requires any arguments, you must specify them in the Arguments entry.How I run my program from winnt.sif under GuiUnattendedDetachedProgram = "%systemdrive%\x\bat2.exe" I think the detached program must be on the harddrive to run
Yzöwl Posted July 2, 2005 Posted July 2, 2005 This works fine for me DetachedProgram = cmd.exe Arguments = "/C START A:\MyBatch.cmd"I surmise that since no path is given to cmd.exe that the detached program may need to be either in the %PATH% or a full path given to it. If this still doesn't work, you could try a similar idea to my working one DetachedProgram = cmd.exe Arguments = "/C START <switches> <Drive>:\<Path>\<somefile.exe>"
oviradoi Posted July 3, 2005 Author Posted July 3, 2005 HiSorry, the problem was with my pacienceThe program did run, but i have a slow PC and i made the ISO, and tested it in the virtual machine. It actually takes around 5 mins (for me) for Setup to execute the program. So, i just closed the virtual machine and wondered why it didn't work...But now it worksThanks anywayPS: Another problem was if or not to use quotes ("") or not, but now i know that quotes must be used
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