I am trying to install Sophos Encyption software and the install requires 3 msi's to be run in succession. 

I have zipped them and added a task to run a batch file:

msiexec /i SGxClientPreinstall.msi /qn 


msiexec /i SGNClient_withoutDE_x64.msi /qn ADDLOCAL=Client,Authentication,SecureDataExchange,FileShare Installdir=C:\Program Files\Sophos\SafeGuard Enterprise


msiexec /i UNH_ClientConfig.msi /qn /norestart

 

The problem is.. It's not installing the second msi. What am I missing?

 

Thanks!

Kevin

2 Comments   [ + ] Show Comments

Comments

  • Hello,
    what will happen if you execute the batch manually?
    If the script will work manually try to invoke it under LocalSystem account ( there are around many tricks to try a script under this special account)
    Another suggestion is to try to add " >> log.txt" at the end of every line to see if this generates a log on the client.
  • start /wait msiexec /i SGxClientPreinstall.msi /qn /L* "C:\SGxClientPreinstall.log"

    start /wait msiexec /i SGNClient_withoutDE_x64.msi etc
    the start /wait in a bat file let wait the install finish and after launch the other one as a win wait in auto it
Please log in to comment

Answers

0

Perhaps create a MSI log for the first intall and check if anything may be causing your issues

 

 msiexec /i SGxClientPreinstall.msi /qn /L* "C:\SGxClientPreinstall.log"


msiexec /i SGNClient_withoutDE_x64.msi /qn ADDLOCAL=Client,Authentication,SecureDataExchange,FileShare Installdir=C:\Program Files\Sophos\SafeGuard Enterprise 


msiexec /i UNH_ClientConfig.msi /qn /norestart - See more at: http://www.itninja.com/question/install-multiple-msi-s-via-scripted-install#sthash.bKyCDRlc.dpuf
Answered 10/04/2013 by: accesser
Yellow Belt

Please log in to comment
0

installdir should be in capital letters - INSTALLDIR, as it is a public property.

As you are setting it to a LFN path, it should also be in quotes:

INSTALLDIR="C:\Program Files\Sophos\SafeGuard Enterprise"

 

As mentioned previously, test your command lines manually to confirm them.

You can always add a '/l*v c:\<logfilename>.log' to the command line to see if you can spot any issues in the installer logs.

Running with a '/qn+' will pop up to tell you it's completed, or tell you there was an issue installing too.

 

Thanks,

Dunnpy

Installdir=C:\Program Files\Sophos\SafeGuard Enterprise - See more at: http://www.itninja.com/question/install-multiple-msi-s-via-scripted-install#sthash.nRhxcBky.dpuf
Answered 10/04/2013 by: dunnpy
Red Belt

Please log in to comment
0

Run the 2nd Msi without the any properties and see if the msi running, if so tries it with commas and make sure there is space between “ and INSTALLDIR(Shown below). Msiexec needs to know where to start and finish for ADDLOCAL and INSTALLDIR properties.

SGNClient_withoutDE_x64.msi /qn ADDLOCAL="Client,Authentication,SecureDataExchange,FileShare" INSTALLDIR=" C:\Program Files\Sophos\SafeGuard Enterprise 

Answered 10/04/2013 by: Prabs
Senior White Belt

Please log in to comment
This content is currently hidden from public view.
Reason: duplicate response
For more information, visit our FAQ's.

This content is currently hidden from public view.
Reason: Removed by member request
For more information, visit our FAQ's.

0

You need quotes and it needs to be caps. INSTALLDIR="C:\Program Files\etc.."  You need these quotes because there's a space in between program files. try that. Always try running it through "Run" first to make sure it works before creating batch script.

INSTALLDIR="C:\Program Files\Sophos\SafeGuard Enterprise" - See more at: http://www.itninja.com/question/install-multiple-msi-s-via-scripted-install#sthash.RBX4DUyL.dpuf
INSTALLDIR="C:\Program Files\Sophos\SafeGuard Enterprise" - See more at: http://www.itninja.com/question/install-multiple-msi-s-via-scripted-install#sthash.RBX4DUyL.dpuf
INSTALLDIR="C:\Program Files\Sophos\SafeGuard Enterprise" - See more at: http://www.itninja.com/question/install-multiple-msi-s-via-scripted-install#sthash.RBX4DUyL.dpuf
Answered 10/08/2013 by: gotriceron
White Belt

Please log in to comment
-1

start each with start /wait

this will let the first installation finish before it starts the next one.

MSIEXEC can only install one MSI at the same time.

Answered 10/04/2013 by: Nico_K
Red Belt

Please log in to comment
Answer this question or Comment on this question for clarity