Lars Bruun-Hansen created NETBEANS-5320:
-------------------------------------------

             Summary: Windows Launcher - Support WER (auto restore)
                 Key: NETBEANS-5320
                 URL: https://issues.apache.org/jira/browse/NETBEANS-5320
             Project: NetBeans
          Issue Type: Improvement
            Reporter: Lars Bruun-Hansen


Windows has a (fairly) new function which allows an application to 
automatically restart itself if it encounters an error or if the system was 
automatically re-booted due to software updates.

I've noticed that on my Windows system applications such as MS Office, Firefox 
and Notepad conveniently will automatically restart after a Windows Update 
forced re-boot and be restored exactly to where they were. Nice!   NetBeans IDE 
doesn't do this. (nor does my Mozilla Thunderbird application for that matter).

For this to work the application, in this case the *Windows IDE Launcher* or 
the *Windows Platform Launcher*, must [register for 
restart|https://docs.microsoft.com/en-us/windows/win32/recovery/registering-for-application-restart]
 by calling the [Win32 RegisterApplication Restart 
function|https://docs.microsoft.com/en-us/windows/win32/api/winbase/nf-winbase-registerapplicationrestart].
 It looks fairly trivial to me. 

Note that this Windows feature also has some tricks for _recovery_ (saving and 
restoring of state) but we can skip that part as NetBeans does this by itself. 
In other words: Registering for recovery is not necessary for NetBeans.

 

 

 

 

 



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to