PS2EXE v0.2.0.0: Improvements: Platform switch (x64 or x86 or AnyCPU), new “EXE.config” file for “supported runtime”

(Original article:

I have implemented some new switches for PS2EXE:


This compiles the EXE to be run as 32 bit application also on 64 bit OS.


This compiles the EXE to be run as 64 bit application. Therefore an 64 bit OS ist necessary.


This creates an “.exe.config” file with this content:

      <supportedRuntime version="v2.0.50727"/>

Please read this article on MSDN

this may fix some errors that users reported to me.


You can download the new version ouf PS2EXE here:

7 Responses to “PS2EXE v0.2.0.0: Improvements: Platform switch (x64 or x86 or AnyCPU), new “EXE.config” file for “supported runtime””

  1. Adam Bertram


    Thank you so much for creating this script. I will use this religiously! I have one question though. I’ve created a script using .NET forms. I ran ps2exe against it and it worked but when my script launches, it always launches a console window with it. Is there a way to hide this console window and just display the form in the script I created?

  2. Adam Bertram

    This works but I’m trying not to put this into a batch file. The script I created is a very simple GUI we’re wanting to place on all users’ desktops. I would prefer no console window to pop up at all with no switch if that’s possible.

  3. Biju

    Thanx for the script, its simply awsome. I am having trouble where if you create PS script with param to take multiple parameters and converting it to exe, the converted exe didnt accepts the parameters correctly. Is there a way to fix it ?

    • Tom Kats

      Hi. I have the same situation. No parameters allowed, neither Param() or $args[]. Please help. Thanks in advance

  4. fl

    the -noconsole parameter seems to be ignored. i’ve made my exe and very pleased to have that functionality. a black console window shows for a second on executing the program and it would now be nice to avoid that. i’m using PS2EXE v0.2.0.0. please give detailed info about -noconsole

  5. Tom Kats

    Finally I could pass parameters using $args[] array. But $args[] is no global, at least when I convert PS1 to EXE. So I assign parameters from $args[] to variables in the main routine and then pass it to the functions. I could’nt pass $args as parameter to functions, maybe to my inexperience en PS


Leave a Reply