My WiX 3.9 installer uses RestartManager to shut down the app if it's still running before upgrading or uninstalling. That has worked great for me with very few issues.
Now I have come across a Windows 7 (Pro, SP1, x64) system on which it consistently fails to shut down the app, every single time. A look at the log file reveals that there was an issue opening the RestartManager session: MSI (s) (F4:90) [13:29:42:363]: RESTART MANAGER: Failed to open session; Windows Installer will use the built-in FilesInUse functionality. Error: 121 That error 121 means ERROR_SEM_TIMEOUT, which according to MSDN means it "could not obtain a Registry write mutex in the allotted time. A system restart is recommended because further use of the Restart Manager is likely to fail." I have tried restarting that machine, but it doesn't make a difference, it keeps failing with that same error. As a result my app doesn't get a WM_ENDSESSION message and doesn't shut down, making the installer fail. My only viable option at this point seems to have a custom action which send a fake WM_ENDSESSION to my app or worst case force kill the process if RestartManager couldn't do it, but that defeats the whole purpose of having RestartManager in the first place, and also won't work if there are any other processes locking files which I need to write/delete (which should be rare, but still). Has anyone come across this before or knows a way how to resolve it? // Sascha ------------------------------------------------------------------------------ Dive into the World of Parallel Programming. The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net/ _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users