Questions tagged [windows-restart-manager]

The Restart Manager API can eliminate or reduce the number of system restarts that are required to complete an installation or update.

The Restart Manager API can eliminate or reduce the number of system restarts that are required to complete an installation or update. The primary reason software updates require a system restart during an installation or update is that some of the files that are being updated are currently being used by a running application or service. The Restart Manager enables all but the critical system services to be shut down and restarted. This frees files that are in use and allows installation operations to complete.

For more information: https://msdn.microsoft.com/en-us/library/windows/desktop/cc948910

9 questions
3
votes
2 answers

Under what conditions does RmGetList return 2 for the lpdwRebootReasons output parameter?

Background I am designing an Inno Setup installer to install a Cygwin service, and I am puzzled by the behavior I'm seeing from the Windows Restart Manager APIs. Specifically, when the service is running (started using the cygrunsrv utility), the…
2
votes
1 answer

How does Windows Installer close an application during uninstall?

When uninstalling my application, it attempts to stop it if it's running: Sadly, the automatically closing doesn't really work and it displays this error: My applications disappear, the windows, the tray bar icon, they are all gone. But I can…
1
vote
1 answer

Refresh System Environment Variables for all processes without Logout/ Restart in C++

I am writing a program in c++ that adds a new directory to the path environment variable for the system. The directory is successfully added with the RegSetValueEx() function but the changes are not reflected for all processes. I have tried…
1
vote
1 answer

How do you close then restart explorer.exe in Inno Setup uninstall using the Restart Manager?

Does anyone know of a sample or can provide a sample of how to use the Restart Manager built-in to Windows to close explorer.exe at the beginning of the uninstall process of Inno Setup then restarting it just after files removed ? I have some shell…
user3161924
  • 1,849
  • 18
  • 33
1
vote
0 answers

Restart Manager Dialog Localizing Partially for Wix Installer

We have a legacy InstallShield installer for a product, for which we are porting that product to wix installer. I observed a improper behavior of localization in Restart Manager dialog only during ARP uninstallation, for which only the description…
1
vote
0 answers

How do I return a boolean as a WinDef.LRESULT?

I'm trying to implement the Windows Restart Manager on my Java program and I got to the point where I'm receiving the messages from Windows and executing a callback that looks like this: WindowProc proc = (hwnd, msg, wp, lp) -> { if (msg ==…
Pablo Fernandez
  • 279,434
  • 135
  • 377
  • 622
0
votes
2 answers

Do WebView2 auto updates occur even if there is a process using WebView2?

Our application use WebView2 and it must be keep running for a week or more. We are concerned that if an uninstall occurs due to a WebView2 update while our application is running, it will be terminated by the Restart Manager. The PC using this…
0
votes
0 answers

MFC: Not saving data on reboot / WM_ENDSESSION

If I test an MFC app by sending it an WM_ENDSESSION and TRUE that is ending, the framework of MFC calls OnCloseDocument(). All good! But I find that when Windows update or the MSI Installer wants to reboot after installing something it, the…
user3161924
  • 1,849
  • 18
  • 33
-1
votes
1 answer

How to catch which dlls are causing the server to restart unexpectedly

I have a Windows Server 2012 R2. When I install a msi, Windows installer gives me a prompt telling that system will restart in 60 seconds. How can I catch which dlls are forcing the machine for reboot? Or how can we provide handle at the folder…