Page 1 of 1

elevated administrator powershell: started software = black window

Posted: Mon May 25, 2020 6:38 am
by soscvkoflert
Hi,

we exectued software installation via a complied powershell based on:

https://www.sapien.com/blog/2017/01/19/ ... nistrator/

The executed command msiexec runs fine with adminsitrative permissions. But if there is a pop-up, then the pop-up itself is visible, but the content is black. Its indepdent of the used graphics card on all machines the same issue.
2020-05-25 16_01_35-Window.png
2020-05-25 16_01_35-Window.png (50.36 KiB) Viewed 1763 times
Build for Sapien Powershell V5 Host (Windows), tried also command line, same result

Windows 10, 1709, 64-Bit
Powershell Studio Version 2020 5.7.178

Re: elevated administrator powershell: started software = black window

Posted: Wed May 27, 2020 8:14 am
by Olga_B
We are investigating this and will update you as soon as we have more information. And thank you for the feedback.

Re: elevated administrator powershell: started software = black window

Posted: Wed May 27, 2020 8:56 am
by Alexander Riedel
It is an effect of a .NET Framework bug. To make a long story short, the starter app loads the .NET framework. The launches itself as another user. Then it launches msiexec in your case elevated.
The .net framework attempts to share itself across the three processes but collides with the different security tokens.
The only way around we found is if the starting executable (the one doing run as) is NOT a .net executable.
Try specifying the Microsoft Windows PowerShell (Command Line) for that part and see if that helps in your case.

Re: elevated administrator powershell: started software = black window

Posted: Fri May 29, 2020 2:26 am
by soscvkoflert
Thanks for the explanation, when we switch to Windows Powershell we get on the starter script (trying to start the elevated script):

Cannot run Script, error: The stub received bad data.

B

Re: elevated administrator powershell: started software = black window

Posted: Mon Jun 15, 2020 6:18 am
by Alexander Riedel
Can you send your starter script and the .psbuild file (zipped) to support@sapien.com?

Re: elevated administrator powershell: started software = black window

Posted: Mon Jun 15, 2020 10:19 am
by soscvkoflert
Done, thanks a lot.