This may not be the correct forum for this question…
I have a .ps1 script and a setup.exe. The setup.exe supports a /S silent switch.
# Path to the .REG file
$regFilePath = "C:\temp\Custom.reg"
# Path to the .EXE file
$exeFilePath = "C:\temp\Setup.exe"
# Run the .REG file
Start-Process -FilePath "regedit.exe" -ArgumentList "/s $regFilePath" -Wait
# Run the .EXE file with the /s switch for silent installation
Start-Process -FilePath $exeFilePath -ArgumentList "/s" -Wait
Using the Microsoft utility IntuneWinAppUtil.exe I can create a customsetup.intunewin file that I import into Intune.
My question is once the .intunewin file is Intune Intune how do I call the .ps1 file? What is the syntax? The Intune interface askes for an Install Command. Do you need to enter powershell.exe <path to .ps1> or just the name of the .ps1 file that has been bundled?
I tried calling the bundled .ps1 file name and it didn’t execute so I was curious?