Page 1 of 3

WAPT and MS Office

Published: March 30, 2015 - 5:32 PM
by JBT
Hello,

We're all new to WAPT (we've been testing since this morning), and we're looking for a way to deploy MS Office 2010 (and later versions) with the settings we use (configuration options, KMS path, etc.) in these files:
setup.exe /adminfile toto.MSP /config toto.xml
as well as the update directory (SP1.exe).
Is there a command that allows us to specify these settings?

Thanks in advance.

Re: WAPT and MS Office

Published: March 31, 2015 - 5:24 PM
by Frédéric Bonnier
Hello,

It is possible to deploy MS Office via WAPT (in fact, almost anything is possible with WAPT).

Is this the first WAPT package you've created? If so, I advise you to start with a simpler package before tackling MS Office.

To create a package, follow this link: http://dev.tranquil.it/scenari/guide_cr ... _wapt.html

The setuphelper documentation helps to understand the structure of the functions used in setup.py. http://wapt.tranquil.it/wapt/nightly/1.2.1-rc1/docs/

Frédéric Bonnier

Re: WAPT and MS Office

Published: April 1, 2015 - 12:38 PM
by JBT
@fbonnier: Thank you for your reply.

Indeed, before deploying MS Office, we tested with other, simpler programs (VLC, Notepad++, etc.): no problem since these don't require any special configuration files.

Our issue really lies with the MS Office configuration files. Is it possible to include them in the deployment? And if so, how?

Re: WAPT and MS Office

Published: April 8, 2015 - 2:14 PM
by Yvan Karmouta
Hello,
you simply need to include these files directly in the Wapt package.
During installation, you can then manipulate them with the setup.py script, just as you already do with MSI or EXE files.

Re: WAPT and MS Office

Published: May 4, 2015 - 7:03 PM
by Jennifer Mercier
Hello,

were you able to create the package for MS Office? If so, would it be possible to share the package, please?

Thank you.

Re: WAPT and MS Office

Published: May 7, 2015 - 09:24
by sfonteneau
Good morning

Mine looks like this:

Code: Select all


uninstallstring = 'MsiExec.exe /qn /X{90150000-0011-0000-0000-0000000FF1CE}'

def install():
    print('installing Office 2013')
    cmd = '"setup.exe" /adminfile "silent.msp"'
    run(cmd,timeout=1200,accept_returncodes=[1641,3010,0])

Please note that you must generate your silent.smp file using the following procedure before anything else.
You can use this procedure:
https://support.software.dell.com/kb/111193

Simon

Re: WAPT and MS Office

Published: March 14, 2016 - 11:00 AM
by koky
Hello,

I would like to know if it's possible to include a license key in the MS Office 2010 deployment?

If so, how?

Thank you!

Re: WAPT and MS Office

Published: March 14, 2016 - 11:44
by sfonteneau
Good morning

It seems to me that this is possible when creating the MSP

But I advise you, if you can, to use Microsoft's KMS activation

Below you will find another method, but I do not recommend it!
Indeed, this implies entering the key in plain text in the wapt package, which means that anyone can retrieve the key if the wapt package is downloaded by a user.

If this method still interests you, you can add this to the end of your setup.py file (for Office 2016)

Code: Select all




acto = run('cscript "%ProgramFiles%\Microsoft Office\Office16\OSPP.VBS" /dstatus"')
    
if 'ERROR' in acto :
          run('cscript "%ProgramFiles%\Microsoft Office\Office16\OSPP.VBS" /inpkey:AAAA-AAAA-AAAA-AAAA-AAAA')
          run('cscript "%ProgramFiles%\Microsoft Office\Office16\OSPP.VBS" /act"')
else :
          print('activation deja ok')
          
acto = run('cscript "%ProgramFiles%\Microsoft Office\Office16\OSPP.VBS" /dstatus"')

if 'ERROR' in acto :
        print('echec activation')
        error('Error Act')


Re: WAPT and MS Office

Published: March 15, 2016 - 11:43
by a.grisard
Good morning,

I am requesting help as I am unfortunately unable to install MS Office 2007 with WAPT.

I created a silent.msp file with a license key as well as SETUP_REBOOT Never and AUTO_ACTIVATE.

I created my package containing the ISO in the package root, the MSP file, and an uninstall file in XML format:

Code: Select all

<Configuration Product="ProPLus">
<Display Level="none" CompletionNotice="no" SuppressModal="yes" AcceptEula="yes" />
<Setting Id="SETUP_REBOOT" Value="Never" />
</Configuration>
Here is my setup.py file

Code: Select all

# -*- coding: utf-8 -*-
from setuphelpers import *

uninstallstring = 'MsiExec.exe /qn /X{90150000-0011-0000-0000-0000000FF1CE}' # j'ai mis cela mais pour l'instant je cherche seulement à installe

def install():
    print('installing aiz-office2007')
    cmd ='"setup.exe" /adminfile "install_sans_access.MSP"'
    run(cmd,timeout=10000,accept_returncodes=[1641,3010,0])
WAPT returns an error:
Exception: Error during install of pc4001v.montupet.com (=2): errors in packages test-office2007
Installing test-office2007
Exception: Error during install of test-office2007 (=15-0): errors in packages test-office2007
Traceback (most recent call last):
File "C:\wapt\waptservice\waptservice.py", line 2031, in run
self.running_task.run()
File "C:\wapt\waptservice\waptservice.py", line 1291, in pwrapper
return func(*arg, **kwargs)
File "C:\wapt\waptservice\waptservice.py", line 1351, in run
self._run()
File "C:\wapt\waptservice\waptservice.py", line 1775, in _run
','.join([ p[1].package for p in self.result['errors']]),
Exception: Error during install of test-office2007 (=15-0): errors in packages test-office2007

I don't understand where this error comes from.

I followed these procedures:
https://wiki.lesfourmisduweb.org/index. ... aquet_wapt
viewtopic.php?f=9&t=360

I gladly accept your help.

Re: WAPT and MS Office

Published: March 15, 2016 - 1:47 PM
by sfonteneau
Have you tried manually launching your installation without WAPT:

setup.exe /adminfile "install_sans_access.msp"

to see if your MSP is working correctly?

Simon