• Recent
    • Unsolved
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    FOG Snapin Does not Finish

    Scheduled Pinned Locked Moved Solved
    FOG Problems
    5
    17
    1.1k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • george1421G
      george1421 Moderator @UWPVIOLATOR
      last edited by

      @UWPVIOLATOR So what does your command line look like that calls this installer?

      If you run that same command from an elevated command prompt what happens? Does the software upgrade correctly? Does it exit correctly without any popups?

      Again this is for debugging, if you wrap the .exe in a cmd file and run from an elevated command prompt what exit code is returned.

      ZenAgentUpdater.x64.17.4.exe -q -x -Z c:\windows\temp\zen.log -U
      echo Exit Code is %errorlevel%
      

      I guess on most of the command line for the zen agent update. So don’t quote me on it.

      Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG!

      UWPVIOLATORU 3 Replies Last reply Reply Quote 0
      • UWPVIOLATORU
        UWPVIOLATOR @george1421
        last edited by

        This post is deleted!
        1 Reply Last reply Reply Quote 0
        • UWPVIOLATORU
          UWPVIOLATOR @george1421
          last edited by

          @george1421 Its this. Even when running quietly it still pops this up.

          mRemoteNG_EZb9W7CXjk.png

          george1421G 1 Reply Last reply Reply Quote 0
          • george1421G
            george1421 Moderator @UWPVIOLATOR
            last edited by george1421

            @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.

            Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG!

            Tom ElliottT 1 Reply Last reply Reply Quote 0
            • Tom ElliottT
              Tom Elliott @george1421
              last edited by

              @george1421 -s is usually used for silent

              Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG! Get in contact with me (chat bubble in the top right corner) if you want to join in.

              Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

              Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

              1 Reply Last reply Reply Quote 0
              • UWPVIOLATORU
                UWPVIOLATOR @george1421
                last edited by

                @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.

                george1421G Tom ElliottT D 3 Replies Last reply Reply Quote 0
                • george1421G
                  george1421 Moderator @UWPVIOLATOR
                  last edited by

                  @UWPVIOLATOR So the question is, what is the exit code provided by the application? 1603, 1604?

                  Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG!

                  1 Reply Last reply Reply Quote 0
                  • Tom ElliottT
                    Tom Elliott @UWPVIOLATOR
                    last edited by

                    @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?

                    Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG! Get in contact with me (chat bubble in the top right corner) if you want to join in.

                    Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

                    Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

                    UWPVIOLATORU 2 Replies Last reply Reply Quote 0
                    • UWPVIOLATORU
                      UWPVIOLATOR @Tom Elliott
                      last edited by

                      @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.

                      1 Reply Last reply Reply Quote 0
                      • UWPVIOLATORU
                        UWPVIOLATOR @Tom Elliott
                        last edited by

                        @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.

                        george1421G 1 Reply Last reply Reply Quote 0
                        • george1421G
                          george1421 Moderator @UWPVIOLATOR
                          last edited by

                          @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 the cmd.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.

                          Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG!

                          1 Reply Last reply Reply Quote 0
                          • D
                            Daniel Miller @UWPVIOLATOR
                            last edited by

                            @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 like start "" 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

                            1 Reply Last reply Reply Quote 0
                            • 1 / 1
                            • First post
                              Last post

                            194

                            Online

                            12.0k

                            Users

                            17.3k

                            Topics

                            155.2k

                            Posts
                            Copyright © 2012-2024 FOG Project