Jump to content

Recommended Posts

Posted

Hi

i have a problem using detachedprogram

I 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 reply

Please help


Posted

From the Microsoft ref.chm

DetachedProgram

Indicates 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 GuiUnattended

DetachedProgram = "%systemdrive%\x\bat2.exe"

I think the detached program must be on the harddrive to run

Posted

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>"

Posted

Hi

Sorry, the problem was with my pacience

The 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 works

Thanks anyway

PS: Another problem was if or not to use quotes ("") or not, but now i know that quotes must be used

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