/build/static/layout/Breadcrumb_cap_w.png

How should I code a script to launch msiexec.exe /i to a file in the $(KACE_DEPENDENCY_DIR) folder with the /qn switch?

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...

0 Comments   [ + ] Show comments

Answers (3)

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!
Posted by: RandomITPro 12 years ago
4th Degree Black Belt
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.

Comments:
  • 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! - jpplante 12 years ago
Posted by: andibogard 12 years ago
Blue Belt
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.

Comments:
  • actually now that i think about because the msi is throwing the error you might have your quotation marks in the wrong place - RandomITPro 12 years ago
  • Yeah... that second one after (KACE_DEPENDENCY_DIR) doesn't look right. - dugullett 12 years ago
  • Well also after the /qb - dugullett 12 years ago
Posted by: RandomITPro 12 years ago
4th Degree Black Belt
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.
 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