Skip to content
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

IntuneWinAppUtil.exe cannot be launched from c# code without console visible #111

Open
EdijsPerkums opened this issue Nov 6, 2023 · 7 comments

Comments

@EdijsPerkums
Copy link

When launching IntuneWinAppUtil.exe from C# code without console visible we get the following error:
System.IO.IOException: The handle is invalid. at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) at System.Console.GetBufferInfo(Boolean throwOnNoConsole, Boolean& succeeded) at Microsoft.Management.Service.IntuneWinAppUtil.LogUtil.PrintProgress(AppContext context) at Microsoft.Management.Service.IntuneWinAppUtil.PackageUtil.CreatePackage(String folder, String setupFile, String outputFolder, String catalogFolder) at Microsoft.Management.Service.IntuneWinAppUtil.Program.Main(String[] args)
It worked fine before #109

@nikyusof this breaks our apps integration with IntuneWinAppUtil.exe and it would be great if this could be fixed.
Please let me know if more information is required.
Thank you!

@rasq
Copy link

rasq commented Nov 7, 2023

Same problem.

@Hardexit
Copy link

Hardexit commented Nov 7, 2023

Packaging has also stopped working in my script since the v1.8.5 update, but back to v1.8.4 it works without any problems.

@esmorun
Copy link

esmorun commented Nov 8, 2023

Same problem here, we use it to package applications from an Azure Devops pipeline Powershell script. After the 1.8.5 update, it no longer works.

@MA-Jason-Coombes
Copy link

Issue still occurring.

image

@jaspain
Copy link

jaspain commented Nov 21, 2023

Same issue. IntuneWinAppUtil.exe 1.8.5 must run in a visible window to work properly.

@jkelly-180
Copy link

Same issue for me when using RedirectStandardOutput with Start-Process in PowerShell 5.1

@charchess
Copy link

Same issue for me using intuneWin32App library, really annoying

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants