These come in handy when creating packages for deployment. Typical scenarios include when you want to deploy a set of files through an MDM like WS1 or intune.
I use these quite a bit with a couple of options to set to the output directory if needed.
You will need 7Zip, download it from here
Lets begin
Highlight all the files you wish to place in the archive, Right Click > 7-Zip > Add to archive...
![](https://static.wixstatic.com/media/09fad1_22d5b50f484d43788cfeb94369fd77af~mv2.png/v1/fill/w_577,h_135,al_c,q_85,enc_auto/09fad1_22d5b50f484d43788cfeb94369fd77af~mv2.png)
Name the archive executable and tick Create SFX archive. Then Click OK
![](https://static.wixstatic.com/media/09fad1_512e3590bf0e425eb2f1107b867f3636~mv2.png/v1/fill/w_632,h_635,al_c,q_90,enc_auto/09fad1_512e3590bf0e425eb2f1107b867f3636~mv2.png)
So now that your exe has been created you can use a variety of commands. I typically use the following to ensure it extracts to a particular folder etc.
appfiles.exe -o"C:\Program Files\appfiles" -y
![](https://static.wixstatic.com/media/09fad1_8e379faa2cba4387ba472690252fca84~mv2.png/v1/fill/w_979,h_512,al_c,q_90,enc_auto/09fad1_8e379faa2cba4387ba472690252fca84~mv2.png)
This works wonders if you want to place shortcuts etc in particular folders and comes in handy when packaging applications.
Comments