FOG Snapin Does not Finish
-
This post is deleted! -
@george1421 Its this. Even when running quietly it still pops this up.
-
@UWPVIOLATOR That right there is your problem. That pop-up. When deployed by FOG and running as SYSTEM its displayed on the hidden desktop.
Since the zenworks help information mentions extraction. If you extract the files to a directory can you get to the MSI file? The MSI might be wrapped in a .exe file. It may be the .exe file that is displaying that message if you can’t find a command line switch to suppress it.
(from your deleted post) I said I guessed at the command line. I’m not sure those were the correct switches to use. I would think the -q should be quiet and not display anything.
-
@george1421 -s is usually used for silent
-
@george1421 Sorry for long response time. So here is what happens. Run the cmd manually it will run and install but still ask for reboot thus I cant get the echo Exit Code is %errorlevel%. Run the came cmd with FOG it force reboots but doesn’t tell FOG it completed thus it loops installing over and over.
-
@UWPVIOLATOR So the question is, what is the exit code provided by the application? 1603, 1604?
-
@UWPVIOLATOR I’m suspecting, possibly, the Unininstall of the old agent (if it is indeed installed on the machine) may be causing it.
Looking at the installer information, the items @george1421 selected should do the trick.
ZenAgentUpdater.x64.17.4.exe -q -x -Z c:\windows\temp\zen.log -U
Though I might shorten it out to:
ZenAgentUpdater.x64.17.4.exe -xqZ > c:\windows\temp\zen.log
First, I’ve removed the -U as this seems to be the potential “issue”. I’d hope that an installer of this type would have the ability to upgrade over install autonomously. I suspect adding the -U causes the prior package to uninstall, causing the prompt which then never returns the error code. Next, the -xq basically just says no reboot and quiet install (unless these 2 arguments cannot be used together?) the -Z just enables logging, though I’m not sure where the log file goes. Any output from the command will then be redirected to C:\windows\temp\zen.log
Rather than having multiple switches, I grouped them together as some times I’ve seen multiple switches may pass as overwriting the prior switches. If this doesn’t work, feel free to seperate the arguments.
Hopefully this helps, and if not, maybe it gives us a better clue as to what’s happening?
-
@Tom-Elliott The log part never worked. I dont think you can make your own log location by the looks of it. I agree with -U it is not needed. The issue I think I have now is 1 the installer is not listening to the augments and 2 because its not listening to augments to goes ahead and reboots before finishing the .bat script and doesnt tell FOG it done.
-
@Tom-Elliott @george1421 I have someone from Zen support looking at it now. But I am going to assume they find the same issue and tell me to deal with it but we will see. Is there a way to run a .exe then keep going with the .bat? If I can do that then I can make this work.
-
@UWPVIOLATOR (this is said off the top of my head since I’m lazy at the moment). Typically you would launch a batch file via an application deployment tool with
cmd.exe /c batch.cmd
I believe if you use thecmd.exe /k batch.cmd
it will do as you ask. I don’t have any windows machines at home to test against. But you might want to look up what the /k switch does. I know the /c switch is common. -
@UWPVIOLATOR If you can’t get the application to behave with respect to the restarts, you could always create a snapin pack bundling the executable with a script. In the script, you could check to see if the application was already installed and of the correct version, then if it wasn’t perform the install. if you wanted to kick off the application and then do something like loop while the executable was running, you might want to play with the
start
command, something likestart "" installer.exe -args
. https://ss64.com/nt/start.html@george1421 the /k flag runs the specified command then leaves the command window open. https://ss64.com/nt/cmd.html