(143) Microsoft Intune - Microsoft 365 Apps, Project 365 & Visio 365 as Win32 Apps
- Mr B SOE way
- Aug 27, 2024
- 3 min read
About 6 months I created this post about packaging Microsoft 365 Apps as a Win32 app https://soeintunedevice.wixsite.com/home/post/102-microsoft-intune-microsoft-365-apps-win32-app.
Below will a step by step on what needs to be done. Microsoft 365 Apps
1. Select Download under Microsoft Office Deployment Tool.
2. Run the officedeploymenttool_17830-20162.exe to extract the files to a file like C:\ODT. Click OK
By navigating to C:\ODT, you will see the following:
3. Navigate to https://config.office.com to customise your Microsoft 365 settings, select on 'Import your configuration'
4. Under Deployment Settings, select the following: Architecture: 64-bit Products: Microsoft 365 Apps for Enterprise Update Channel: Current Channel Select the version: Latest Apps: select the required Language: Select English (United States) Installation: Select Office Content Delivery Network (CDN) Show installation to user: On Shut down running applications: On Under General, enter the name of the Company Under Application Preferences, this is optional to select to customise.
5. Once all settings have been finalised and reviewed, select Export. 6. Place the .xml into the same folder as C:\ODT 7. Rename the Configuration.xml to install.xml
<Configuration ID="4ceff583-7be7-4012-bc5f-ea906f5dbeee"><Add OfficeClientEdition="64" Channel="MonthlyEnterprise" MigrateArch="TRUE"><Product ID="O365ProPlusRetail"><Language ID="en-us" /><Language ID="MatchPreviousMSI" /><ExcludeApp ID="Groove" /><ExcludeApp ID="Lync" /><ExcludeApp ID="Bing" /></Product></Add><Property Name="SharedComputerLicensing" Value="0" /><Property Name="FORCEAPPSHUTDOWN" Value="TRUE" /><Property Name="DeviceBasedLicensing" Value="0" /><Property Name="SCLCacheOverride" Value="0" /><Updates Enabled="TRUE" /><RemoveMSI /><AppSettings><Setup Name="Company" Value="Name of my Company" /><User Key="software\microsoft\office\16.0\common\general" Name="shownfirstrunoptin" Value="1" Type="REG_DWORD" App="office16" Id="L_DisableOptinWizard" /><User Key="software\microsoft\office\16.0\common" Name="qmenable" Value="0" Type="REG_DWORD" App="office16" Id="L_EnableCustomerExperienceImprovementProgram" /><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="Full" AcceptEULA="TRUE" /></Configuration>
8.Create another .xml called uninstall.xml with the following settings
<Configuration>
<Display Level="None" AcceptEULA="True" />
<Property Name="FORCEAPPSHUTDOWN" Value="True" />
<Remove>
<Product ID="ProjectProRetail">
</Product>
</Remove>
</Configuration>
9. Create a detection file called detect.ps1 with the following settings.
$Path = "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\O365ProPlusRetail - en-us"$Name = "DisplayName"$Type = "STRING"$Value = "Microsoft 365 Apps for enterprise - en-us"Try {$Registry = Get-ItemProperty -Path $Path -Name $Name -ErrorAction Stop | Select-Object -ExpandProperty $NameIf ($Registry -eq $Value){Write-Output "Detected"Exit 0}Exit 1}Catch {Exit 1}
10. Download and run this to package convert your package into a Win32 app. Once it has been down, the output is this.
11. Navigate to https://intune.microsoft.com/ then select Apps then select By platform: Windows then select Add.
12. Under Program, select the following: Install command: setup.exe /configure install.xml Uninstall command: setup.exe /configure uninstall.xml Installation time required (mins): 60 Allow available uninstall: Yes Install behaviour: Yes Device restart behaviour: Determine behaviour based on return codes Then select Next.
13. Under Requirements, select the following: Operating system architecture: 64-bit Minimum operating system: Windows 10 1903
14. Under Detection rules, select 'Use a custom detection script' then select Next.
15. Under Dependencies, select Next. 16. Under Supersedence, select Next. 17. Under Assignments, select the required groups, then select Next. 18. Under Review + create, review the settings then select Create.
Project 365 Apps
Under https://config.office.com you will need to make sure to select 'Project Online Desktop Client' on the dropdown.
You can find the Project 365 here in my Github Repo
Visio 365 Apps
Under https://config.office.com you will need to make sure to select 'Visio Plan 2' on the dropdown.
You can find the Visio 365 here in my Github Repo.
If you wish to use my files, make sure to update install.xml
<AppSettings>
<Setup Name="Company" Value="Name of Company" />
</AppSettings>
Comments