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
Dec 28, 2023Bronze Contributor
Is there anything else that you are running as part of the install ps1 file?
- oryxwayDec 28, 2023Iron ContributorNothing Just trying to run this intunewin file thats all.
- rahuljindalDec 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