Menu

#1422 Certificate uninstall fails when cert is missing

v3.0
closed
2012-09-15
2008-11-25
No

Certificate uninstallation is failing if the certificate being uninstalled doesn't exist in the Windows Certificate Store. IMO, the CA should still allow the MSI to uninstall in this scenario.

This error can be replicated by:

  • Installing a WiX MSI that uses the Certificate CA.
  • Manually deleting the certificate from the cert store.
  • Uninstalling the MSI.

The uninstallation of the MSI fails with the following error:
MSI (s) (74:60) [11:06:21:090]: Invoking remote custom action. DLL: C:\WINDOWS\Installer\MSI67.tmp, Entrypoint: UninstallCertificates
MSI (s) (74:64) [11:06:21:090]: Generating random cookie.
MSI (s) (74:64) [11:06:21:190]: Created Custom Action Server with PID 3724 (0xE8C).
MSI (s) (74:B4) [11:06:21:260]: Running as a service.
MSI (s) (74:30) [11:06:21:260]: Hello, I'm your 32bit Impersonated custom action server.
MSI (s) (74:60) [11:06:21:450]: Leaked MSIHANDLE (39) of type 790531 for thread 3352
MSI (s) (74:60) [11:06:21:450]: Leaked MSIHANDLE (38) of type 790540 for thread 3352
MSI (s) (74:60) [11:06:21:450]: Leaked MSIHANDLE (36) of type 790541 for thread 3352
MSI (s) (74:60) [11:06:21:450]: Note: 1: 2769 2: UninstallCertificates 3: 3
MSI (s) (74:60) [11:06:21:450]: Note: 1: 2205 2: 3: Error
MSI (s) (74:60) [11:06:21:450]: Note: 1: 2228 2: 3: Error 4: SELECT Message FROM Error WHERE Error = 2769
Action start 11:06:21: UninstallCertificates.
DEBUG: Error 2769: Custom Action UninstallCertificates did not close 3 MSIHANDLEs.
The installer has encountered an unexpected error installing this package. This may indicate a problem with this package. The error code is 2769. The arguments are: UninstallCertificates, 3,

Discussion

  • Andrew Sampson

    Andrew Sampson - 2008-11-25

    This is possibly related to bug 2155318. In that bug, the first issue described claims that DeleteMachineCertificate always fails.

    The problem reported above is occurring on non-Vista platforms, however.

     
  • Rob Mensching

    Rob Mensching - 2008-11-26

    This works for me with the latest WiX toolset v3.0.4721.0. If you can still reproduce the issue with the latest build please provide as much information about what platform you are using and authoring as well.

     
  • SourceForge Robot

    This Tracker item was closed automatically by the system. It was
    previously set to a Pending status, and the original submitter
    did not respond within 21 days (the time period specified by
    the administrator of this Tracker).

     
MongoDB Logo MongoDB