Page 1 of 2

[SOLVED] Creating Office Standard 2016 package

Published: September 24, 2018 - 5:28 PM
by admgautier
Hello,

I'm a new WAPT user and I'm having some trouble creating an Office Standard 2016 package.
I've scoured all the forums that dealt with the subject and none of the proposed methods have been successful.

The procedure I tried to follow is: http://reseaux85.fr/index.php?title=Dep ... oft_Office
Is there anyone here who has a more detailed method for creating this package? (I feel like there are missing steps or I haven't understood everything...)

So far, here's my process:
- creation of my .MSP file (named "config.msp" which I place in the root of the Office installation folder)
- creation of the template (using the command `wapt-get make-template`)
- copying the "Office" folder into the newly created project folder
- editing and modifying the .py file (this might be where my mistake is)
- retrieving the .xml file (from "standard.ww" and cutting/pasting it into the project root, renaming it "silent.xml")
- modifying the .xml file (probably another point of error, but I'm not sure)
- Creating the package (using the `build-package` command).

If anyone has the configuration files to modify/create and the paths to place them, I'd appreciate it...

Thank you in advance for your help.

Re: Creating Office Standard 2016 package

Published: September 24, 2018 - 6:21 PM
by dcardon
Hello Admgautier,
admgautier wrote: 24 Sep 2018 - 17:28 As a new WAPT user, I'm having some trouble creating an Office Standard 2016 package.
I've scoured all the forums that dealt with the subject and none of the proposed methods have been conclusive.

The procedure I tried to follow is: http://reseaux85.fr/index.php?title=Dep ... oft_Office
Is there anyone here who has a more detailed method for creating this package? (I feel like there are missing steps or I haven't understood everything...)

So far, here's my process:
- creation of my .MSP file (named "config.msp" which I place in the root of the Office installation folder)
- creation of the template (using the command `wapt-get make-template`)
- copying the "Office" folder into the newly created project folder
- editing and modifying the .py file (this might be where my mistake is)
- retrieving the .xml file (from "standard.ww" and cutting/pasting it into the project root, renaming it "silent.xml")
- modifying the .xml file (probably another point of error, but I'm not sure)
- Creating the package (using the `build-package` command).

If anyone has the configuration files to modify/create and the paths to place them, I'd appreciate it...

Thank you in advance for your help.
Have you looked at the "skeleton" msoffice package on store.wapt.fr?

https://store.wapt.fr/package_details?p ... D_all.wapt

Sincerely,

Denis

[SOLVED] Re: Creation of Office Standard 2016 package

Published: September 25, 2018 - 10:32 AM
by admgautier
Hi Denis,

Yes, I did try to use the "skeleton" package (marked "MUST BE EDIT"), but I don't know where the problem lies... in my settings?
Basically, I'm just trying to install Office in the most basic way possible... without an activation key, and I'm tearing my hair out trying to create my package...
I think I've missed some parts of the creation process, but where...?

Thanks for your quick response,

Yannick

Re: Creating Office Standard 2016 package

Published: September 25, 2018 - 10:40 AM
by agauvrit
Hello,

Before creating the WAPT package, please ensure your silent installation method for Office is correct.

The method described in the package skeleton is only valid for Microsoft Office 2016 Pro Plus.

If you plan to deploy Microsoft Office 2016 Home & Small Business or Microsoft Office 365, you will need to use a different deployment method: https://docs.microsoft.com/fr-fr/deploy ... yment-tool

Once you have validated a silent installation using the correct method, you can confidently proceed with creating the appropriate WAPT package.

Alexandre

[SOLVED] Re: Creation of Office Standard 2016 package

Published: September 26, 2018 - 12:07 PM
by admgautier
Hello Alexandre,

Thank you for your reply.
I tested the silent installation using the .msp file (path\setup.exe /adminfile file.msp): the installation was successful.

Based on this, I then tried to recreate the package by modifying the .py file with the one provided in the procedure described here:http://reseaux85.fr/index.php?title=Dep ... oft_Office (changing the version name: ProPlus -> Standard, the .xml file name: silent.xml -> config.xml, and therefore modifying my config.xml file located in the standard.WW folder).

When deploying the newly created package, I received an error message stating: AttributeError: 'module' object has no attribute 'uninstallkey'.

I don't see where my mistake is, since there is indeed an "uninstallstring" in my .py file...

Thank you for your help (or that of other contributors!!).
Have a good day,

Yannick

Re: Creating Office Standard 2016 package

Published: September 26, 2018 - 1:01 PM
by dcardon
Hello Yannick,
admgautier wrote: Sep 26, 2018 - 12:07 PM Thank you for your reply.
I tested the silent installation using the .msp file (path\setup.exe /adminfile file.msp): the installation was successful.

Based on this, I then tried to recreate the package by modifying the .py file with the one provided in the procedure described here:http://reseaux85.fr/index.php?title=Dep ... oft_Office (changing the version name: ProPlus -> Standard, the .xml file name: silent.xml -> config.xml, and therefore modifying my config.xml file located in the standard.WW folder).

When deploying the newly created package, I received an error message stating: AttributeError: 'module' object has no attribute 'uninstallkey'.

I don't see where my mistake is, since there is indeed an "uninstallstring" present in my .py file...
You need to add the line `uninstallkey = []` before or after `uninstallstring`. Defining the `uninstallstring` variable is optional, but defining `uninstallkey` is mandatory (and has been for quite some time). The reseau85 wiki page will need to be updated.

Sincerely,

Denis

[SOLVED] Re: Creation of Office Standard 2016 package

Published: September 26, 2018 - 4:24 PM
by admgautier
Hello Denis,

Thank you for your reply.
I added the line `uninstallkey= []` and recreated the package.
The error now displayed (during deployment) is:

Office Standard 2016 Installation
CalledProcessErrorOutput: Command 'setup.exe /adminfile config.msp' returned non-zero exit status 1.
Output: 'setup.exe' is not recognized as an internal
or external command, operable program or batch file.

It seems that the `setup.exe` command is not accepted as such. Is this a problem with the relative path of the command in the .py file?

Have a good day,

Yannick

Re: Creating Office Standard 2016 package

Published: September 26, 2018 - 5:02 PM
by dcardon
Hello Yannick,
admgautier wrote: Sep 26, 2018 - 4:24 PM Thank you for your reply.
I added the line uninstallkey= [] and recreated the package.
The error that now appears (during deployment) is:

Office Standard 2016 Installation
CalledProcessErrorOutput: Command 'setup.exe /adminfile config.msp' returned non-zero exit status 1.
Output: 'setup.exe' is not recognized as an internal
or external command, operable program or batch file.

It seems that the setup.exe command is not accepted as such; is this a problem with the relative path of the command in the .py file?
I recommend you read https://www.wapt.fr/fr/doc/CreationPaqu ... index.html This should solve your problem. If not, please post your setup.py file and your package directory structure.

Sincerely,

Denis

[SOLVED] Re: Creation of Office Standard 2016 package

Published: September 27, 2018 - 11:43 AM
by admgautier
Hello,

I followed the procedure you indicated, but without success.

As kindly offered, you will find below the link to my .py and .xml files.
https://wetransfer.com/downloads/ece078 ... 327/0b8649
The structure of my package is as follows:
- setup.py is in the project root directory
- config.msp is in ~\wpatdev\monpaquet\ISO_office\config.msp
- the xml file is in ~\wpatdev\monpaquet\ISO_office\standard.ww\config.xml

If you see anything wrong... (I'm starting to tear my hair out... :( )

Thank you. Have
a good day.

Re: Creating Office Standard 2016 package

Published: September 27, 2018 - 9:48 PM
by sfonteneau

Code: Select all

    if not check_installed_out:
            cmd = 'ISO_office\setup.exe /adminfile ISO_office\config.msp'
    else:
            cmd = 'msiexec.exe /p ISO_office\config.msp'