I'm working in Wix v3, and I've got a conditional component that is supposed to
install a certificate when the property CERTIFICATEPATH is set, but I'm running
into problems because InstallCertificates seems to be called regardless of
whether the component with the certificate is installed. InstallCertificates
then fails installing with the invalid data. This seems like a bug that
InstallCertificates is being called even though its component was not supposed
to be installed.
The component definition:
<Component Id="CertificateComponent" Guid="MY-GUID" KeyPath="yes">
<Condition>Installed OR CERTIFICATEPATH</Condition>
<iis:Certificate Id="SSLcertificate" Name="MySSLCertificate"
CertificatePath="[CERTIFICATEPATH]" Request="no"
PFXPassword="[CERTIFICATEPASSWORD]" StoreLocation="localMachine"
StoreName="personal"/>
</Component>
It looks like the installer decided it doesn't need to install the component:
MSI (s) (88:74) [09:19:35:063]: Component: CertificateComponent; Installed:
Absent; Request: Local; Action: Null
But then the InstallCertificates action is still called with the certificate
data from that component (tries to resolve "SSLCertificate") and the
installation fails (see below log).
If I remove the component from the package entirely, everything goes OK.
MSI (s) (88:74) [09:19:35:854]: Doing action: InstallCertificates
Action 9:19:35: InstallCertificates.
Action start 9:19:35: InstallCertificates.
MSI (s) (88:74) [09:19:35:864]: Creating MSIHANDLE (30) of type 790542 for
thread 3188
MSI (s) (88:74) [09:19:35:864]: Invoking remote custom action. DLL:
C:\WINNT\Installer\MSI72.tmp, Entrypoint: InstallCertificates
MSI (s) (88!F4) [09:19:36:085]: Creating MSIHANDLE (31) of type 790541 for
thread 3060
MSI (s) (88!F4) [09:19:36:085]: Creating MSIHANDLE (32) of type 790531 for
thread 3060
MSI (s) (88!F4) [09:19:36:085]: Closing MSIHANDLE (32) of type 790531 for
thread 3060
MSI (s) (88!F4) [09:19:36:085]: Creating MSIHANDLE (33) of type 790540 for
thread 3060
MSI (s) (88!F4) [09:19:36:085]: Creating MSIHANDLE (34) of type 790531 for
thread 3060
MSI (s) (88!F4) [09:19:36:085]: Creating MSIHANDLE (35) of type 790531 for
thread 3060
MSI (s) (88!F4) [09:19:36:085]: Closing MSIHANDLE (35) of type 790531 for
thread 3060
MSI (s) (88!F4) [09:19:36:085]: Creating MSIHANDLE (36) of type 790531 for
thread 3060
MSI (s) (88!F4) [09:19:36:085]: Closing MSIHANDLE (36) of type 790531 for
thread 3060
MSI (s) (88!F4) [09:19:36:085]: Creating MSIHANDLE (37) of type 790531 for
thread 3060
MSI (s) (88!F4) [09:19:36:085]: Closing MSIHANDLE (37) of type 790531 for
thread 3060
MSI (s) (88!F4) [09:19:36:085]: Creating MSIHANDLE (38) of type 790531 for
thread 3060
InstallCertificates: Error 0x80070003: Failed to read PFX file:
MSI (s) (88!F4) [09:19:36:085]: Closing MSIHANDLE (38) of type 790531 for
thread 3060
MSI (s) (88!F4) [09:19:36:085]: Creating MSIHANDLE (39) of type 790531 for
thread 3060
InstallCertificates: Error 0x80070003: Failed to read certificate from file
path.
MSI (s) (88!F4) [09:19:36:085]: Closing MSIHANDLE (39) of type 790531 for
thread 3060
MSI (s) (88!F4) [09:19:36:085]: Creating MSIHANDLE (40) of type 790531 for
thread 3060
InstallCertificates: Error 0x80070003: Failed to resolve certificate:
SSLcertificate
MSI (s) (88!F4) [09:19:36:085]: Closing MSIHANDLE (40) of type 790531 for
thread 3060
MSI (s) (88!F4) [09:19:36:085]: Closing MSIHANDLE (34) of type 790531 for
thread 3060
MSI (s) (88!F4) [09:19:36:085]: Closing MSIHANDLE (33) of type 790540 for
thread 3060
MSI (s) (88!F4) [09:19:36:085]: Closing MSIHANDLE (31) of type 790541 for
thread 3060
MSI (s) (88:74) [09:19:36:085]: Closing MSIHANDLE (30) of type 790542 for
thread 3188
Action ended 9:19:36: InstallCertificates. Return value 3.
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users