K1000 scripting an .exe installation to use a .reg file afterwords. K1000 does not behave same as doing it manually.
I have only dabbled in scripting before, but now with our K1000 appliance, I am finding the need to script more and more. Problem is, I'm not much of a scripter so I rely on examples and templates heavily, followed by a lot of testing and tweaking afterwords.
My latest issue is with a program called Snare. It is an open source application that resides on a server or desktop to capture relevant application / system logs and then email them out. Very basic install. https://www.intersectalliance.com/our-product/snare-agent/
Now, if i run snare.exe /? , i get a list of commands supported through CLI. The ones i am interested in are /SP- (Disables the "This will install..." window) and /SILENT
If i run this command manually from the location i have the application at, snare.exe /SP- /SILENT , i get a clean install and service running. After this, we run a reg file to import specific keys for the application, then restart the service.Everything is wonderful and great.
I have the .exe and .reg file zipped, and associated with the software within KACE. If i go to scripting, and have it launch an installation package, and point to Snare, and enter the command snare.exe /SP- /SILENT , then remediation i have restart a service, Snare.
It is my understanding, at least with the MSI installer, that if you have a .reg file zipped with the MSI, KACE automatically runs the .reg file after installation. Therefor leaving only the service to be restarted.
If i run this from K1000 Run Now, the installation goes through, but its not the same and the restart service log comes back as "service does not exist"
I check out the device that i pushed it on, and sure enough, there is no start menu folder with the 3 items needed in it, and no services. But if i go to the control panel / programs and features, it is there.
Its very confusing to try to understand that why I can run the installation commands on the device with no issues, but cannot run the exact command from KACE.I've tried to add the ZIP as a dependency, i've tried adding the .reg file by its self as a dependency and I have tried running this install with just the .exe, no reg file associated at all.
- Install “Snare version 4.0.2 (Open Source)” with arguments “SnareForWindows-184.108.40.206-MultiArchOpenSource.exe /
SP- /”. silent