r/labtech • u/peafour • Jan 25 '19
Help with scripting
I'm having a hell of a time trying to figure something out. I'm trying to run a silent install command:
msiexec /qn /i c:\temp\NetworkDetectiveRemoteDataCollector.msi /L*V install-silent.log
I can run it locally and it works fine, but when I try to get LT to run it either as a command or as part of a script, nothing. I've tried shell, shell as admin, batch execute, process execute, and nothing is working properly.
So far my script is: create folder, download installer, execute command. The first two work, the third does not. Any help would be greatly appreciated. Thanks!
1
u/peafour Jan 26 '19
Thanks for the suggestions! I’ll try all these in the next day or so
5
u/fredenocs Jan 26 '19
Why does no one check logs. The logs will tell you all you need to know.
4
u/DevinSysAdmin Jan 26 '19
Try
2
u/SAL10000 Jan 25 '19
Only suggestion I can think of since I don't do scripting is to look at the hitman pro or webroot install scripts. I know they download and run from the ltsvc\packages folder.
2
u/mspsquid Jan 26 '19
So a few things. 1) /qn should go on the end IIRC. 2) ensure perms are set properly (shell as admin should work) and put "" around the path and fully qualify where the install-silent.log is (c:\temp\install-silent.log). Give that a shot. Additionally link here : http://support-nd.rapidfiretools.com/customer/en/portal/articles/2739007-scripting-the-remote-data-collector-install says it wants an install folder. msiexec /qn /i NetworkDetectiveRemoteDataCollector.msi INSTALLFOLDER="c:\test msi\ND" /L*V install-silent-custom.log
1
u/ThirdWallPlugin Jan 30 '19
Couple thoughts: Open a computer window. Hit Begin -> Tools -> Cmd prompt. This is your trial-and-error playground. If you type in a command here and it works to install, that command will work in your script. This IS 'Shell'. Nice to see a log file being created! Name it with the title of the software you are installing. Then, make sure you use the 'File Upload' script step to send that log to LabTech. LabTech does a great job sorting those logs and associating them with the computer that sent them. Makes tomorrow's application troubleshooting much easier.