Thanks for your clear replies. I thought that was the case but had to check.
@Phil I don't think the Custom Action gives me anything I can't already do. When the patch uninstall is run from the command line I can achieve what I need to - displaying a dialog to undo the schema changes. Just condition it on MSIPATCHREMOVE On the subject of why this is needed and is appropriate... Well, the installation program modifies tables, so why wouldn't uninstall roll that change back out? I'm not rolling back the entire database to a prior state. Just ensuring that the database tables match the code thats executing against them. Of course a data rollback to a prior time is external to uninstall. If the database change is not rolled back the DLL that was rolled back by the uninstall will fail to execute. Effectively the installation is corrupted. Or are you saying database tables should not be modified? In a patch I agree in general, but there may be specific circumstances that require it. And I am nervous too. This installation program is part of a development tool so it must be generalised and is used by all sorts of companies for all sorts of purposes all around the world. Its entirely out of my control what they do with it. So I am looking to make it as obvious as possible that database schema change rollback must be considered when removing a patch. I have done what I can in the tool itself, but I am looking for the end-user to be made aware too as part of running the uninstall. Clearly thats not possible in all circumstances. Phil Wilson-2 wrote > ... and there's something about conflating a system activity (patch > uninstall) with database rollback that would make me nervous. ;) > > However, MSI 4.5 and later does have a patch uninstall custom action, that > might be an option, but my inclination would be to use it to set a flag > somewhere so that the application itself can prompt the user for database > rollback. > > http://msdn.microsoft.com/en-us/library/windows/desktop/aa370739(v=vs.85).as > px > > Phil -- View this message in context: http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Can-Patch-Uninstall-from-Programs-Features-be-given-a-UI-tp7584504p7584522.html Sent from the wix-users mailing list archive at Nabble.com. ------------------------------------------------------------------------------ Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_d2d_mar _______________________________________________ WiX-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/wix-users

