Powershell progress in PS2EXE with close button?

Welcome Forums General PowerShell Q&A Powershell progress in PS2EXE with close button?

Viewing 1 reply thread
  • Author
    Posts
    • #277833
      Participant
      Topics: 4
      Replies: 21
      Points: 77
      Rank: Member

      I have made a small gui program in Powershell Studio. If I use the .ps1 file in powershell it does show the “Write-Progress -Activity” in the background and when I close the program it does this as well.

      BUT…when compiling it with PS2EXE it does give this neat thingie. But the X-button has dissapeared and to close I have to press ctrl+f4.

      Write-Progress -Activity "Replacing Words" -CurrentOperation "Ers├Ątter $($find) med $($replace)" -Status "Processing $($ord.IndexOf($_) + 1) of $($ord.Length)"

      01. Is there a way to make it close the progress window when its done automaticly?
      02. Is it possible to add the X-button at the top or a “ok”-button to easy quit?

    • #277848
      Participant
      Topics: 4
      Replies: 21
      Points: 77
      Rank: Member

      Stupid me:

      01. Write-Progress -Activity "Klar..." -Completed

      But I do want the X-button in the corner.

Viewing 1 reply thread
  • You must be logged in to reply to this topic.