Hi All,
I am trying to build a script which would install some softwares one after the other. As the exe's cannot be tuned to use with powershell, I am using something like this, invoke-expression, "cmd /c setup.exe". Which means, in powershell console, I am executing the script in cmd prompt. Now my script goes like this:
Write-host Installing first software
invoke-expression, "cmd /c setup1.exe"
Write-host first software installation done.
Write-host Installing second software
invoke-expression, "cmd /c setup2.exe"
Write-host second software installation done.
Here, I get a message on screen saying Installing first software. But even after long time, I will not see "first software installation done." message and "Installing second software" message and so on.. I have to press enter and check every time. My main problem is, After these 2-3 setups are installed, I need to get an input from user and execute some more setups again.. so, the enter I press, is given as input to these steps and as they are empty(just enter) it is throwing me an error.. So, can anyone please help me in this issue?
Chaitanya.