Windows Installer and Windows does have a way to deal with this situation... it's called the "Restart Manager" ;) http://msdn.microsoft.com/en-us/library/aa373524(VS.85).aspx
If you implement restart manager support, Windows Installer can ask your app nicely to shut down and release the file locks, then automatically restart it afterwards. I recall a really interesting video (channel9 maybe?) introducing the restart manager and showing how it works.... the example demonstrated was fairly simple, but the application was shut down and restarted automatically without requiring a reboot. Fairly easy to implement if you're using the Windows SDK, with a bit more work you can even implement support using the old Platform SDK. Restart Manager support is a requirement anyway to get the Windows 7 compatible logo on your software :) Sascha On Wed, Jun 2, 2010 at 3:05 AM, Stefan Kuhr <kustt...@gmx.li> wrote: > > Yes, sure, my application holds a lock on these files. I would expect that > MSI can deal with such a situation, because having a file open is an everday > scenario, even if this happens only for a short time. It can deal with exe > and dll files that are currently running and the files that are locked > because of that, why can't it in my case with the PNG files or any other > file that the app is currently holding a file handle open to? > > -- > Stefan > -- > View this message in context: > http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Files-missing-after-major-update-what-am-I-doing-wrong-tp5125447p5127026.html > Sent from the wix-users mailing list archive at Nabble.com. > > ------------------------------------------------------------------------------ > > _______________________________________________ > WiX-users mailing list > WiX-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wix-users > ------------------------------------------------------------------------------ _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users