How to convert PowerShell script file (.ps1) to .exe by IExpress on Windows 10

Normally, a PowerShell script file with the .ps1 extension needed cannot be executed by double-clicking. To execute, you will have to access PowerShell and write an activation command. For ease of use, you can convert .ps1 files to .exe files.

In this article, TipsMake will guide you how to convert (convert) PowerShell script file (.ps1) to .exe file using IExpress software.

IExpress is an extremely useful tool for coverting Visual Basic and PowerShell scripts as well as other directly non-executable file types. It turns these files into files that can be run with just one click.

Before you get into details, you need to have yourself a PowerShell script file. How to create a PowerShell script file you can refer to in the following article:

Picture 1 of How to convert PowerShell script file (.ps1) to .exe by IExpress on Windows 10

Create .ps1 file with VS Code

Once we have a .ps1 file as shown in the image above, we will continue with the following steps:

Press the Windows + R key combination to open the Run dialog box

Enter the command iexpressinto Run and press Enter

In the IExpress Wizard window that appears, select Create new Seft Extration Directive file and click Next

Picture 2 of How to convert PowerShell script file (.ps1) to .exe by IExpress on Windows 10

Next, select Extract files and run an installation command and click Next

Picture 3 of How to convert PowerShell script file (.ps1) to .exe by IExpress on Windows 10

Choose a name for the executable and then click Next

Picture 4 of How to convert PowerShell script file (.ps1) to .exe by IExpress on Windows 10

You will be asked if you want to prompt users to confirm their package installation. In the framework of this tutorial, you choose No prompt and click Next . If you want to prompt the user, you can choose Prompt and enter a message in the dialog box below

Picture 5 of How to convert PowerShell script file (.ps1) to .exe by IExpress on Windows 10

Likewise, you will be asked whether to display a license agreement prompt. Here we choose Do not display a license and click Next

Picture 6 of How to convert PowerShell script file (.ps1) to .exe by IExpress on Windows 10

In the Packaged files window, click the Add button and navigate to the PowerShell script file you want to Convert and then click Next

Picture 7 of How to convert PowerShell script file (.ps1) to .exe by IExpress on Windows 10

Now, your script file will appear in the Install Program box , if it doesn't appear, fill it in with the full path. Eg C:UsersuserDesktopTipsMake.ps1. In the Post Install Command section, leave the default then click Next

Picture 8 of How to convert PowerShell script file (.ps1) to .exe by IExpress on Windows 10

In the Show windows section, leave the default option Default (recommended) and click Next

Picture 9 of How to convert PowerShell script file (.ps1) to .exe by IExpress on Windows 10

Next is the Finished message you choose to be No message . If you want to display the message to the user after running the script, you can select Display message and enter the message in the dialog box and click Next.

Picture 10 of How to convert PowerShell script file (.ps1) to .exe by IExpress on Windows 10

In the Package Name and Options window, click Browse . Select a save location and enter a file name. Click Save . You can deselect or deselect the options if you want as they won't matter much. Click Next after you're done selecting.

Picture 11 of How to convert PowerShell script file (.ps1) to .exe by IExpress on Windows 10

Next in the Configure restart section, select Only restart if needed and click Next

Picture 12 of How to convert PowerShell script file (.ps1) to .exe by IExpress on Windows 10

You can save IExpress configuration in case you need to go back for editing. For this tutorial, TipsMake choose Don't save and click Next

Picture 13 of How to convert PowerShell script file (.ps1) to .exe by IExpress on Windows 10

All the configuration is done, now you are ready to create the .exe file. Click Next to begin the process

Picture 14 of How to convert PowerShell script file (.ps1) to .exe by IExpress on Windows 10

The converting process will begin and when it is complete click Finish to finish

Picture 15 of How to convert PowerShell script file (.ps1) to .exe by IExpress on Windows 10

You can find your .exe file in the save location of your choice.

Picture 16 of How to convert PowerShell script file (.ps1) to .exe by IExpress on Windows 10

Good luck.

Update 19 January 2021
Category

System

Mac OS X

Hardware

Game

Tech info

Technology

Science

Life

Application

Electric

Program

Mobile