How to create an SCCM/MECM application using a Powershell script as the installer?
I needed to deploy a simple portable application and did not want to compile it into an MSI. here are the steps to take any portable/standalone file and create an application from it.
SCCMSCRIPTS
b
9/27/20241 min read


I was provided a folder full of files. one of which being an executable and asked for a ten minute turnaround to package and deploy it to a group of users. It was a simple request, so I opted for a simple solution.
Step 1) I zipped the files into a compressed folder (right click -> send to -> compressed folder)
Step 2) create simple ps1 files for install/uninstall. There is no need to get PSADT involved with this one.
Installer.ps1
UnInstaller.ps1
Step 3) Create application. When calling a Powershell script from SCCM/MECM you need to run powershell and have it call the file.


Detection method = File system that points to the specific exe that was extracted
Installation Program = Powershell.exe -ExecutionPolicy ByPass -File "Sepsize_install.ps1"
Uninstall Program = Powershell.exe -ExecutionPolicy ByPass -File "Sepsize_uninstall.ps1"

