Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
menu search
person
Welcome To Ask or Share your Answers For Others

Categories

I am working on a project where several software and drivers are installed on a windows 7 PC. This shall work without user inputs.

Now there is the question: How can I determine in this program if a reboot is required to finish an installation (can be driver or software).

We are working on Windows 7 embedded and there is no taskbar enabled or any tooltips or something like this visible. Software is installed in silent mode.

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
196 views
Welcome To Ask or Share your Answers For Others

1 Answer

Use the following registry key:

HKLMSystemCurrentControlSetControlSession ManagerPendingFileRenameOperations

Source: How to find out if an MSI I just installed requested a windows reboot?

As discovered by the asker of this question HKLMSOFTWAREMicrosoftWindowsCurrentVersionComponent Based ServicingRebootPending shows when a reboot is pending on the machine as long as the OS is Vista or newer.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
...