At my job, I do a lot of installing and reinstalling of the same software. I wrote a script in Powershell to silently install everything for me, which works great. However, because it's silent there is no feedback and anyone else who uses the program thinks it's either stalled or not running.
I'm trying to find a way to have it run the silent installs as well as load a status bar. I've been working with this code for the progress bar:
for ($i = 1; $i -le 100; $i++ ){write-progress -activity "Search in Progress" -status "$i% Complete:" -percentcomplete $i; Start-Sleep -Milliseconds 10}; .\Untitled11.ps1
But for the life of me, I can't get it to run at the same time as the installs. I've tried a bunch of different commands like background launching and parallel running but the status bar always run after or before the install depending on where I place it.
Any ideas on how I can have both the install and a status bar to run at the same time? I'm not married to the status bar code, it's just the one I've been working with. So if there is an easier way or more adaptive code, I'm open to it.