Did you author the property? If you look at the Property element you can
specify Secure="yes" on it.
You really shouldn't be taking insecure data like this to be installed in an
elevated process, though. This is very dangerous.
Heath Stewart
Technical Lead
Deployment Technologies Group, Microsoft
http://blogs.msdn.com/heaths
From: Gabriel Ghizila
Sent: Tuesday, August 14, 2007 6:53 PM
To: Heath Stewart
Subject: RE: certificates and wix
On wix-users I do not get answers too easy (some times I never get answers) and
I hoped I can get a fix for today.
I am specifying below the value I give to ROOTCERTNAME.
I do not see any reference to SecureCustomProperties in the verbose log (I
guess you refer to /lv parameter to msiexec) so I assume it does not get there.
Thanks for help
;-G
From: Heath Stewart
Sent: Tuesday, August 14, 2007 6:41 PM
To: Gabriel Ghizila
Subject: RE: certificates and wix
BCC'ing SetupSup.
Questions about WiX should be directed to wix-users. More information can be
found on http://wix. And not just because this is a WiX authoring question but
also because the way certificates are installed uses a custom action written
by/for WiX.
Are you defining ROOTCERTNAME? Have you checked in a verbose log to make sure
it is passed to the server. This property would have to be in the
SecureCustomProperties property to be passed from the client (msiexec.exe on
the command line, for example) to the server (the Windows Installer service
that does the install work).
Heath Stewart
Technical Lead
Deployment Technologies Group, Microsoft
http://blogs.msdn.com/heaths
From: Gabriel Ghizila
Sent: Tuesday, August 14, 2007 6:31 PM
To: Windows Installer Support (MS Internal)
Subject: certificates and wix
I am trying to use wix 2.0 to install a certificate using wix file. The code I
have is not installing the external cer file whatever I do. Here is how my
component looks like:
<Directory Id="TARGETDIR" Name="SourceDir">
...
<Component Id="RootCertificateComponent"
Guid="6ACC325C-7998-4890-99C2-14D9F03EE6C5">
<Condition> ROOTCERTNAME </Condition>
<Certificate Id="RootCertificate"
Name="[ROOTCERTNAME]"
Request="no"
Overwrite="yes"
CertificatePath="[ROOTCERTPATH]"
StoreLocation="localMachine"
StoreName="root"
/>
</Component>
...
</Directory>
<Feature ... >
...
<ComponentRef Id="RootCertificateComponent" />
... Other componenets that get installed
</Feature>
ROOTCERTPATH="c:\PATH\file.cer"
and
ROOTCERTNAME="SomeName"
The certificate does not get installed in
Certificates (Local Computer) -> Trusted Root Certificate Authorities ->
Certificates or anywhere else but no error seems to be generated either.
I guess I have trouble understanding what are the Name and CertificatePath
supposed to do.
The CertificatePath seems to be the file name with full path of the certificate
file.
The Name seems to be rather arbitrary.
I have tried also with the Name as file name (file.cer) and CertificatePath as
strictly the path (c:\PATH\).
I use v2.0.5508.0 of wix and I am trying to install on Win2k3 server.
Upgrading to 2.0.5606 I always get invalid parameter
InstallCertificates: Error 0x80070057: Invalid Certificate.Attributes.
InstallCertificates: Error 0x80070057: Failed to resolve certificate:
RootCertificate
which is a big step forward but I still can't figure out what is expected for
the two.
Thanks
;-G
-------------------------------------------------------------------------
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