With the latest update, Intune got a cool new feature for Win32 Apps, it now allows you to alternatively specify a PowerShell script as an install or uninstall command instead of the classic commands that we are used to.
Configure the Installer type
In the program tab of any Win32 App or Enterprise App Catalog App for that matter, we can now choose if we want to use a command line argument or a PowerShell script:
Win32 App

When we choose to go with a PowerShell script, we get a page similar to an applicability script, which allows us to upload our script:

Let’s say we want to check if an older version of the App is installed and if yes silently remove it before, we can do this here without having to modify the intunewin package:


Enterprise App Catalog
The same works for EAM Apps, which allows us to do pre- or post-installation steps while still using all the benefits of an EAM App:

Conclusion
While this feature may not look that huge for Win32 Apps, for me the biggest advantage here is, we can simply add some logic to an existing Win32 App, without reuploading the whole App, especially if you may not even have stored the old intunewin file. The maybe even bigger thing is the support in EAM Apps, to make small modifications to the App which does not justify to create our own Package, while still having all the benefit of a pre-packaged EAM App.

Leave a Reply