Contents tagged with Start-Process
today I want to share another piece of code, that proved to be helpful for me in creating docker containers.
Here it is:
Start-Process c:\sdksetup.exe -ArgumentList '/Quiet /NoRestart' -Wait; \
First time when I seen it I was sceptical. Why I should use Start-Process instead of just running application? The answer is simple: because quite often installers just execute some processes and give control to powershell in asyncronous way. And if other parts of your docker image are dependable from your sdksetup.exe, then you'll not get needed container.
For example you can install Dot net 4.6.2 package in the following way:
RUN Invoke-WebRequest 'https://download.microsoft. … more