So I at least partially solved my own problem.  It turns out that if I
change the StoreName to 'root' the action will work, and the cert is
installer, but now I'm running into a new problem.  I hadn't realized
that the certificate was linked externally at first, but now that I
realize that, my problem is that I want to be able to specify a relative
path to the .cer file.  If I give it an absolute (say
c:\temp\chrisCA.cer) the installer finds it, but if I just put it in the
same directory as the MSI and put the path in as 'chrisCA.cer' or
'.\chrisCA.cer', the installer fails to find it.  I even tried using a
custom action to tack on the current working directory of the CA DLL,
but _getcwd() returns c:\windows\system32, which also does me no good.
My intent is to distribute the .cer file in a self-extracting zip that
extracts to the temp directory, runs setup.exe, and then cleans up.  I'd
need to pass the path to the .cer file in the temp directory to my
installer.  Is there any reason that I can't just give it the name, and
have the installer assume that the file is in the same directory as
itself?  

 

 

 

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Chris
Bardon
Sent: Thursday, February 14, 2008 2:11 PM
To: WiX Users
Subject: [WiX-users] Installing a root CA in Wix v3

 

I'm trying to push out a root CA cert in Wix v3 for an app that needs to
form TLS connections.  I found the iis:certificate element, so I'm
trying to define a feature that looks like this:

 

          <Component Id="RootCA"
Guid="EFA9E69C-32E5-4e54-AF4E-9166902E1F9B" Permanent="yes">

            <CreateFolder/>

            <iis:Certificate Name="ChrisCA" Id='ChrisCA' Request='no'
CertificatePath='D:\TestCode\CertInstallTest\chrisCA.cer'
StoreLocation='currentUser' StoreName='ca'/>

          </Component>

 

The thing is, I don't have any other IIS commands in the install, and
from what I've gathered from the archives, this means that the action
won't actually be executed.  If I want to install something in a user's
trusted CA store, is there a way to do it without writing a custom
action?  Even if I have to put some "do nothing" code in from the IIS
extension, that's fine as long as the end result is that the target
machine can accept certificates signed by my CA.  

 

Thanks!

 

Chris

 

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to