Question

When launching uninstall from Explorer, it pops up a message asking the user to close the application.

However, the application is not running. What does FindWindow see that the user can't see?

This does not happen on Windows95 or systems using the Win95 interface.

The problem does not happen when uninstalling from the uninstall icon in the start menu.

Était-ce utile?

La solution 2

In the Win95 GUI, the title of the Explorer Window included the full path - e.g. C:\BuildScripts - whereas in later version (our QA is using Win7 and Win8) the title is now the folder name - e.g. BuildScripts.

Therefore, if your installation folder has the same name as your product, FindWindow cannot differentiate between the open Explorer window and your product.

This is why the problem only arises if you uninstall from Explorer, and does not happen if you uninstall from the uninstall icon in the start menu.

Solutions:

  1. Don't use the same name for your installation folder and your product.
  2. Use the "class" parameter in FindWindow

Autres conseils

the procees is still running in background. Take a look with ProcessExplorer or WindowTaskManager maybe you will recognize it

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top