Resending...
Is there any replacement for this element or alternative to achieve the same 
result as I used to do prior to WIX 3.0

Thanks,
Sandip

-----Original Message-----
From: Sandip Shahane [mailto:sandi...@microsoft.com] 
Sent: Thursday, September 17, 2009 12:16 PM
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] DigitalCertificateRef element deprecated in WIX 3.0?

Seems like DigitalCertificateRef element is deprecated in WIX 3.0. My question 
is there any replacement for this element?

We are getting bunch of errors like for the code snippet shown below with WIX 
3.0 toolset which used to build fine with WIX 2.0:
error CNDL0005 : The Media element contains an unexpected child element 
'DigitalCertificate'. (Fixed this error by making this element child of 
DigitalSignature)
error CNDL0005 : The Media element contains an unexpected child element 
'DigitalCertificateRef'. (Not sure how to fix this one...)

We have entries added to MSIDigitalCertificate Table by WIX code as below and 
in order to avoid duplicate entries in this table for each Media entry I am 
using DigigitalCertificateRef. This way each signature references the same 
certificate row rather than creating a new one.

  <Media Id="1" DiskPrompt="1" EmbedCab="no" 
CompressionLevel="$(var.CabCompressionLevel)" Cabinet="Cab1.Cab" 
VolumeLabel="DISK1">
            <?if $(env.WIX_IS_SIGNED_BUILD) != 0 ?>
            <DigitalCertificate Id="MyCodeSigningId" 
SourceFile="mscodesign.cer" />
            <?endif ?>
        </Media>
        <Media Id="2" DiskPrompt="2" EmbedCab="no" 
CompressionLevel="$(var.CabCompressionLevel)" Cabinet="Cab2.Cab" 
VolumeLabel="DISK1">
            <?if $(env.WIX_IS_SIGNED_BUILD) != 0 ?>
            <DigitalCertificateRef Id=" MyCodeSigningId" />
            <?endif ?>
        </Media>
        <Media Id="3" DiskPrompt="3" EmbedCab="no" 
CompressionLevel="$(var.CabCompressionLevel)" Cabinet="Cab3.Cab" 
VolumeLabel="DISK1">
            <?if $(env.WIX_IS_SIGNED_BUILD) != 0 ?>
            <DigitalCertificateRef Id=" MyCodeSigningId" />
            <?endif ?>
        </Media>
------------------------------------------------------------------------------
Come build with us! The BlackBerry&reg; Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9&#45;12, 2009. Register now&#33;
http://p.sf.net/sfu/devconf
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


------------------------------------------------------------------------------
Come build with us! The BlackBerry&reg; Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9&#45;12, 2009. Register now&#33;
http://p.sf.net/sfu/devconf
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to