Reputation: 767
I need to run(install) an exe which takes some custom parameter (arguments)
install.exe --no-prompt -u username -p password
The above command is provided by the 3rd party team to allow silent installation of the agent
Since I am trying to install this via powershell, I want to know how to pass the custom parameters.
Note: This exe is a 3rd party component. I can run command to install an exe with credentials object. But the same is not working in this case.
Upvotes: 4
Views: 21228
Reputation: 696
Start-Process -FilePath C:\run.exe -ArgumentList "--no-prompt -u username -p password"
Upvotes: 1
Reputation: 16266
Executables can be run in PowerShell. Try:
& install.exe --no-prompt -u username -p password
It might require giving a full path to the executable.
& C:\Users\me\Downloads\newapp\install.exe --no-prompt -u username -p password
If this does not do it, be sure to copy and paste any messages into the question.
Upvotes: 6