.EXE snapin won't move on after completion



  • I have a simple snapin that I’m trying to deploy. It’s the Spark install file. It’s an exe file that I run with the argument “-q” for quiet install. When I run this on my PC for testing it works without a hitch. When I run it with a snapin it also installs correctly but the Snapin stays on “In-Progress” and doesn’t move on to the next snapin to be deployed. I noticed that the install file stays in the C:\Programs Files (x86)\FOG\temp\ directory and never gets deleted like my other snapins after its done. Why is this not working? I have other .exe’s the deploy just fine. Here is the section from the fog.log after trying to deploy.

    ------------------------------------------------------------------------------
     1/16/2018 11:01 AM Client-Info Client Version: 0.11.12
     1/16/2018 11:01 AM Client-Info Client OS:      Windows
     1/16/2018 11:01 AM Client-Info Server Version: 1.4.4
     1/16/2018 11:01 AM Middleware::Response Success
     1/16/2018 11:01 AM SnapinClient Running snapin Spark 2.8.3
     1/16/2018 11:01 AM Middleware::Communication Download: http://192.168.2.6/fog/service/snapins.file.php?mac=D4:81:D7:69:C1:6E|D4:81:D7:0F:ED:3E|00:28:F8:23:28:97|00:09:0F:FE:00:01|00:28:F8:23:28:9A|00:28:F8:23:28:96||00:00:00:00:00:00:00:E0&taskid=412
     1/16/2018 11:01 AM SnapinClient C:\Program Files (x86)\FOG\tmp\spark_2_8_3.exe
     1/16/2018 11:01 AM Bus Emmiting message on channel: Notification
     1/16/2018 11:01 AM SnapinClient Starting snapin
     1/16/2018 11:02 AM SnapinClient Snapin finished
     1/16/2018 11:02 AM SnapinClient Return Code: 0
     1/16/2018 11:02 AM Bus Emmiting message on channel: Notification
     1/16/2018 11:02 AM Service ERROR: Unable to run module
     1/16/2018 11:02 AM Service ERROR: Access to the path 'C:\Program Files (x86)\FOG\tmp\spark_2_8_3.exe' is denied.
    


  • @kafluke Do you have any antivirus running? If so, disable or uninstall it on a test box, and try again.



  • @Wayne-Workman @Joe-Schmitt any other thoughts on this?



  • 0_1516714359121_perm1.png
    0_1516714366943_perm2.png


  • Senior Developer

    @Wayne-Workman that error is the final fail safe to ensure a malfunctioning module can’t bring down the service by accident. @kafluke can you do what @Wayne-Workman asked in regards to getting the file permissions?



  • @kafluke said in .EXE snapin won’t move on after completion:

    Why would it be asking me for admin permissions to delete this file manually?

    Right click the file, go to properties. Explore, what is different about it’s permissions that would prevent the SYSTEM user from deleting the file? SYSTEM is the name of the account that the FOG Client runs under.



  • @wayne-workman Yeah that’s the weird thing. It doesn’t clean up after a successful install. I have other .exe snapins that appear in that same folder long enough to install and then they correctly disappear and on the webgui the snapins move to the next one. Why would it be asking me for admin permissions to delete this file manually?



  • @kafluke Both of these things in your log are problems:

    1/16/2018 11:02 AM Service ERROR: Unable to run module
    1/16/2018 11:02 AM Service ERROR: Access to the path 'C:\Program Files (x86)\FOG\tmp\spark_2_8_3.exe' is denied.
    

    For some reason, it can’t cleanup I think. @Joe-Schmitt can you give input on this one please? The “Unable to run module” is a new one on me.



  • I also noticed that when I go into the C:\Programs Files (x86)\FOG\temp\ folder and manually delete the .exe file it asks for admin elevation to do so.


 

574
Online

5.4k
Users

12.6k
Topics

118.8k
Posts