Hi
I’ve seen this on a few packages now using this function (Copy-ContentToCache), where log throws an error. I think it’s when it tries to run the below code and will state this only for the first file it comes across outside of the toolkit
Set-ItemProperty -LiteralPath $RobocopyDestination -Name Attributes -Value ($DestFolderAttributes -band (-bnot [System.IO.FileAttributes]::Directory))
Below from log:
C:\Temp\3661-TSAWebtool\6.0\AppDeployToolkit\AppDeployToolkitMain.ps1
C:\Temp\3661-TSAWebtool\6.0\AppDeployToolkit\RunHidden.vbs
C:\Temp\3661-TSAWebtool\6.0\Files\3661_3_GBL_M_0101_TSAWebtool6.0-Prod.msi
Set-ItemProperty : The attribute cannot be set because attributes are not supported. Only the following attributes can be set: Archive, Hidden, Normal, ReadOnly, or System.
At C:\Temp\3661-TSAWebtool\6.0\AppDeployToolkit\AppDeployToolkitMain.ps1:5340 char:25
+ ... Set-ItemProperty -LiteralPath $RobocopyDestination -Name ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ReadError: (FileAttributes ...tContentIndexed:PSNoteProperty) [Set-ItemProperty], IOException
+ FullyQualifiedErrorId : SetPropertyError,Microsoft.PowerShell.Commands.SetItemPropertyCommand
Can this be ignored or possibly a bug ?
Many Thanks
Grant