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

    Snapin will not finish

    Scheduled Pinned Locked Moved
    FOG Problems
    4
    11
    4.4k
    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.
    • B
      bigjohn322
      last edited by

      I have a compiled executable created with AutoIT that will work without issue when run manually while logged on to any of my lab machines, but will never finish when it is deployed as a FOG snapin.

      fog.log says:
      [CODE] 1/31/2012 6:07 PM FOG::SnapinClient Starting FOG Snapin Download
      1/31/2012 6:08 PM FOG::SnapinClient Download complete.
      1/31/2012 6:08 PM FOG::SnapinClient Starting FOG Snapin Installation.[/CODE]
      but nothing else ever happens.

      After rebooting, this appears in the log:
      [CODE] 2/1/2012 11:27 AM FOG::SnapinClient FOG Snapin Installtion complete.
      2/1/2012 11:27 AM FOG::SnapinClient Installation returned with code: 0[/CODE]
      but the program has not been installed.

      For more info, the software being installed is 123DCatch from Autodesk, which is an MSI installer. I am running it within AutoIT using the ShellExecute command. As I said before the packaged AutoIT installer runs without issue when run manually on the machines, just not when deployed via FOG as a snapin.

      Any ideas? How can I trouble shoot this?

      1 Reply Last reply Reply Quote 0
      • K
        Kevin
        last edited by

        are you running the msi installer with the msiexec -i command from within your snapin page?

        "The quieter you become, the more you are able to hear"

        New to FOG? Check the [URL='http://www.fogproject.org/wiki/index.php/FOGUserGuide']Wiki[/…

        1 Reply Last reply Reply Quote 0
        • B
          bigjohn322
          last edited by

          No, like I said I am running it using the ShellExecute command within AutoIT. I know that I could do a default silent install using msiexec from within the snapin page, but that is not the point. What if there are non-command-line (non-switched) things that I want to change about the install?

          I guess what it probably boils down to is that the snapins are being run as the System user because the FOG service is installed and run as System. If I try to change the user that the service is run as, the service no longer connects to the FOG server. For the ShellExecute command in AutoIT to work properly I’m taking a wild guess by saying it might need a user profile loaded in order to function correctly?
          Just trying to understand why it would work logged in but not when deployed as a snapin. I’ve run into similar problems with non-MSI installers where they never finish unless it is run manually while logged in.

          Sorry if this is in the wrong section, please move it if there is a more appropriate place.

          1 Reply Last reply Reply Quote 0
          • Lee RowlettL
            Lee Rowlett Developer
            last edited by

            Hi bigjohn322,

            your problem maybe due to the fact the autoit script is exiting before the msi completes but because the autoit script is “complete” by running the msi close and send the exit code to FOG. try ShellExecuteWait, this will wait for the msi to complete and then close the autoit script. if not try to run the msi using runwait.

            Hope this help

            1 Reply Last reply Reply Quote 0
            • B
              bigjohn322
              last edited by

              Thanks for the suggestion Lee, but as the script needs to interact with the installer, the wait functions can’t be used. The script makes use of the WinWaitActive commands to wait for the next window with installation choices then enters the appropriate choices. If I just ran the MSI with ShellExecuteWait or RunWait, it would not change any of the installation options.

              1 Reply Last reply Reply Quote 0
              • B
                bigjohn322
                last edited by

                This post is deleted!
                1 Reply Last reply Reply Quote 0
                • Lee RowlettL
                  Lee Rowlett Developer
                  last edited by

                  oh, sorry didn’t realise you were controlling the script with WinWaitActive… do you see the install start at all? where is the msi located?

                  1 Reply Last reply Reply Quote 0
                  • B
                    bigjohn322
                    last edited by

                    Yes, the install starts. The only way to “see” it is by logging on to the machine and checking the running processes and looking for msiexec.

                    The MSI is copied locally using FileInstall() (it is bundled as a part of the compiled executable). So it would be run from wherever the FOG service places the snap-in when it is downloaded.

                    1 Reply Last reply Reply Quote 0
                    • Lee RowlettL
                      Lee Rowlett Developer
                      last edited by

                      This will be the problem then mate, I’m pretty sure WinWaitActive only works when there is an active session as it’s interactive.

                      1 Reply Last reply Reply Quote 0
                      • B
                        bigjohn322
                        last edited by

                        I have other snap-ins that make use of WinWaitActive that run without issues, so I’m not sure that is the problem.

                        1 Reply Last reply Reply Quote 0
                        • A
                          andyroo54 Moderator
                          last edited by

                          I’m having a similar problem, snapins that deploy and finish fine on windows XP are, well some install but then the task just stays there, and others don’t even deploy. But if I run the SFX manually it works fine. Hmm…

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

                          215

                          Online

                          12.0k

                          Users

                          17.3k

                          Topics

                          155.2k

                          Posts
                          Copyright © 2012-2024 FOG Project