Aug 15, 2015 at 5:03 PM
Edited Aug 15, 2015 at 5:05 PM
I just tried it with a product that runs
and it worked fine. Since IE11 is not Windows Installer based, are you sure that it told Windows Installer itself it needs a reboot? If you look at the MSI log, it should return 3010.
Also, since you didn't provide
- which is the only time the code passes
- and you didn't mention your machine rebooted automatically (which it would by default if Windows Installer were told a reboot was required), I'm guessing the problem is in your package.
Here are my results
PS> install-msiproduct .\bin\Reboot.msi -chain -ResultVariable rv
WARNING: Could not create a system restore point: Access is denied
WARNING: The requested operation is successful. Changes will not be effective until the system is rebooted
See commit 91e13e3c0c90798aec14d1a142177b9c35d64ad4 for my sample, and check that however you're installing IE11 within Windows Installer is correctly handling reboots as Windows Installer knows. For example, if you're running the IE11 EXE installer as a custom
action, you have to run ScheduleReboot yourself.
There is no universal way in Windows to record reboots required, and each package manager including wusa.exe has its own way of recording that reboots are required. Since these cmdlets are focused on Windows Installer, it only cares if Windows Installer itself
requires (or initiates) a reboot.