CreateItem in MSBuild

<!-- Signing step -->
<Target Name="MSISigningStep">

<!-- Select all MSI in the $(OutDir) for signing -->
<CreateItem Include="$(OutDir)***.msi">
<Output ItemName="MSIFilesToSign" TaskParameter="Include" />
</CreateItem>

<Message Text="No MSI files found for signing."
Condition="'@(MSIFilesToSing)' == '' "/>

<!-- Execute the sign command if any files found -->
<Exec
Command=""C:Program FilesMicrosoft SDKsWindowsv6.0Abinsigntool.exe"" +
"sign "%(MSIFilesToSign.Fullpath)""
Condition="'@(MSIFilesToSing)' != '' "/>

</Target>
Share

Leave a Reply

Your email address will not be published. Required fields are marked *