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...
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!
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!
Please log in to answer
Posted by:
RandomITPro
12 years ago
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.
" 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
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