-
Notifications
You must be signed in to change notification settings - Fork 213
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Access to the path 'IntunePackage.intunewin' is denied #67
Comments
If this is still occurring, please reopen and provide a repro package if possible. |
I still have this issue e.g. when trying this with Notepad++ (v8.7 in my case). The output is:
My guess is, that this is caused by the virus scanner / endpoint protection. When I do the same on a device without virus scanner / endpoint protection it works. It looks like the IntuneWinAppUtil is trying to (re)move the file while the virus scanner / endpoint protection is still scanning the file. Maybe a solution could be to retry this operation a few times before throwing an error. In most cases people will not be able to deacitvate the virus scanner / endpoint protection to get around this. |
Thanks for the additional information! We can look into improving the error handling here. In this case, is it just cleanup that's failing and the intunewin is otherwise usable? Or, is this actually preventing the intunewin from being created? |
It is not just the cleanup that is failing. There is nothing created in the output folder. The mentioned IntunePackage.intunewin file in the temp folder does exist, but seems to be unusable. It does only contain the installer, but not the folder structure and other files the successful intunewin file has. |
Thanks for the additional information. I've opened a bug internally to track this and we will investigate further.
|
I receive the following error when attempting to create a driver installation package. This seems to happen when there are zip files included in the source folder.
ERROR System.UnauthorizedAccessException: Access to the path 'IntunePackage.intunewin' is denied. at System.IO.Directory.DeleteHelper(String fullPath, String userPath, Boolean recursive, Boolean throwOnTopLevelDirectoryNotFound, WIN32_FIND_DATA& data) at System.IO.Directory.Delete(String fullPath, String userPath, Boolean recursive, Boolean checkHost) at Microsoft.Management.Service.IntuneWinAppUtil.PackageUtil.CreatePackage(String folder, String setupFile, String outputFolder, String catalogFolder) at Microsoft.Management.Service.IntuneWinAppUtil.Program.Main(String[] args)
The text was updated successfully, but these errors were encountered: