@@ -132,6 +132,39 @@ steps:
132132 ciPolicyFile : ' $(build.sourcesdirectory)\.pipelines\CIPolicy.xml'
133133
134134 # ### END MSI
135+
136+ # ### BUILDING AND SIGNING SilentFilesInUseBAFunction DLL
137+ - task : VSBuild@1
138+ displayName : ${{replace(replace(parameters.buildUserInstaller,'True','👤'),'False','💻')}} Build SilentFilesInUseBAFunction
139+ inputs :
140+ solution : " **/installer/PowerToysSetup.sln"
141+ vsVersion : 17.0
142+ msbuildArgs : >-
143+ /t:SilentFilesInUseBAFunction
144+ /p:RunBuildEvents=true;PerUser=${{parameters.buildUserInstaller}};RestorePackagesConfig=true;CIBuild=true
145+ /p:InstallerSuffix=${{ parameters.installerSuffix }}
146+ -restore -graph
147+ /bl:$(LogOutputDirectory)\installer-$(InstallerBuildSlug)-SilentFilesInUseBAFunction.binlog
148+ ${{ parameters.additionalBuildOptions }}
149+ platform : $(BuildPlatform)
150+ configuration : $(BuildConfiguration)
151+ clean : false # don't undo our hard work above by deleting the msi
152+ msbuildArchitecture : x64
153+ maximumCpuCount : true
154+
155+ - ${{ if eq(parameters.codeSign, true) }} :
156+ - template : steps-esrp-signing.yml
157+ parameters :
158+ displayName : ${{replace(replace(parameters.buildUserInstaller,'True','👤'),'False','💻')}} Sign SilentFilesInUseBAFunction
159+ signingIdentity : ${{ parameters.signingIdentity }}
160+ inputs :
161+ FolderPath : ' installer/$(BuildPlatform)/$(BuildConfiguration)'
162+ signType : batchSigning
163+ batchSignPolicyFile : ' $(build.sourcesdirectory)\.pipelines\ESRPSigning_installer.json'
164+ ciPolicyFile : ' $(build.sourcesdirectory)\.pipelines\CIPolicy.xml'
165+
166+ # ### END BUILDING AND SIGNING SilentFilesInUseBAFunction DLL
167+
135168 # ### BOOTSTRAP BUILDING AND SIGNING
136169 - task : VSBuild@1
137170 displayName : ${{replace(replace(parameters.buildUserInstaller,'True','👤'),'False','💻')}} Build VNext Bootstrapper
@@ -148,7 +181,7 @@ steps:
148181 ${{ parameters.additionalBuildOptions }}
149182 platform : $(BuildPlatform)
150183 configuration : $(BuildConfiguration)
151- clean : false # don't undo our hard work above by deleting the MSI
184+ clean : false # don't undo our hard work above by deleting the MSI nor SilentFilesInUseBAFunction
152185 msbuildArchitecture : x64
153186 maximumCpuCount : true
154187
0 commit comments