Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: Batch File/GP installation issue  (Read 3638 times)

0 Members and 1 Guest are viewing this topic.

alars15

    Topic Starter


    Newbie

    • Experience: Experienced
    • OS: Windows 7
    Batch File/GP installation issue
    « on: August 25, 2015, 09:07:58 PM »
    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!

    foxidrive



      Specialist
    • Thanked: 268
    • Experience: Experienced
    • OS: Windows 8
    Re: Batch File/GP installation issue
    « Reply #1 on: August 25, 2015, 09:21:52 PM »
    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.

    alars15

      Topic Starter


      Newbie

      • Experience: Experienced
      • OS: Windows 7
      Re: Batch File/GP installation issue
      « Reply #2 on: August 26, 2015, 06:26:23 AM »
      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?

      foxidrive



        Specialist
      • Thanked: 268
      • Experience: Experienced
      • OS: Windows 8
      Re: Batch File/GP installation issue
      « Reply #3 on: August 26, 2015, 06:36:14 AM »
      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" /switches

      foxidrive



        Specialist
      • Thanked: 268
      • Experience: Experienced
      • OS: Windows 8
      Re: Batch File/GP installation issue
      « Reply #4 on: August 26, 2015, 11:07:05 AM »

      patio

      • Moderator


      • Genius
      • Maud' Dib
      • Thanked: 1769
        • Yes
      • Experience: Beginner
      • OS: Windows 7
      Re: Batch File/GP installation issue
      « Reply #5 on: August 26, 2015, 11:15:07 AM »
       ;D ;D
      " Anyone who goes to a psychiatrist should have his head examined. "