We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

EugeneK
Posts: 3
Joined: Thu Mar 05, 2020 9:53 am

DevOps and Synced folders

Hello,
We have problems with making "Advanced Installer Build" step working correctly in DevOps pipeline. Version is latest - 16.8.

In the AI project, we have the following structure:
Image 5.png
Image 5.png (136.67 KiB) Viewed 5583 times
So, in the APPDIR, there are two synced folders: Configurator and Publish.

In the DevOps step we have this configuration:
Image 6.png
Image 6.png (105.89 KiB) Viewed 5583 times
Additionally, before this step, we update APPDIR folder location in the project file using Update XML file attribute step:
Image 7.png
Image 7.png (94.14 KiB) Viewed 5583 times
Where Value is actual path to a folder where source files for Configurator are stored.

However, when building an installer it looks like folder sync doesn't happen and AI says that files can't be found:
Resources referred by the project are missing:
Listing all files from Configurator folder


Do you notice what we're doing wrong?
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: DevOps and Synced folders

Hi and welcome to our forums.
Resources referred by the project are missing:
This error appear when files contained by the project (that were added manually, not through the synchronize option) are not present on the machine at the path stored in the project.

Are you sure that the listed files are present on the machine at the paths specified in the error log?

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
EugeneK
Posts: 3
Joined: Thu Mar 05, 2020 9:53 am

Re: DevOps and Synced folders

Eusebiu wrote: ↑Thu Mar 05, 2020 4:08 pm Are you sure that the listed files are present on the machine at the paths specified in the error log?
That's the problem. Actually, no! On the machine where I create installer, relative paths to the installer project file are different. And for some reason folder sync doesn't work and AI continues to look for files in a relative folder.

I'll try to clarify.

Project file has this synced folder entry:

Code: Select all

  <COMPONENT cid="caphyon.advinst.msicomp.SynchronizedFolderComponent">
    <ROW Directory_="Publish_Dir" SourcePath="..\BaccS_XAF.Web\bin\Release\Publish" Feature="MainFeature" ExcludePattern="*~|#*#|%*%|._|CVS|.cvsignore|SCCS|vssver.scc|mssccprj.scc|vssver2.scc|.svn|.DS_Store" ExcludeFlags="6"/>
    <ROW Directory_="Release_Dir" SourcePath="..\..\BaccS_Team_Licensor\BaccS_Team_Licensor\bin\Release" Feature="MainFeature" ExcludePattern="*~|#*#|%*%|._|CVS|.cvsignore|SCCS|vssver.scc|mssccprj.scc|vssver2.scc|.svn|.DS_Store" ExcludeFlags="6"/>
  </COMPONENT>
Publish_Dir is one folder higher than project file. Release_Dir is two folders higher.

In the pipeline, I change source path of Release_Dir to concrete folder, in my case it is:

Code: Select all

C:\builds\219\s\BaccS_Team_Licensor\BaccS_Team_Licensor\bin\Release\
However, when AI gives an error, it says this:

Code: Select all

Registering Advanced Installer.
C:\builds\_tool\advinst\16.8.0\x86\bin\x86\AdvancedInstaller.com /RegisterCI ***
Prepending PATH environment variable with directory: C:\builds\_tool\advinst\16.8.0\x86\bin\x86
C:\builds\_tool\advinst\16.8.0\x86\bin\x86\AdvancedInstaller.com /execute "C:\builds\219\s\Advanced Installer\TBM Online.aip" C:\builds\_temp\84311.aic
SetPackageName "sdl_business_manager_online_5.2.5.0.exe" -buildname ""
SetOutputLocation -path "C:\builds\219\s\Advanced Installer\Setup Files\TBM Online 5.2.5.0\" -buildname ""
Build
 
Checking builds status 
Resources referred by the project are missing: 
C:\builds\219\BaccS_Team_Licensor\BaccS_Team_Licensor\bin\Release\EMSWrapper.dll
C:\builds\219\BaccS_Team_Licensor\BaccS_Team_Licensor\bin\Release\Sdl.Common.Licensing.Manager.dll
C:\builds\219\BaccS_Team_Licensor\BaccS_Team_Licensor\bin\Release\Sdl.Common.Licensing.Provider.Core.dll
C:\builds\219\BaccS_Team_Licensor\BaccS_Team_Licensor\bin\Release\Sdl.Common.Licensing.Provider.SafeNetRMS.dll
C:\builds\219\BaccS_Team_Licensor\BaccS_Team_Licensor\bin\Release\Sdl.Core.PluginFramework.PackageSupport.dll
C:\builds\219\BaccS_Team_Licensor\BaccS_Team_Licensor\bin\Release\Sdl.Core.PluginFramework.dll
C:\builds\219\BaccS_Team_Licensor\BaccS_Team_Licensor\bin\Release\SentinelLicensing.dll
etc...
So, instead of searching in provided folder, AI continues to search files in a relative folder initially specified in the project file. I made a conclusion that sync doesn't happen at all and AI continues to rely in files already listed (synced) in a project.

Does it make any sense?
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: DevOps and Synced folders

Hi,

This may happen if the old files remain in the "Release_Dir" folder even if it was synchronized to the new path. To avoid this, you can reset the synchronization of that folder, then synchronize it again, but choose to delete the existing files (-existingfiles delete).

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
EugeneK
Posts: 3
Joined: Thu Mar 05, 2020 9:53 am

Re: DevOps and Synced folders

Thank you, Eusebiu!

However, I have a new question then.. If to follow this, will this option be preserved?
Image 2.png
Image 2.png (55.01 KiB) Viewed 5537 times
As well as will assemblies added to GAC on the Assemblies page (linked with files from a synced folder) be kept?
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: DevOps and Synced folders

You're welcome.

I'm afraid that the settings you mentioned (install to parent and assemblies) will be lost when the synchronization of a folder is reset. To avoid this, you can open the project and remove the junk files manually.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”