change to Create Installer File task

This commit is contained in:
Brett Hewitson 2022-12-22 22:35:34 +10:00
parent 88c1ecc854
commit bf056fc7fd

View file

@ -174,6 +174,13 @@ stages:
$installTextFileContent | Set-Content "$installTextFile" -Encoding Ascii -Force
& "$env:AGENTCAPABILITIES_USER_INNOSETUP" "$installScriptFile"
$sourceFile = "$env:BUILD_BINARIESDIRECTORY/${{parameters.ApplicationName}}_$appVersionShort.exe"
$destFile = "$env:BUILD_ARTIFACTSTAGINGDIRECTORY/${{parameters.ApplicationName}}_$appVersionShort.exe"
Copy-Item -Path $sourceFile -Destination $destFile -Force
$destFile = "$env:BUILD_ARTIFACTSTAGINGDIRECTORY/latest.exe"
Copy-Item -Path $sourceFile -Destination $destFile -Force
pwsh: true
- task: PowerShell@2