Bat file works manually but not from Kace
I have a bat file that install SecureZIP 14.00.0032, activates it, doesn't install the desktop shortcut as well as some other switches.
Thing is, when you run the bat file from the good ole double click. It is installs and everything is great. But when I zip it up, upload it to Kace and have it run the silent.bat file from the zip file. It doesn't work.
I have Override Default Install checked
Full Command line: silent.bat
and Don't prepend msiexec.exe checked.
Here is my bat file: sz140032ene64.exe /S /v"/qn PKDESKTOP=0 LICENSE_KEY=******************* PK_NO_CERT_REQUEST=1 PK_KEY_BACKUP=0"
I have also tried leaving Default installation checked and typing in all the switches there but still does not work.
Anyone have some suggestions or advice?
5 Comments
[ + ] Show comments
Answers (3)
Answer Summary:
Please log in to answer
Posted by:
jknox
9 years ago
Offhand, I'd guess you are running into issues with the user that the bat is running under. MIs/kscripts use LocalSystem by default. When you double click, it's running under whatever account you are logged in with.
You can test this with PSexec: https://support.software.dell.com/k1000-systems-management-appliance/kb/111788
If you need credentials to run the .bat, switch to an online kscript and use the runas function.
You can test this with PSexec: https://support.software.dell.com/k1000-systems-management-appliance/kb/111788
If you need credentials to run the .bat, switch to an online kscript and use the runas function.
Comments:
-
I ran the test in your link and it did not complete so it is an issue with the localsystem user running the bat. - Thomas86 9 years ago
-
The localsystem account does not have a profile so lacks a desktop folder. You might also try adding ALLUSERS=1 to the msi commands so that the application installs for all users - assuming ALLUSERS is not already set to 1 in the internal MSI. - EdT 9 years ago
-
The install is not a MSI file. It is an exe. I tried extracting it with winrar but did not have an option. - Thomas86 9 years ago
Posted by:
EdT
9 years ago
Are you sure it's not an MSI? The switch /qn is specific to MSI installs, and also the property values are in the MSI format of all uppercase. Open task manager and sort on the process name. Then run the install and watch for additional instances of msiexec.exe starting up.
Then check in c:\windows\installer for a newly cached MSI file with the date and time of the install....
Comments:
-
After starting the install, I watched the install shield running and it said "Extracing SZ140032enex64.msi". If I cant get winrar to extract the msi, what can I use? - Thomas86 9 years ago
-
Scratch that. I just let the install shield sit while I went and found the msi file. Hopefully this will fix my issue. - Thomas86 9 years ago
-
That's pretty much the generic approach - don't need to waste time with winrar when running the exe until the first dialog appears will generally allow you to harvest the MSI from the temp folder. So clearing the temp folder before you start will save a lot of hunting! - EdT 9 years ago
Posted by:
Thomas86
9 years ago
C:\ProgramData\Dell\KACE\downloads - rockhead44 9 years ago