office snapin problem



  • Server
    • FOG Version: 1.3.3
    • OS: centos 6.4
    Client
    • OS: windows 7
    Description

    hi
    i have a problem with office snapin deployment, here is a little information:

    1. i created the .exe office file using sfxmaker
    2. when i try to manual run it on the target computer (double click) it’s working perfect.
    3. when i try to: basic task - > advanced - > singel snapin - > create singel snapin, i can see on the target machine that “office 2016 succefully installed” but it doesn’t.
    4. when i try to deploy to the same computer googlechrome.msi package from the fog server - > singel snapin deployment, it’s working perfect.
    5. i already tried to change the /quite to /qn and it doesn’t work also.
    6. i changed the time out to 1800 (it should take much less) and also it doesn’t work
      i’ve attacked a part of the fog log file:
    
    ------------------------------------------------------------------------------
    ---------------------------------SnapinClient---------------------------------
    ------------------------------------------------------------------------------
     22/03/2017 14:30 Client-Info Client Version: 0.11.8
     22/03/2017 14:30 Client-Info Client OS:      Windows
     22/03/2017 14:30 Client-Info Server Version: 1.3.3
     22/03/2017 14:30 Middleware::Response Success
     22/03/2017 14:30 SnapinClient Snapin Found:
     22/03/2017 14:30 SnapinClient     ID: 19
     22/03/2017 14:30 SnapinClient     Name: Office 2016
     22/03/2017 14:30 SnapinClient     Created: 2017-03-22 12:07:23
     22/03/2017 14:30 SnapinClient     Action: 
     22/03/2017 14:30 SnapinClient     Pack: False
     22/03/2017 14:30 SnapinClient     Hide: False
     22/03/2017 14:30 SnapinClient     Server: 
     22/03/2017 14:30 SnapinClient     TimeOut: 1800
     22/03/2017 14:30 SnapinClient     RunWith: msiexec.exe
     22/03/2017 14:30 SnapinClient     RunWithArgs: /i
     22/03/2017 14:30 SnapinClient     Args: /qn
     22/03/2017 14:30 SnapinClient     File: office2016.exe
     22/03/2017 14:30 Middleware::Communication Download: http://132.70.33.80/fog/service/snapins.file.php?mac=5C:F9:DD:75:0D:C2||00:00:00:00:00:00:00:E0|00:00:00:00:00:00:00:E0|00:00:00:00:00:00:00:E0&taskid=19
     22/03/2017 14:31 SnapinClient C:\Program Files (x86)\FOG\tmp\office2016.exe
     22/03/2017 14:31 Bus {
      "self": true,
      "channel": "Notification",
      "data": "{\r\n  \"title\": \"Installing Office 2016\",\r\n  \"message\": \"Please do not shutdown until this is completed\"\r\n}"
    }
     22/03/2017 14:31 Bus Emmiting message on channel: Notification
     22/03/2017 14:31 SnapinClient Starting snapin...
     22/03/2017 14:31 SnapinClient Snapin finished
     22/03/2017 14:31 SnapinClient Return Code: 1620
     22/03/2017 14:31 Bus {
      "self": true,
      "channel": "Notification",
      "data": "{\r\n  \"title\": \"Office 2016 Installed\",\r\n  \"message\": \"Installation has finished and is now ready for use\"\r\n}"
    }
     22/03/2017 14:31 Bus Emmiting message on channel: Notification
     22/03/2017 14:31 Middleware::Communication URL: http://132.70.33.80/fog/service/snapins.checkin.php?taskid=19&exitcode=1620&mac=5C:F9:DD:75:0D:C2||00:00:00:00:00:00:00:E0|00:00:00:00:00:00:00:E0|00:00:00:00:00:00:00:E0&newService&json
    ------------------------------------------------------------------------------```

  • Moderator

    @oraniko When a snapin or snapinpack runs forever, usually this means it’s waiting for input. And snapins are not allowed to receive input, nor interact with the end-user in any way.

    So, to troubleshoot, Step back and start without even involving fog. Unzip all these files to somewhere - open an elevated command prompt, cd to the directory and run setup.exe and see what happens. If it doesn’t “just go” without asking for any input whatsoever - then it needs work. Once you have it “just going” without any help, take that work and those commands and make a snapin or snapinpack with them. The links I posted below are full of resources & ideas.



  • @Joe-Schmitt so why it doesn’t work with the exe. file like i did?
    what do you think could be the problem?


  • Senior Developer

    @oraniko if you use a Snapin Pack like you are now, then you can directly call the exe. @KnightRaven was talking about if you used just a regular snapin and hosted the office files on a network share.



  • why should i use a script to call the exe?
    can i just use the setup.exe that located inside the zip file?


  • Senior Developer

    @oraniko said in office snapin problem:

    and the office is not being installed on the target machine.
    another thing is that when i click to see the snapin, then the snapin pack template is changed to the default option, when i try to switch it back to EXE and press on update, it change again to the default option “pease select an option”

    Templates don’t “stick”. That is, when you click a specific template, it just sets the fields to some defaults, and that’s it. It doesn’t remember which template its using since you could change any one of those fields.



  • From what I see(although I am a snapins novice) you were/are trying to run an .exe with msiexec. Msiexec should be used with .msi packages. I could be misinterpreting the logfile though. Also I have had issues when trying to repack .exe files into an .msi and the repacked/wrapped file not installing in the manner you described. Using AD software install, it would push/run but the .msi wouldn’t actually install. Since you don’t need to repack it, like Wayne mentioned, Try using a script to call the exe, or Office has a builtin .msi. In the list of folders for your office setup there should be a ‘version.WW’ folder(so enterprise.ww or maybe proplus.ww, etc.) that will have .msi and .xml files for configuration.

    It looks like Wayne’s links also point to info on doing silent installs or setup options. In short you can call your officesetup.exe /admin and get to the config tool to create a .msp file to use with setup, although I haven’t tried that with the .msi version(just the .exe).

    Just my $0.02 worth,
    Jason



  • ok
    i already have a silent installation of office.
    i use winzip to zip all the files, then i upload it as snapin pack like in the picture i attached.
    in the task managment i see that the task is running, but it’s running forever.
    and the office is not being installed on the target machine.
    another thing is that when i click to see the snapin, then the snapin pack template is changed to the default option, when i try to switch it back to EXE and press on update, it change again to the default option “pease select an option”
    0_1490195594649_Capture.JPG


  • Moderator

    You don’t need to use sfxmaker to deploy office via snapins. You could use snapin packs, or you could just deploy a script that calls the installer components from a share.
    Here are some resources:
    https://technet.microsoft.com/en-us/library/dd630736.aspx
    https://gallery.technet.microsoft.com/office/PowerShell-to-InstallUninst-0536b17b
    https://wiki.fogproject.org/wiki/index.php?title=SnapinPacks


Log in to reply
 

Looks like your connection to FOG Project was lost, please wait while we try to reconnect.