I get the following error on uninstallation with one or more files missing from the installation directory.
"Error 1001 Exception occured while initializing the installation: System.IO.FileNotFoundException: Could not load file or assembly 'file:///....' or one of its dependencies. The system cannot find the file specified" I also tried a crude workaround by removing "KeyPath" requirements from most of the files and collecting them all under one component. I am hoping that by doing so, if a file within a component is missing, uninstall could still succeed even if repair would miss re-installing the file since the missing file has no keypath. Do you think this will work without having to first repair? (my repair is broken as well, but that's over missing logon credentials for a windows service that gets installed initially. Figuring out how to address that as well, but that's a different issue). So is there no solution without first repairing? Thanks, Sameer On Fri, Jul 22, 2011 at 1:41 AM, Peter Shirtcliffe <[email protected]>wrote: > What error do you get when Windows fails to uninstall when a file is > missing > ? I thought that would work. > Repairing the MSI before trying to uninstall would restore the missing > files, > if you have access to the original MSI. > > If you have customers that are deleting files in the Windows directory, it > would be best to discourage them :) > > -----Original Message----- > From: Sameer Arora [mailto:[email protected]] > Sent: 22 July 2011 00:11 > To: General discussion for Windows Installer XML toolset. > Subject: [WiX-users] Best effort uninstallation ? > > If one loses one or more installed files post a successful installation, > the > uninstallation fails citing missing the missing file. > Also, if the original MSI that gets cached under > %SystemDrive%\Windows\System32 is lost, the uninstallation still fails > citing missing MSI. > > Is there any way to uninstall on a "best effort basis"? > > I tried marking my components "non-primary" under features and files as > "non-vital" but that didn't help. > > Thanks, > Sameer > > ----------------------------------------------------------------------------- > - > 5 Ways to Improve & Secure Unified Communications > Unified Communications promises greater efficiencies for business. UC can > improve internal communications as well as offer faster, more efficient > ways > to interact with customers and streamline customer service. Learn more! > http://www.accelacomm.com/jaw/sfnl/114/51426253/ > _______________________________________________ > WiX-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/wix-users > SDL PLC confidential, all rights reserved. > If you are not the intended recipient of this mail SDL requests and > requires that you delete it without acting upon or copying any of its > contents, and we further request that you advise us. > SDL PLC is a public limited company registered in England and Wales. > Registered number: 02675207. > Registered address: Globe House, Clivemont Road, Maidenhead, Berkshire SL6 > 7DY, UK. > > > > ------------------------------------------------------------------------------ > 10 Tips for Better Web Security > Learn 10 ways to better secure your business today. Topics covered include: > Web security, SSL, hacker attacks & Denial of Service (DoS), private keys, > security Microsoft Exchange, secure Instant Messaging, and much more. > http://www.accelacomm.com/jaw/sfnl/114/51426210/ > _______________________________________________ > WiX-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/wix-users > ------------------------------------------------------------------------------ uberSVN's rich system and user administration capabilities and model configuration take the hassle out of deploying and managing Subversion and the tools developers use with it. Learn more about uberSVN and get a free download at: http://p.sf.net/sfu/wandisco-dev2dev _______________________________________________ WiX-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/wix-users

