/build/static/layout/Breadcrumb_cap_w.png

Scripting Question


How to use batch files to install software in KACE K1000 ?

02/28/2018 2392 views
Ok so I am new to KACE. I've been using SCCM and manually creating installation packages, most of which use batch files to make additional changes/customizations for our environment. An example that I'm working on right now is VLC Player 2.2.8. I use a batch file to install it and then delete the desktop icon. How would you do this in KACE? I've read some other threads and I haven't understood them all that well. Some people say "just zip it and use managed install" but can someone explain all the steps to actually do that and then how to tell KACE to run the batch file, if that's the answer? Or there is another way you can run an exe or msi + add additional command prompt commands? Thanks!
Answer Summary:
2 Comments   [ + ] Show comments

Comments

  • That's exactly what we do. We have the zip as a dependency and you will need to update your batch for the correct pathing, and then you create a batch task in the script to call the batch in your zip file.
  • Can you please explain what a "dependency" is and the steps you take, perhaps an example of one script and what you had to do to update it, call it, etc
    • I zip my batch file and vlc.exe I then upload that zip to the software inventory record in the K1000 for VLC 2.2.8. From there I create a new Managed Installation. I give it a name, select my VLC software then select "Override default installation" and type the name of my batch file in that box. Under "Deploy" I pick a label with the targeted machines in it or you can select individual computers. The pick a schedule for deployment.

Answer Chosen by the Author

1
Here is my general process for creating a managed install:
  1. Create your batch file to perform all of the installation steps.
  2. Place the batch file in the same folder as all necessary installer files (e.g. the VLC installer)
  3. Run the batch file on a test machine and verify that it installed correctly
  4. Force an inventory update on the test machine
  5. Find the new software title in the test machines list of installed software
  6. Select the installation files (e.g. your batch file and other necessary files like the installer) and place them in a zip file.
    Note, it is important that you select the files and not the folder containing the files. If you select the folder containing the files, the extracted zip file will contain that folder structure and this makes the paths more complicated.
  7. Upload the zip to the software title
  8. Create a new managed install by selecting the appropriate software title
  9. Set the installation command appropriately. For an install that uses a batch file, select Override default installation, enter the name of your batch file, and check the "Don't prepend msiexec.exe" box.

Answered 03/02/2018 by: chucksteel
Red Belt

Don't be a Stranger!

Sign up today to participate, stay informed, earn points and establish a reputation for yourself!

Sign up! or login

View more:

Share

 
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