Create an uninstall.xml file:
<Configuration>
<Display Level="None" AcceptEULA="True" />
<Property Name="FORCEAPPSHUTDOWN" Value="True" />
<Remove>
<Product ID="O365ProPlusRetail">
<Language ID="en-us" />
</Product>
</Remove>
</Configuration>
Create a batch file with the following:
set loc=%~dp0 "%loc%setup.exe" /configure "%loc%uninstall.xml"