1. Symptoms
After running the Intune app installer and agreeing to install, the installation stops partway through and shows the following message:

2. Troubleshooting
- Open Terminal and enter
cat /var/log/install.log. This command shows the log output from the installation. According to the log, the failure is caused by the Installer app lacking permissions.
2023-08-25 19:57:45+08 Hostname Installer[10831]: install:didFailWithError:Error Domain=PKInstallErrorDomain Code=110 "提取软件包“CompanyPortal-Installer.pkg”的文件时出错。" UserInfo={NSUnderlyingError=0x600000ff4b40 {Error Domain=PKXARArchiveErrorDomain Code=101 "archive open failed" UserInfo={NSURL=file:///Users/username/Desktop/CompanyPortal-Installer.pkg, NSFileOwnerAccountID=501, NSFileHFSTypeCode=0, NSFileSystemFileNumber=71266333, NSFileExtensionHidden=false, NSFileSystemNumber=16777229, NSFileSize=24795960, NSFileGroupOwnerAccountID=20, NSFileHFSCreatorCode=0, NSFileOwnerAccountName=username, NSFilePosixPermissions=448, NSFileCreationDate=2022-09-28 11:02:21 +0000, NSFileType=NSFileTypeRegular, NSFileProtectionKey=NSFileProtectionCompleteUntilFirstUserAuthentication, NSFileGroupOwnerAccountName=staff, NSFileReferenceCount=1, NSFileModificationDate=2022-09-28 11:03:33 +0000, NSLocalizedDescription=archive open failed}}, NSURL=file:///Users/username/Desktop/CompanyPortal-Installer.pkg#Office16_all_autoupdate.pkg, PKInstallPackageIdentifier=com.microsoft.package.Microsoft_AutoUpdate.app, NSLocalizedDescription=提取软件包“CompanyPortal-Installer.pkg”的文件时出错。}
2023-08-25 19:57:45+08 Hostname installd[5240]: PackageKit: Removing client PKInstallDaemonClient pid=10831, uid=501 (/System/Library/CoreServices/Installer.app/Contents/MacOS/Installer)
2023-08-25 19:57:45+08 Hostname Installer[10831]: Install failed: 安装器遇到了一个错误,导致安装失败。请联系软件生产企业以获得帮助。
2023-08-25 19:57:45+08 Hostname Installer[10831]: IFDInstallController 1DB540 state = 8
2023-08-25 19:57:45+08 Hostname Installer[10831]: Displaying 'Install Failed' UI.
2023-08-25 19:57:45+08 Hostname Installer[10831]: 'Install Failed' UI displayed message:'安装器遇到了一个错误,导致安装失败。请联系软件生产企业以获得帮助。'.
3. Solution
Grant Installer Full Disk Access and the problem is solved.

