4 Replies Latest reply on Nov 2, 2011 7:46 PM by Catalysttgj

    Batch file for msi file please help


      Hey i am trying to run an update for encryption software for time reasons i would like to create a batch file to speed up the process (which is 2 steps) this is what i have so far:


      @echo off
      echo 1. Framework
      echo 2. Full disk

      set /p x=Pick:
      IF ‘%x%’ == ‘%x%’ GOTO Item_%x%

      start /MIN /D"C:\msiexec/i "c:\temp\see82-framework.msi reinstall="all" reinstallmode=vomus"

      GOTO Start

      start /MIN /DC:\msiexec/i c:\temp\see82-fulldisk.msi reinstall="all" reinstallmode=vomus

      GOTO Start



      the problem is i keep getting the following error




      any ideas wouuld greatly be appriciated

      thank you


        • 1. Re: Batch file for msi file please help

          I am pretty sure that you need a forward slash (/) in front of any parameters with Windows Installer. The switches should be /reinstall="all" and /reinstallmode=vomus".


          The batch file is currently reading these as a command.

          • 2. Re: Batch file for msi file please help
            Mark2063 Apprentice

            Where we've used reinstall=all and reinstallmode=vomus have been when applying an MSP patch on top of the base MSI. Here's a snipe from our MS Office communicator install batch file:


            MSIEXEC /i "CommunicatorVolume.msi" /qn ALLUSERS=1 REBOOT=ReallySuppress
            MSIEXEC /p "Communicator_July2010_v3.5.6907.206.msp" /qn REINSTALL=ALL REINSTALLMODE=vomus ALLUSERS=1 REBOOT=ReallySuppress

            • 3. Re: Batch file for msi file please help
              mrspike SSMMVPGroup

              I have not used the Start command, but I do notice in Item1 you have /D"C


              Where in item2 you have /DC


              Also, not sure if calling c:\msiexec is valid



              This is copy of a script we have used for a similar project:



              @echo off
              if %PROCESSOR_ARCHITECTURE% == AMD64 goto AMD64
              copy "\\myshare\GE\9.5\Clients\GEFWclient.msi" %TEMP% > NUL
              copy "\\myshare\GE\9.5\Clients\GEHDclient.msi" %TEMP% > NUL
              cd %TEMP%
              msiexec /i GEFWclient.msi REINSTALL="ALL" REINSTALLMODE="vomus" /q /norestart
              msiexec /i GEHDclient.msi REINSTALL="ALL" REINSTALLMODE="vomus" /q /norestart
              del GEFWclient.msi > NUL
              del GEHDclient.msi > NUL
              goto END
              copy "\\myshare\GE\9.5\Clients\GEFWclientx64.msi" %TEMP% > NUL
              copy "\\myshare\GE\9.5\Clients\GEHDclientx64.msi" %TEMP% > NUL
              cd %TEMP%
              msiexec /i GEFWclientx64.msi REINSTALL="ALL" REINSTALLMODE="vomus" /q /norestart
              msiexec /i GEHDclientx64.msi REINSTALL="ALL" REINSTALLMODE="vomus" /q /norestart
              del GEFWclientx64.msi > NUL
              del GEHDclientx64.msi > NUL

              • 4. Re: Batch file for msi file please help
                Catalysttgj Expert

                Unless i overlooked someone else's reply... you've misused the double quote in the item 1 area. Too many, and not enough at the same time. Examine those and try and minimize their use. If you put double quotes around something and then have another use of double quotes, they have to be paired off properly to make sense. If they're not, its going to get confused on what you want. Remember, white space is the enemy!