I created a script that runs

Launch “SYS\cmd.exe” with params “/c msiexec.exe /i “$(KACE_DEPENDENCY_DIR)”\support.msi /qb”

However the script always simply pulls up the msiexec.exe help window displaying my switch options. I have to run this in a script because this particular .msi requires 2 other files in order to install properly and scripts allow me to upload dependencies.

Thanks in advance for any help...
Answer Summary:
The quotes were the culprit as suggested. I changed the statement to: Launch “SYS\cmd.exe†with params “/c msiexec.exe /i â€$(KACE_DEPENDENCY_DIR)\TeamViewer_Host.msi“ /qb†Thanks again!
Cancel
0 Comments   [ + ] Show Comments

Comments

Please log in to comment

Community Chosen Answer

3
I'm sorry this is not the answer your looking for but,

" I have to run this in a script because this particular .msi requires 2 other files in order to install properly"
Managed Installations allow you to use software that has zip files (containing multiple files). You could easily zip up your dependencies and MSI and use the command line to call your msi.
Answered 03/30/2012 by: Tentacle Master
Fourth Degree Black Belt

  • I will look into this option as well. I did alter the quotes around a bit and got different errors. So I suspect everyone here is correct and I have the positioning of quotes all messed up.

    Thanks to EVERYONE for your feedback!
Please log in to comment

Answers

1
I don't believe you need to launch cmd.exe. I think you can just launch msiexec.exe with params /i “$(KACE_DEPENDENCY_DIR)”\support.msi /qb” or something along those lines.
Answered 03/30/2012 by: andibogard
Blue Belt

  • actually now that i think about because the msi is throwing the error you might have your quotation marks in the wrong place
  • Yeah... that second one after (KACE_DEPENDENCY_DIR) doesn't look right.
  • Well also after the /qb
Please log in to comment
1
Also you can try using the MSI Installer Wizard under Scripting -> Configuration Policy.
Again, create a zip file with your MSI and dependencies, assign to software in the inventory and fill in the blank in the wizard. Hope this helps.
Answered 03/30/2012 by: Tentacle Master
Fourth Degree Black Belt

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