Hi all,
I need to install a certificate after the installation of the main
binary. The code snippet below does not work because it cannot find
[INSTALLDIR]MyCert.cer (see bold fragment). However if I change the bold
fragment with a path to the initial location of the certificate file, it
succeeds.
I suspect the reason it fails is that the order in which "MainApp" and
"Cert" steps are executed is not the order in which they are listed in
the 'Feature' element. Can anyone explain this to me? Thanks in advance.
<Directory Id='TARGETDIR' Name='SourceDir'>
<Directory Id='ProgramFilesFolder' Name='PFiles'>
<Directory Id='INSTALLDIR' Name='MyProduct'>
<Component Id='MainApp' Guid='... '>
<File Id='MyProductEXE' Name='MyProductEx'
LongName='MyProduct.exe' Source='..\bin\MyProduct.exe' Vital='yes'/>
<File Id='CERTFILE' Name='MyCert.cer' Source='..\bin\MyCert.cer'
Vital='yes'/>
</Component>
<Component Id="Cert" Guid='...'>
<Certificate Id="MyCert" Name="MyCert.cer"
StoreLocation="localMachine" Request="no"
CertificatePath="*[INSTALLDIR]MyCert.cer*" StoreName="ca"/>
</Component>
</Directory>
</Directory>
</Directory>
<Feature Id='Complete' Title='MyProduct' Description='The complete
package.' Level='1' ConfigurableDirectory='INSTALLDIR'>
<ComponentRef Id='MainApp' />
<ComponentRef Id='Cert' />
</Feature>
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
WiX-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wix-users