Forum Discussion
oryxway
Dec 28, 2023Iron Contributor
Install.ps1
I packaged an application to intunewin and now I want to execute this application using powershell script. For example - DellUpdateCommand.intunewin I have the powershell script in install co...
rahuljindal-MVP
Dec 28, 2023Bronze Contributor
Is there anything else that you are running as part of the install ps1 file?
oryxway
Dec 28, 2023Iron Contributor
Nothing Just trying to run this intunewin file thats all.
- rahuljindal-MVPDec 28, 2023Bronze ContributorThen why not just import and deploy the intune app directly? Is the intune file just containing the dell utility? If yes, then you should include both the Dell utility and the installation script as part of the same payload.
- oryxwayDec 28, 2023Iron ContributorI totally forgot how I used to do it. **bleep**
Should I extract the intunewin file to the local machine first and then it has to install?
$intunewinFilePath = "C:\Path\To\Your\App.intunewin"
$extractPath = "C:\Path\To\Your\ExtractedFiles"
Expand-Archive -Path $intunewinFilePath -DestinationPath $extractPath -Force
# install.ps1
# Example: Install Dell Command | Update
Start-Process -FilePath ".\Dell-Command-Update.exe" -ArgumentList "/s" -Wait
# Add other installation steps as needed - oryxwayDec 28, 2023Iron ContributorStart-Process -FilePath ".\Dell-Command-Update.exe" -ArgumentList "/s" -Wait
Should I use this as the install.ps1- rahuljindal-MVPDec 28, 2023Bronze ContributorSounds about right. You shouldn’t be required to extract the contents of the Win32 app as part of script execution. Intune will do the extraction anyway. Just call the installer with relevant switches in your ps1 file and wrap that together with the installer file. Import it, call ps1 in cmd and add the detection logic.