Installing Office 2016 through Ansible?

36 views
Skip to first unread message

Tuyen Nguyen

unread,
Mar 22, 2019, 9:43:51 PM3/22/19
to Ansible Project
Hi

I created a playbook to install Office 2016 which I think should work.  I had it run setup.exe /adminfile <unattended.msp file> -- the unattended.msp file I created by running setup.exe /setup and setting it to install with Display level: None, which has Suppress Modal selected only.

Each time I try running it, it keeps errorring out with a return code of 30066.  Has anyone seen this issue before and how do we get around this error?

Seth Daemen

unread,
Mar 23, 2019, 7:47:35 AM3/23/19
to Ansible Project
Can you post your playbook here?

Op zaterdag 23 maart 2019 02:43:51 UTC+1 schreef Tuyen Nguyen:

Tuyen Nguyen

unread,
Mar 24, 2019, 9:52:01 PM3/24/19
to Ansible Project
Hi

The task part of the playbook is:

- name: Install Office 2016 64-bit
  win_package:
    path: 'c:\temp\Office2016\office2016-64\setup.exe'
    product_id: '{90160000-0012-0000-1000-0000000FF1CE}'
    arguments: '/adminfile unattended.MSP'

Before this task, I have another task that copied the distribution files for Office 2016 64 bit install to that c:\temp\Office2016\office2016-64\ directory already.  The unattended.MSP is basically created with the Display level set to none with Suppress Modal selected only.

Tuyen Nguyen

unread,
Mar 24, 2019, 11:54:38 PM3/24/19
to Ansible Project
Actually, I figured it out.

I was trying to install Office 2016 on a base Windows 7 64-bit machine.

There is a log of the install found in ...\AppData\Local\Temp\SetupExe(<somecode>).txt and in that log I was able to find that it was failing due to a prerequisite check for KB2999226 hotfix.  I will have my Office 2016 playbook install this hotfix first before attempting to install now.
Reply all
Reply to author
Forward
0 new messages