Hello Daniel,
I have a similar issue. I have working CI build pipeline in DevOps which creates a setup file, but I'm not able to prepare a release pipeline.
- relase pipeline.png (81.05 KiB) Viewed 8226 times
Problem is with the build of Update.aip project. This project was created according to your manual and works correctly on local but not in the DevOps.
Detailed DevOps log is the following:
2019-05-28T15:28:51.0168521Z ##[section]Starting: Build Advanced Installer package Updater.aip
2019-05-28T15:28:51.0270114Z ==============================================================================
2019-05-28T15:28:51.0270168Z Task : Advanced Installer Build
2019-05-28T15:28:51.0270197Z Description : Build setup packages using Advanced Installer.
2019-05-28T15:28:51.0270226Z Version : 2.0.1
2019-05-28T15:28:51.0270296Z Author : Caphyon
2019-05-28T15:28:51.0270323Z Help :
2019-05-28T15:28:51.0270351Z ==============================================================================
2019-05-28T15:28:51.3192745Z Checking if a cached copy exists for this version...
2019-05-28T15:28:51.3203872Z Found tool in cache: advinst 15.9.0 x86
2019-05-28T15:28:51.3204134Z Cached copy of AdvancedInstaller exists. No need to install afresh. Cached tool location: C:\hostedtoolcache\windows\advinst\15.9.0\x86.
2019-05-28T15:28:51.3227241Z Prepending PATH environment variable with directory: C:\hostedtoolcache\windows\advinst\15.9.0\x86\bin\x86
2019-05-28T15:28:51.3280801Z [command]C:\hostedtoolcache\windows\advinst\15.9.0\x86\bin\x86\AdvancedInstaller.com /execute "d:\a\r1\a\_Servis App MASTER build\drop\Servis_App.Updater\Servis_App.Updater.aip" d:\a\_temp\707.aic
2019-05-28T15:28:57.5624610Z SetOutputLocation -path "d:\a\r1\a" -buildname ""
2019-05-28T15:28:57.5625176Z Your 'update' Advanced Installer project cannot be used to execute command 'SetOutputLocation'. One of the following types of projects is required 'simple | java | professional | enterprise | architect | express'.
2019-05-28T15:28:57.5625395Z
2019-05-28T15:28:57.5625549Z Advanced Installer 15.9
2019-05-28T15:28:57.5626048Z
2019-05-28T15:28:57.5626201Z Usage:
2019-05-28T15:28:57.5626376Z AdvancedInstaller.com <path_to_project_file>
2019-05-28T15:28:57.5626510Z AdvancedInstaller.com /help [<command>] | /? [<command>]
2019-05-28T15:28:57.5626646Z AdvancedInstaller.com /build <path_to_project_file> { [-buildslist <builds_list>] | [-configurationslist <configurations_list>] }
2019-05-28T15:28:57.5626842Z AdvancedInstaller.com /rebuild <path_to_project_file> { [-buildslist <builds_list>] | [-configurationslist <configurations_list>] }
2019-05-28T15:28:57.5626984Z AdvancedInstaller.com /RunInVM <path_to_project_file> [-build name] -vmprofile {GUID} [-quiet]
2019-05-28T15:28:57.5627120Z AdvancedInstaller.com /edit <path_to_project_file> <command>
2019-05-28T15:28:57.5627277Z AdvancedInstaller.com /execute <path_to_project_file> <command_file_path> [-nofail]
2019-05-28T15:28:57.5627412Z AdvancedInstaller.com /loadpathvars <path_variables_file_path>
2019-05-28T15:28:57.5627564Z AdvancedInstaller.com /newproject <path_to_project_file> [-type project_type] [-lang project_language] [-overwrite]
2019-05-28T15:28:57.5627719Z AdvancedInstaller.com /register <license_id>
2019-05-28T15:28:57.5627853Z AdvancedInstaller.com /registerfloating <host>:<port>
2019-05-28T15:28:57.5627987Z AdvancedInstaller.com /cfglicensesrvproxy [-set <host>:<port>] | [-disable]
2019-05-28T15:28:57.5628155Z AdvancedInstaller.com /setrepositorypath <repository_path> [-move]
2019-05-28T15:28:57.5628290Z AdvancedInstaller.com /getrepositorypath
2019-05-28T15:28:57.5628404Z
2019-05-28T15:28:57.5628536Z SetOutputLocation command:
2019-05-28T15:28:57.5628694Z /SetOutputLocation -buildname <build_name> -path <output_path>
2019-05-28T15:28:57.5628811Z
2019-05-28T15:28:57.5628924Z
2019-05-28T15:28:57.5717654Z ##[error]Failed to execute Advanced Installer task. Error: SetOutputLocation -path "d:\a\r1\a" -buildname ""
Your 'update' Advanced Installer project cannot be used to execute command 'SetOutputLocation'. One of the following types of projects is required 'simple | java | professional | enterprise | architect | express'.
I think there is a problem with SetOutputLocation parameter where is missing backslash.
That's one thing. Another issue is with the passing parameter for a new update. As you wrote I can use NewUpdate parameter, but I'm not able to pass it to Advanced Installer build component. Maybe its because there is previously mentioned error.
My parameter line for NewUpdate is : /NewUpdate "_Servis App MASTER build/drop/Servis_App.Installer/Servis_App.Installer-SetupFiles/setup.exe" -name "Update v.$(AssemblyInfo.AssemblyVersion)" -display_name "Update v.$(AssemblyInfo.AssemblyVersion)" -url
http://mywebpage.com/updates/v.$(Assemb ... /setup.exe
Regards,
Jaroslav