[SOLVED] Installing Office365
Published: August 2, 2019 - 09:32
Hello everyone
Well, I started using WAPT a few weeks ago after spending a few years on updateengine.
This migration has not been without some pain, but it is going well so far and I have to tackle a big task: the deployment of Office365.
So I simply used the Windows deployment tool to download the latest version of Office 365, then:
I generated my own XML file (config-installation.xml) for the installation:
Then create a batch file to launch the installation
The same applies to the uninstallation process; here is the XML file (config-uninstall.xml):
and the batch file:
When launched separately, the two batch files work perfectly and do what I ask of them
So, for Wapt, I created the following setup.py file:
The installation part works perfectly when restarting or shutting down the machine, however the uninstallation part does not work at all.
For the uninstallation, here is the information I was able to extract from Windows:
There are surely much simpler and cleaner ways to do it at all levels, so I'm all for it, especially if it incorporates:
an installation that can be done without requiring the machine to restart
an uninstallation that works via the WAPT console
Thank you in advance for your help, which will also allow me to learn more about WAPT
Debian 9.9 Server
WAPT 1.5.1.26
W10 Package Creation Station
Well, I started using WAPT a few weeks ago after spending a few years on updateengine.
This migration has not been without some pain, but it is going well so far and I have to tackle a big task: the deployment of Office365.
So I simply used the Windows deployment tool to download the latest version of Office 365, then:
I generated my own XML file (config-installation.xml) for the installation:
Code: Select all
<Configuration>
<Info Description="Domaine Office Customization V1" />
<Add OfficeClientEdition="64" Channel="Monthly" ForceUpgrade="TRUE">
<Product ID="O365BusinessRetail">
<Language ID="fr-fr" />
<ExcludeApp ID="Groove" />
<ExcludeApp ID="Lync" />
</Product>
</Add>
<Property Name="SharedComputerLicensing" Value="0" />
<Property Name="PinIconsToTaskbar" Value="TRUE" />
<Property Name="SCLCacheOverride" Value="0" />
<Property Name="AUTOACTIVATE" Value="FALSE" />
<Updates Enabled="TRUE" />
<Updates Branch="Business" />
<RemoveMSI>
<IgnoreProduct ID="VisPro" />
<IgnoreProduct ID="VisStd" />
</RemoveMSI>
<AppSettings>
<Setup Name="Company" Value="Domaine" />
<User Key="software\microsoft\office\16.0\excel\options" Name="defaultformat" Value="51" Type="REG_DWORD" App="excel16" Id="L_SaveExcelfilesas" />
<User Key="software\microsoft\office\16.0\powerpoint\options" Name="defaultformat" Value="27" Type="REG_DWORD" App="ppt16" Id="L_SavePowerPointfilesas" />
<User Key="software\microsoft\office\16.0\word\options" Name="defaultformat" Value="" Type="REG_SZ" App="word16" Id="L_SaveWordfilesas" />
</AppSettings>
<Display Level="None" AcceptEULA="TRUE" />
</Configuration>Code: Select all
@echo off
setup.exe /configure config-installation.xml
exitCode: Select all
<Configuration>
<Display Level="None" AcceptEULA="True" />
<Property Name="FORCEAPPSHUTDOWN" Value="True" />
<Remove>
<Product ID="O365BusinessRetail">
</Product>
</Remove>
</Configuration>Code: Select all
@echo off
setup.exe /configure config-uninstall.xml
exitSo, for Wapt, I created the following setup.py file:
Code: Select all
# -*- coding: utf-8 -*-
from setuphelpers import *
uninstallkey = []
def install():
print('installing domaine-Office365Business')
run('InstallOffice365.bat')
def uninstall():
print('uninstalling domaine-Office365Business')
run('UninstallOffice365.bat')For the uninstallation, here is the information I was able to extract from Windows:
Code: Select all
sofware name: Microsoft Office 365 Business - fr-fr
Uninstall key: O365BusinessRetail - fr-fr
version: 16.0.11727.20244an installation that can be done without requiring the machine to restart
an uninstallation that works via the WAPT console
Thank you in advance for your help, which will also allow me to learn more about WAPT
Debian 9.9 Server
WAPT 1.5.1.26
W10 Package Creation Station