I'm using a PowerShell script to install various programs in "quiet mode" on Windows. I run the installer with the "-wait" switch, so that before starting the installation of the next program, I will wait until the installation of the previous one is completed. For example, here is part of the list:
Since I am using the "Cobian Reflector.crauto" file, I do not use any keys to install Cobian Reflector. And then the following happens: all other installations complete their processes after completion, the “-wait” key works as expected and the script correctly moves on to the next command. But Cobian Reflector, after installation, launches its "user interface" (Cobian.Reflector.UserInterface.exe) and the team still considers this part of the installation and continues to wait for it to close. As a result, the entire script stops working and waits for the user interface process opened by the Cobian Reflector installer to complete. If close it, the installation will be considered complete and the script will move on to the next command.
Of course, I can close the user interface process in the script after some time, but this seems like a very bad decision to me.
I want to understand how this problem can be avoided (or solved).
Maybe the Cobian Reflector installer also has launch keys? Or maybe there is some way to stop it from launching the user interface after installation? Or maybe there are some other ways that I don’t even know about...
By the way, the user interface starts even if you uncheck "Auto-start the user interface" during installation.
In file "Cobian Reflector.crauto" when this checkbox is checked, the string is actually createdorwhen this checkbox is unchecked. But apparently during the installation itself it does not affect anything (unfortunately).
Code:
Start-Process "Chrome.exe" -ArgumentList "/silent /install" -WaitStart-Process "Firefox.exe" -ArgumentList "-ms" -WaitStart-Process "Opera.exe" -ArgumentList "/silent /allusers=1 /launchopera=0 /setdefaultbrowser=0" -WaitStart-Process "Cobian.exe" -WaitStart-Process "7Zip.exe" -ArgumentList "/S" -Wait
Of course, I can close the user interface process in the script after some time, but this seems like a very bad decision to me.
I want to understand how this problem can be avoided (or solved).
Maybe the Cobian Reflector installer also has launch keys? Or maybe there is some way to stop it from launching the user interface after installation? Or maybe there are some other ways that I don’t even know about...
By the way, the user interface starts even if you uncheck "Auto-start the user interface" during installation.
In file "Cobian Reflector.crauto" when this checkbox is checked, the string is actually created
Code:
Start UI=True
Code:
Start UI=False
Statistics: Posted by Dron — 07 Dec 2023, 09:14