Luke
Luke

Reputation: 2486

Provide progress indication during a lengthy start /wait command

Part way through a batch file, there's a start /wait command, (invoking the silent install of a MSI file). As this install may take a while to complete, I'd like to animate, or show something, to the end user, indicating that the batch file is still working.

Is there, perhaps, a way to do that with looping code?

Upvotes: 0

Views: 472

Answers (1)

Raphael Cunha
Raphael Cunha

Reputation: 56

there!

If you are installing a .msi package, you can use the "/passive" option to show only the progress bar while the program is install. In this example, I will use a PowerShell command to call a "msiexec.exe" with -wait argument:

Start-Process msiexec.exe -Wait -ArgumentList "/i C:\directory\msifile.msi /passive /norestart"

If you wanto to see all the other options, use:

msiexec.exe /?

enter image description here

Upvotes: 1

Related Questions