How to use batch files to install software in KACE K1000 ?
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!
2 Comments
[ + ] Show 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. - khoelle 6 years ago
-
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 - winterelegy 6 years ago
-
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. - rockhead44 6 years ago
Answers (2)
Answer Summary:
Please log in to answer
Posted by:
chucksteel
6 years ago
Top Answer
Here is my general process for creating a managed install:
- Create your batch file to perform all of the installation steps.
- Place the batch file in the same folder as all necessary installer files (e.g. the VLC installer)
- Run the batch file on a test machine and verify that it installed correctly
- Force an inventory update on the test machine
- Find the new software title in the test machines list of installed software
- 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. - Upload the zip to the software title
- Create a new managed install by selecting the appropriate software title
- 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.