Archive: Silent Installation with ExecWait calls does not work as expected.


Silent Installation with ExecWait calls does not work as expected.
Hi all,

I have a small installation that copies files and at the end, runs a few ExecWait calls as it registers services. When these executables are called, they open up shell windows as they register themselves as windows services.

Now this works great as a normal install, but since I've added the silent installation code, the service registration doesn't work.

All of the files are copied over, but I'm wondering if they are not registering as services because they would need to spawn shells to work, or ExecWait doesn't function as I expect it to work when the installation is run as silent.

Does anyone have any hints for me to work around this issue?

Thanks in advance.


Are you sure it's because you are running a silent install? ExecWait should be the same no matter what state the installer is running in.

How about using nsExec::Exec.

Stu


You're right. The problem is because I was triggering the ExecWait from a page callback. This (of course) is a no-no for a silent installation.

Thanks for the kick in the pants!