1.

Solve : Batch File/GP installation issue?

Answer»

Hello,

I have a BATCH file attached to a group policy that is supposed to install an .msi. For some reason, when I apply the GP to the OU I want and RESTART said computers, the program will only install on some (not all) of the computers in the OU. The MSI in QUESTION is located on a network share that is accessible by all computers. I created a log EXPORT for the GP, compared it to the installs that work and I noticed two things:

1) Failed to grab execution mutex. System error 258
2) MainEngineThread is returning 1618

It looks like the 1618 is due to an application already running. How can I fix my group policy (or batch file) to resolve this issue? I'm just starting to work with batch files and any help WOULD be greatly appreciated.

Thanks!This URL has information which may be applicable regarding Failed to grab execution mutex. System error 258

Quote

That is the problem, yes, you cannot run recursive MSI installs, and that's enforced using a mutex, so the log shows that the second install cannot run because there is already one in progress.
This is the kind of thing that the bootstrap manifest generator could do, AFAIK, and that would customise the setup.exe launcher to include the PIAs.
Thanks. Any idea how to modify a batch file so multiple computers don't try and run recursive msi's? It'd be good to know if the computers could see if the installer is in use, wait till it's done and then start the install so it doesn't fail with the mutex error?It may be that the batch script is installing multiple things and not waiting between different installs.

Using the /wait switch with the start command may help.


start "" /w "file1.msi" /switches
start "" /w "file2.msi" /switches
start "" /w "file3.msi" /switchesThere's brand loyalty for you!


Discussion

No Comment Found