Here is what the error looks like
(trying to install MS Teams)
Nov 1 09:35:16 JonathaacStudio Installer[17663]: Failed to load specified background image
Nov 1 09:35:16 JonathaacStudio Installer[17663]: Could not load resource readme: (null)
Nov 1 09:35:16 JonathaacStudio Installer[17663]: Could not load resource license: (null)
Nov 1 09:35:16 JonathaacStudio Installer[17663]: IFJS: Package Authoring Error: access to path "/Applications/Microsoft Teams.app" requires <options allow-external-scripts='true'>
Nov 1 09:35:47 JonathaacStudio Installer[17663]: PUKApplicationCloser: Done updateOpenAppsAndPlugIns!
Nov 1 09:35:47 JonathaacStudio Installer[17663]: PUKApplicationCloser: Alert did end with code: -1
Nov 1 09:35:51 JonathaacStudio installd[618]: PackageKit: ----- Begin install -----
Nov 1 09:35:51 JonathaacStudio installd[618]: PackageKit: Install Failed: Error Domain=PKInstallErrorDomain Code=110 "An error occurred while extracting files from the package “Teams_osx-2.pkg”." UserInfo={NSLocalizedDescription=An error occurred while extracting files from the package “Teams_osx-2.pkg”., NSURL=file:///Users/jonathancooper/Library/CloudStorage/Dropbox/Mac/Downloads/Teams_osx-2.pkg#Teams_osx_app.pkg, PKInstallPackageIdentifier=com.microsoft.teams, NSUnderlyingError=0x12e205310 {Error Domain=PKXARArchiveErrorDomain Code=101 "archive open failed" UserInfo={NSURL=file:///Users/jonathancooper/Library/CloudStorage/Dropbox/Mac/Downloads/Teams_osx-2.pkg, NSFileOwnerAccountID=501, NSFileHFSTypeCode=0, NSFileSystemFileNumber=156803704, NSFileExtensionHidden=false, NSFileSystemNumber=16777232, NSFileSize=214791655, NSFileGroupOwnerAccountID=20, NSFileHFSCreatorCode=0, NSFileOwnerAccountName=jonathancooper, NSFilePosixPermissions=384, NSFileCreationDate=2022-10-30 19:50:23 +0000, NSFileType=NSFileTypeRegular, NSFileProtectionKey=NSFileProtectionCompleteUntilFirstUserAuthentication, NSFileGroupOwnerAccountName=staff, NSFileReferenceCount=1, NSFileModificationDate=2022-10-30 19:50:23 +0000, NSLocalizedDescription=archive open failed}}} {
NSLocalizedDescription = "An error occurred while extracting files from the package \U201cTeams_osx-2.pkg\U201d.";
NSURL = "file:///Users/jonathancooper/Library/CloudStorage/Dropbox/Mac/Downloads/Teams_osx-2.pkg#Teams_osx_app.pkg";
NSUnderlyingError = "Error Domain=PKXARArchiveErrorDomain Code=101 \"archive open failed\" UserInfo={NSURL=file:///Users/jonathancooper/Library/CloudStorage/Dropbox/Mac/Downloads/Teams_osx-2.pkg, NSFileOwnerAccountID=501, NSFileHFSTypeCode=0, NSFileSystemFileNumber=156803704, NSFileExtensionHidden=false, NSFileSystemNumber=16777232, NSFileSize=214791655, NSFileGroupOwnerAccountID=20, NSFileHFSCreatorCode=0, NSFileOwnerAccountName=jonathancooper, NSFilePosixPermissions=384, NSFileCreationDate=2022-10-30 19:50:23 +0000, N
Nov 1 09:35:52 JonathaacStudio Installer[17663]: Install failed: The Installer encountered an error that caused the installation to fail. Contact the software manufacturer for assistance.
Nov 1 09:35:52 JonathaacStudio Installer[17663]: Displaying 'Install Failed' UI.
Nov 1 09:35:52 JonathaacStudio Installer[17663]: 'Install Failed' UI displayed message:'The Installer encountered an error that caused the installation to fail. Contact the software manufacturer for assistance.'.