PowerShell 7.x – ProgressBarOverlay does not work (EXE)

This forum can be browsed by the general public. Posting is limited to current SAPIEN license holders with active maintenance and does not offer a response time guarantee.
Forum rules
DO NOT POST LICENSE NUMBERS, ACTIVATION KEYS OR ANY OTHER LICENSING INFORMATION IN THIS FORUM.
Only the original author and our tech personnel can reply to a topic that is created in this forum. If you find a topic that relates to an issue you are having, please create a new topic and reference the other in your post.

Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
User avatar
freeman
Posts: 12
Last visit: Tue Oct 29, 2024 10:26 am

PowerShell 7.x – ProgressBarOverlay does not work (EXE)

Post by freeman »

Hello,

When I use a ProgressBarOverlay with PowerShell 7.4.5, it works as long as I run it through PowerShell Studio. However, when I generate an EXE, the progress bar is not displayed.
Is there a workaround for this issue?

Thank you and best regards.
User avatar
brittneyr
Site Admin
Posts: 1799
Last visit: Fri Nov 01, 2024 10:29 am
Answers: 44
Been upvoted: 34 times

Re: PowerShell 7.x – ProgressBarOverlay does not work (EXE)

Post by brittneyr »

We are looking into this and will get back to you soon.
Brittney
SAPIEN Technologies, Inc.
User avatar
freeman
Posts: 12
Last visit: Tue Oct 29, 2024 10:26 am

Re: PowerShell 7.x – ProgressBarOverlay does not work (EXE)

Post by freeman »

Thank you for checking. Any news yet?

Best regards
User avatar
brittneyr
Site Admin
Posts: 1799
Last visit: Fri Nov 01, 2024 10:29 am
Answers: 44
Been upvoted: 34 times

Re: PowerShell 7.x – ProgressBarOverlay does not work (EXE)

Post by brittneyr »

After investigating this behavior, we have discovered the issue is more complicated than expected and will require more time. I will message when I have an update.

In the meantime, I recommend replacing the ProgressBarOverlay control with a ProgressBar control. The text above the progress bar can be replicated with a label control.
Brittney
SAPIEN Technologies, Inc.
User avatar
freeman
Posts: 12
Last visit: Tue Oct 29, 2024 10:26 am

Re: PowerShell 7.x – ProgressBarOverlay does not work (EXE)

Post by freeman »

Is there already a beta that fixes the problem?

Thank you very much
User avatar
brittneyr
Site Admin
Posts: 1799
Last visit: Fri Nov 01, 2024 10:29 am
Answers: 44
Been upvoted: 34 times

Re: PowerShell 7.x – ProgressBarOverlay does not work (EXE)

Post by brittneyr »

We are still looking into this problem. I do not have an estimated time for a fix to be released.

As previously stated, I will update you when I have more information. In the meantime, I recommend replacing the ProgressBarOverlay control with a ProgressBar control. The text above the progress bar can be replicated with a label control.
Brittney
SAPIEN Technologies, Inc.
User avatar
freeman
Posts: 12
Last visit: Tue Oct 29, 2024 10:26 am

Re: PowerShell 7.x – ProgressBarOverlay does not work (EXE)

Post by freeman »

Unfortunately, the background of the label control cannot be set to transparent, which doesn't look very good. It's certainly a workaround, but I hope a solution can be found soon. I'm happy to wait for an update.