Hello,

I am having some trouble uninstalling certificates using IIsExtension.
On one machine the certificates seem to install and uninstall fine, but
on another Windows XP machine UninstallCertificates action fails. I
guess it might be related to the fact that on the machine where
uninstall fails, I already had those certificates in certificate store
before installing this MSI.

Am I doing something wrong here that makes uninstall sometimes fail or
is it a wix bug?


The wxs file looks like this:
            <Component Id="ESTEID_SK"
Guid="E5F232A1-A6CD-449B-B3BD-3DA7111DAC65" KeyPath="yes">
                <iis:Certificate Id="ESTEID_SK"
                                 Name="ESTEID_SK"
                                 Request="no"
                                 StoreLocation="localMachine"
                                 StoreName="ca"
                                 Overwrite="yes"
                                 BinaryKey="ESTEID_SK"
                                 />
            </Component>

... and more similar component tags

        </DirectoryRef>
...
        <Binary Id="ESTEID_SK_2007"
SourceFile="$(var.CertSourceDir)\ESTEID-SK 2007.PEM.cer" />
... more binary tags
    </Fragment>


And here's a snippet from uninstall log captured using msiexec /x /l*vx:

=== Verbose logging started: 28.04.2009  12:42:23  Build type: SHIP
UNICODE 3.01.4001.5512 
<snip>

Some of the certificates seem to uninstall fine:

