Creating a Win32 app or «.intunewin» file is very easy.
The hardest part of any package is the installation logic itself. You can handle this in a PowerShell script or CMD file, for example. I personally prefer the way via PowerShell and name the installation file "install.ps1".
You can find an explanation of the structure here: my take on win32 apps - Intune
Once you have created your routine, proceed as follows:
- Load the current one Microsoft Win32 Content Prep Tool down
- Open the downloaded «IntuneWinAppUtil.exe»
- Provide the path to your package
- Enter the installation file, for me in each case: install.ps1
- Enter the path to the storage of the .intunewin file
- If there is already a file with the corresponding name, you can delete / overwrite it
- For the Catalog Folder question, we choose No (N)
- Done, that was the creation of the Win32 app / «intunewin».
Once the package has been created, you can use it in Endpoint Manager / Intune under «Apps > Windows apps" Add.
The parameters within the apps are then different depending on the application.
As install and uninstall command you can use in most cases use the following:
|install command||%SystemRoot%\sysnative\WindowsPowerShell\v1.0\powershell.exe -windowstyle hidden -executionpolicy bypass -command .\install.ps1|
|uninstall command||%SystemRoot%\sysnative\WindowsPowerShell\v1.0\powershell.exe -windowstyle hidden -executionpolicy bypass -command .\uninstall.ps1|