I have my installer project in its own repo as I will be bringing in the artifacts/assemblies from multiple other pipelines. The pipeline will handle building the file/folder structure that I want the installer to install.
When I'm working on the installer project locally, I have an example folder of these assemblies in C:\InstalleFiles\ProjectName.
When I build it in the pipeline that folder isn't going to exist and I want it to be based on the System.ArtifactsDirectory that AzureDO downloads the pipeline artifacts into by default.
One of the files, the main EXE, needs to be used to set the version as well as used as the assembly for a Windows Service.
There's a few different threads on this in the forum but most of them are over a decade old and reference using cmdline parameters instead of the Powershell automation shown in the AzureDO tutorials.
I tried using a PowerShell script to modify the AIP file to update the caphyon.advinst.msicomp.SynchronizedFolderComponent component's SourcePath. That broke the versioning:
"The source file "D:\InstallerFiles\ProjectName\ProjectName.exe" used for value of property "ProductVersion" is missing
from disk. Create it on disk or change the property's options."
Maybe I just need to keep hacking away at the AIP file but thought I'd ask here if there was a 'better' way to do this?