Action start 12:42:50: DeleteMachineCertificate.
MSI (s) (FC!E4) [12:42:50:916]: Closing MSIHANDLE (13) of type 790531
for thread 3300
MSI (s) (FC!E4) [12:42:50:916]: Creating MSIHANDLE (17) of type 790531
for thread 3300
MSI (s) (FC!E4) [12:42:50:932]: Creating MSIHANDLE (18) of type 790531
for thread 3300
MSI (s) (FC!E4) [12:42:50:932]: Closing MSIHANDLE (18) of type 790531
for thread 3300
MSI (s) (FC!E4) [12:42:50:932]: PROPERTY CHANGE: Modifying
RollbackDeleteMachineCertificate property. Its current value is
'ESTEID_SK_2007€CA€2€]5bomCYv-f{GUC!wbL4;LejM4pAFS2w8-Wy9_e[%g:lzEdY10,:R7/SQ[WQ)Ig/+,xbztIwT0x3,8lZ(l*[|!EZe.+8T%q4K[E|%6Fa7(;@KjBu33kL(,KtI-z'ZH-Y2uI21R,MXQzu4~CLz%/]K|!Wu6eM8(ChB+?WL,yc5R4CS,o4Gg]N506_6)M:!*7Kvpk5DJkn4?EFs4t|uy%2yGy%t;G;;x~DE/2VEI%JDJx9Tg+XH1GlwH1|T[H)(%3K(GcZHE?6.MPB?9)2VEI%9Ka4;_[cV?7OlN4FMLCCPyQT)Z6!@;3JAhBKkaQ4B0[qQ0}?9):R7/SQ[WQ)-_e[%YJ5Q!?4YqQd?clQo2Y3vEkQE3E:~Ubx{9qhcdj[NP|NT.iAgXWUC6~Gq5ghiW2;!j...@uu~'q0k(tg7HK57Uu:sf2']-n3cn.7f...@re{c*.}h}i!sgwo.9sn[ji^wfey)g}4!2/ij...@wwu;c...@]:x...@]d{vg'+Vva7l%[,)CkU71|U1td1^)gCCWnkO'^-nGZ8,xOMHSA,m(SrK6+5Rp5^peB'6(B;0.4ew:UX;y/2/O?vK*!Z~M[4xnGfVfU.J1||;+W_kooonFJO?iq*!U9/-H-;gmYvSx'4vmJhB~D,nvBAYg;ihqm%Eq0VS40oEjOP~%io7k?:D4c!*1CC!qf!^4-ixq*N5CL.:1L{{lB(~%)@r{!itYW)N5CL.61L{{2X{_!3nQN5N5CL.RE!Q4KRBP[DL_.SF5KLM.H'34iTKy3Ek2TH:kyjLLas/Ja66:4CX9x3EltW4PMLCC,+-g,X{(Z+C4h|;?ETKb]pWY9A-0jK;?'8g%l[|!WNlA%I5-3?X1%9Ut6jCQFiONZBU^P[w7nX4pAFS2w8-Wy9_e[%^~klQMi2:0TUr1sIpe|e'(T34qj%,|jUD.{_ZiR/rF|MDVRu?7s/O:e
MSI (s) (FC!E4) [12:42:50:932]: Creating MSIHANDLE (19) of type 790531
for thread 3300
Action ended 12:42:50: DeleteMachineCertificate. Return value 1.
MSI (s) (FC!E4) [12:42:50:947]: Closing MSIHANDLE (19) of type 790531
for thread 3300
MSI (s) (FC!E4) [12:42:50:947]: Doing action:
RollbackDeleteMachineCertificate
MSI (s) (FC!E4) [12:42:50:947]: Note: 1: 2205 2:  3: ActionText
Action start 12:42:50: RollbackDeleteMachineCertificate.
MSI (s) (FC!E4) [12:42:50:994]: PROPERTY CHANGE: Modifying
DeleteMachineCertificate property. Its current value is
'ESTEID_SK_2007€CA€2'. Its new value: 'ESTEID_SK€CA€2'.
MSI (s) (FC!E4) [12:42:50:994]: Creating MSIHANDLE (20) of type 790531
for thread 3300
Action ended 12:42:50: RollbackDeleteMachineCertificate. Return value 1.
MSI (s) (FC!E4) [12:42:51:010]: Closing MSIHANDLE (20) of type 790531
for thread 3300
MSI (s) (FC!E4) [12:42:51:010]: Doing action: DeleteMachineCertificate
MSI (s) (FC!E4) [12:42:51:010]: Note: 1: 2205 2:  3: ActionText


But this one fails:

Action start 12:42:51: DeleteMachineCertificate.
MSI (s) (FC!E4) [12:42:51:057]: Closing MSIHANDLE (17) of type 790531
for thread 3300
MSI (s) (FC!E4) [12:42:51:057]: Creating MSIHANDLE (21) of type 790531
for thread 3300
MSI (s) (FC!E4) [12:42:51:057]: Creating MSIHANDLE (22) of type 790531
for thread 3300
MSI (s) (FC!E4) [12:42:51:057]: Closing MSIHANDLE (22) of type 790531
for thread 3300
MSI (s) (FC:50) [12:42:51:135]: Leaked MSIHANDLE (21) of type 790531 for
thread 3300
MSI (s) (FC:50) [12:42:51:135]: Closing MSIHANDLE (21) of type 790531
for thread 3300
MSI (s) (FC:50) [12:42:51:135]: Leaked MSIHANDLE (4) of type 790540 for
thread 3300
MSI (s) (FC:50) [12:42:51:135]: Closing MSIHANDLE (4) of type 790540 for
thread 3300
MSI (s) (FC:50) [12:42:51:135]: Leaked MSIHANDLE (2) of type 790541 for
thread 3300
MSI (s) (FC:50) [12:42:51:135]: Closing MSIHANDLE (2) of type 790541 for
thread 3300
MSI (s) (FC:50) [12:42:51:135]: Note: 1: 2769 2: UninstallCertificates 3: 3
MSI (s) (FC:50) [12:42:51:135]: Note: 1: 2205 2:  3: Error
MSI (s) (FC:50) [12:42:51:135]: Note: 1: 2228 2:  3: Error 4: SELECT
`Message` FROM `Error` WHERE `Error` = 2769
Action ended 12:42:51: DeleteMachineCertificate. Return value 1.
DEBUG: Error 2769:  Custom Action UninstallCertificates did not close 3
MSIHANDLEs.
MSI (s) (FC:50) [12:42:51:166]: Closing MSIHANDLE (1) of type 790542 for
thread 3460
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,
MSI (s) (FC:84) [12:42:51:197]: Machine policy value 'DisableRollback' is 0
MSI (s) (FC:84) [12:42:51:197]: Note: 1: 1402 2:
HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Installer\Rollback\Scripts
3: 2
Action ended 12:42:51: UninstallCertificates. Return value 3.
MSI (s) (FC:84) [12:42:51:197]: Note: 1: 1402 2:
HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Installer\Rollback\Scripts
3: 2
MSI (s) (FC:84) [12:42:51:213]: Calling SRSetRestorePoint API.
dwRestorePtType: 13, dwEventType: 103, llSequenceNumber: 156,
szDescription: "".
MSI (s) (FC:84) [12:42:52:010]: The call to SRSetRestorePoint API
succeeded. Returned status: 0.
MSI (s) (FC:84) [12:42:52:010]: Unlocking Server
Action ended 12:42:52: INSTALL. Return value 3.


-- 
Best regards,
Kalev Lember


------------------------------------------------------------------------------
Register Now & Save for Velocity, the Web Performance & Operations 
Conference from O'Reilly Media. Velocity features a full day of 
expert-led, hands-on workshops and two days of sessions from industry 
leaders in dedicated Performance & Operations tracks. Use code vel09scf 
and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to