What is the best (free) tool to create EXE from PowerShell script?

Welcome Forums General PowerShell Q&A What is the best (free) tool to create EXE from PowerShell script?

This topic contains 4 replies, has 4 voices, and was last updated by

 
Keymaster
3 years, 3 months ago.

  • Author
    Posts
  • #33225

    Participant
    Points: 32
    Rank: Member

    What is the best free tool to "wrap" PowerShell script in exe? I have used PowerGUI, but for some reason, I receive an error message when exiting the script. It works fine, but I receive an error when using .NET 3.5 or .NET 4.0. It works fine with PowerShell Studio, but I receive the prompt saying it's a trial and I don't want to spend the money on the full version at this point. I have tried to use a PowerShell script called PS2EXE, but that does not work correctly as well. Any suggestions?

  • #33227

    Participant
    Points: 0
    Rank: Member

    You could use visual studio's community edition and call the powershell script from a custom application.

    http://blogs.msdn.com/b/kebab/archive/2014/04/28/executing-powershell-scripts-from-c.aspx

    Probably not as easy as you want it to be though.

  • #33228

    Participant
    Points: 32
    Rank: Member

    Yeah, that is pretty interesting, but I don't know anything about C#. Don't quite understand most of what is written in that blog post you sent. I will look further into it at some point in case it would be useful to use a C# application.

  • #33238

    Participant
    Points: 0
    Rank: Member

    Never tested it myself but this could be an easy way: https://gallery.technet.microsoft.com/PS2EXE-Convert-PowerShell-9e4e07f1

  • #33256

    Keymaster
    Points: 1,811
    Helping HandTeam Member
    Rank: Community Hero

    PowerGUI hasn't been updated in a long time, and that might be one reason it's wonky for you. It's no longer a supported product as far as I know.

    This is one of those things where doing the task is complex enough that it might be worth paying for a tool that does it right ;). I mean, ever try to frame a house using a rock? Makes a hammer look pretty inexpensive.

The topic ‘What is the best (free) tool to create EXE from PowerShell script?’ is closed to new replies.

denizli escort samsun escort muğla escort ataşehir escort kuşadası escort