How to create an exe using Winrar to run a Powershell script
https://www.systanddeploy.com/2016/04/how-to-create-exe-using-winrar-to-run.html
Indeed some people asked me how have I created my EXE file in previous post.
There are many ways to do this.
You can use PowerGUI using this how to on DexterPOSH's blog.
You can also use PowerShell Studio using this how-to.
Using Winrar is may be not the better way but as in PowerShell there are many ways to get the result you want.
In this example I will create a self-extracting
exe using Winrar to run the GUI I have shared previously, MDT Application Manager.
This tool is composed of the files below
The file MDT_Application_Manager.ps1 is this one which will be launched when you run the EXE.
Now let's see how to create this exe.
1 / Open Winrar and click on the Wizard button
2 / Then select Create a new archive
4 / Type the name you want to give to your exe
6 / The exe should has been created on your Desktop, right-click on it and select Open
with Winrar then click on the SFX button.
7 / Now go to the Comment tab
and copy the part below
8 / If you want to set an icon to your exe file go to the Advanced SFX options button
9 / Go to the Text and Icon tab and browse to your icon in the Load SFX icon part
As I like automation I'll soon create a Powerscript script or GUI to automate this task.
Enregistrer un commentaire