Thanks a lot, Bob.

I tried PFX. It seems working.

Here is my code:
            <Component Id="Component_CACERT" Guid="...">
                <iis:Certificate Id="CACert"
                                 Name="cacert.pfx"
                                 Request="no"
                                 BinaryKey="CACert_pfx"
                                 PFXPassword="..."
                                 StoreName="root"
                                 StoreLocation="localMachine"
                 />
            </Component>

One more question: is it possible for WiX to install just the public key 
certificate(for example, .cer file or .p7c file)? The reason for that is, for 
PFX file, we have to include our private key which we really don't want to do.

Just like what our Chief Architect asked me, "is there a way for WiX to support 
just installing .cer file but not using PFX file?". Or: what's the reason that 
WiX only supports PFX file? I'd ask the same question. If WiX doesn't support 
it right now, is there a plan that WiX will support installing .cer or .p7c 
file in future release?

Any answers are appreciated. Thanks.

/Brian




________________________________
From: Bob Arnson <b...@joyofsetup.com>
To: General discussion for Windows Installer XML toolset. 
<wix-users@lists.sourceforge.net>
Sent: Monday, March 2, 2009 5:51:12 PM
Subject: Re: [WiX-users] WiX 3.0: How to install a Root Certificate

Brian Young wrote:
> InstallCertificates:  Error 0x8000ffff: Unexpected certificate type read from 
> disk.
> InstallCertificates:  Error 0x8000ffff: Failed to read certificate from file 
> path.
> InstallCertificates:  Error 0x8000ffff: Failed to resolve certificate: MyCert
>  

I'm not an expert in the cert code but it looks like only PFX is supported.

-- 
sig://boB
http://joyofsetup.com/



------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users



      __________________________________________________________________
Yahoo! Canada Toolbar: Search from anywhere on the web, and bookmark your 
favourite sites. Download it now at
http://ca.toolbar.yahoo.com.
------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to