damienvanrobaeys / Run-in-Sandbox

Run PS1, VBS, CMD, EXE, MSI, Intunewin, MSIX, or extract ISO, ZIP in Windows Sandbox very quickly just from a right-click
https://www.systanddeploy.com/2023/06/runinsandbox-quick-way-to-runextract.html
763 stars 86 forks source link

$Form PS1.close() error when testing .intunewin package #20

Closed HarmVeenstra closed 1 year ago

HarmVeenstra commented 3 years ago

After Right-Clicking a .intunewin package and specifying the install command, the error below shows and disappears but everything does work like it should.

Exception calling "close" with "g argument(s): "Cannot set Visibility to Visible or call Show, Showbialog, close, or WindowInteropHelper. EnsureHandle while a window is closing." At C:\ProgramData Run_in_Sandbox\RunInSandbox.ps1:108 char:4

$Form PS1.close()

CategoryInfo

: NotSpecified: (:) [J, MethodInvocation Exception +FullyQualifiedErrorid : InvalidoperationException

damienvanrobaeys commented 2 years ago

Yep actually this is not really an error but I will hide it.