When a program is removed under Win9X, the system doesn't automatically refresh the Add/Remove Programs list.
I know there is a way to make it refresh, since I did it years ago, but I have forgotten how to do it.
It seems like the method was to send a message to the desktop window, but I'm not sure what message, and I don't know how to get the desktop window from NSIS.
Any ideas?
NSIS 1.98/Win9X refresh add/remove
3 posts
The is an example in Sunjammer's Archive (have a look at the FAQ). It works only for English Windows versions.
That's kind of a brute force solution
The solution involves finding the window and sending it a WM_PAINT. That will work, but it's not always possible to find that window.
I'm sure that there was a message you could broadcast to all top-level windows to make this happen.
The solution involves finding the window and sending it a WM_PAINT. That will work, but it's not always possible to find that window.
I'm sure that there was a message you could broadcast to all top-level windows to make this happen.