I would not start to address this by mangling your KeyPaths! One file per 
component with that file as the key is a good practice. 

In case it's not obvious, your issue is running some managed code during 
uninstall that's missing a dependency. If there's a way to omit this code or 
replace it with something less fragile that would do it. 

A detour to your service repair issue may be to set the flag true for Delete at 
Install. The repair will delete the service during the repair and then 
reinstall it. The service will then have the default credentials and will need 
to be reconfigured with the account, but you will at least get a successful 
repair. That's assuming you changed the service logon credentials after 
install. 

Phil Wilson 


-----Original Message-----
From: Sameer Arora [mailto:arora...@gmail.com] 
Sent: Monday, August 08, 2011 2:59 PM
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] Best effort uninstallation ?

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 <pshirtcli...@sdl.com>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:arora...@gmail.com]
> 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
> WiX-users@lists.sourceforge.net
> 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
> WiX-users@lists.sourceforge.net
> 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
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


*** Confidentiality Notice: This e-mail, including any associated or attached 
files, is intended solely for the individual or entity to which it is 
addressed. This e-mail is confidential and may well also be legally privileged. 
If you have received it in error, you are on notice of its status. Please 
notify the sender immediately by reply e-mail and then delete this message from 
your system. Please do not copy it or use it for any purposes, or disclose its 
contents to any other person. This email comes from a division of the Invensys 
Group, owned by Invensys plc, which is a company registered in England and 
Wales with its registered office at 3rd Floor, 40 Grosvenor Place, London, SW1X 
7AW (Registered number 166023). For a list of European legal entities within 
the Invensys Group, please go to 
http://www.invensys.com/legal/default.asp?top_nav_id=77&nav_id=80&prev_id=77.

You may contact Invensys plc on +44 (0)20 3155 1200 or e-mail 
recept...@invensys.com. This e-mail and any attachments thereto may be subject 
to the terms of any agreements between Invensys (and/or its subsidiaries and 
affiliates) and the recipient (and/or its subsidiaries and affiliates).



------------------------------------------------------------------------------
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
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to