I have just created my first Advanced Installer installer. It successfully builds locally, so I am now trying to build the solution via my TFS build process. I am getting the following errors and have been unable to get around it.
Building solution configuration "All|Default".
Project "C:\Builds\49\LEA\SpecializedProducts.FormPrep.Main\Sources\Source\Installers\GRUNT.sln" (1) is building "C:\Builds\49\LEA\SpecializedProducts.FormPrep.Main\Sources\Source\Installers\GRUNT.aiproj" (2) on node 1 (default targets).
C:\Program Files (x86)\MSBuild\Caphyon\Advanced Installer\AdvInstExtTasks.Targets(132,5): error : IsVsixCmd [C:\Builds\49\LEA\SpecializedProducts.FormPrep.Main\Sources\Source\Installers\GRUNT.aiproj]
C:\Program Files (x86)\MSBuild\Caphyon\Advanced Installer\AdvInstExtTasks.Targets(132,5): error : SetOutputLocation -buildname "" -path "C:\Builds\49\LEA\SpecializedProducts.FormPrep.Main\Binaries\" [C:\Builds\49\LEA\SpecializedProducts.FormPrep.Main\Sources\Source\Installers\GRUNT.aiproj]
C:\Program Files (x86)\MSBuild\Caphyon\Advanced Installer\AdvInstExtTasks.Targets(132,5): error : save [C:\Builds\49\LEA\SpecializedProducts.FormPrep.Main\Sources\Source\Installers\GRUNT.aiproj]
C:\Program Files (x86)\MSBuild\Caphyon\Advanced Installer\AdvInstExtTasks.Targets(132,5): error : Error opening file: "C:\Builds\49\LEA\SpecializedProducts.FormPrep.Main\Sources\Source\Installers\GRUNT.aip". [C:\Builds\49\LEA\SpecializedProducts.FormPrep.Main\Sources\Source\Installers\GRUNT.aiproj]
C:\Program Files (x86)\MSBuild\Caphyon\Advanced Installer\AdvInstExtTasks.Targets(132,5): error : [C:\Builds\49\LEA\SpecializedProducts.FormPrep.Main\Sources\Source\Installers\GRUNT.aiproj]
Done Building Project "C:\Builds\49\LEA\SpecializedProducts.FormPrep.Main\Sources\Source\Installers\GRUNT.aiproj" (default targets) -- FAILED.
Done Building Project "C:\Builds\49\LEA\SpecializedProducts.FormPrep.Main\Sources\Source\Installers\GRUNT.sln" (default targets) -- FAILED.
When I try to build the same .sln on the build machine at the command line, instead of using the TFS build server, I get the same messages.
I can open the .aip on the build machine (in the location where the build is looking for it) and even successfully build it there in the Advanced Installer GUI.
I am building via TFS as the same user with which I can login to the build machine and build the project in the GUI. (Although it is a different user than with which I actually created the project.)
I am using advanced installer version 13.0
In the verbose build log, I found the info below about each of the targets, and I'm wondering if these conditions would lead to the errors above, or if they are expected skips. I'm concerned that it is because I didn't specify a configuration or platform for the build - but I did that because the Advanced Installer wouldn't let me set up our usual platform and configuration (Release/Win32), and another forum post led me to just not specify the configuration. Did I misinterpret that Advanced Installer requires me to not specify a configuration?
Task "AssignProjectConfiguration" skipped, due to false condition; ( '$(BuildingSolutionFile)' == 'true' and '@(ProjectReference)' != '' ) was evaluated as ( 'true' == 'true' and '' != '' ).
Task "MSBuild" skipped, due to false condition; ( '@(_RootedConfiguredProjectReference)' != '' ) was evaluated as ( '' != '' ).
Done building target "_ResolveProjectReferences" in project "GRUNT.aiproj".: (TargetId:6)
Target "_CollectProjectReferences: (TargetId:7)" in file "C:\Program Files (x86)\MSBuild\Caphyon\Advanced Installer\AdvInstExtTasks.Targets" from project "C:\Builds\49\LEA\SpecializedProducts.FormPrep.Main\Sources\Source\Installers\GRUNT.aiproj" (target "ResolveProjectReferenceOutputs" depends on it):
Task "MSBuild" skipped, due to false condition; ( '%(_RootedConfiguredProjectReference.Identity)' != '' ) was evaluated as ( '' != '' ).
Done building target "_CollectProjectReferences" in project "GRUNT.aiproj".: (TargetId:7)
Target "ResolveProjectReferenceOutputs: (TargetId:8)" in file "C:\Program Files (x86)\MSBuild\Caphyon\Advanced Installer\AdvInstExtTasks.Targets" from project "C:\Builds\49\LEA\SpecializedProducts.FormPrep.Main\Sources\Source\Installers\GRUNT.aiproj" (target "Build" depends on it):
Done building target "ResolveProjectReferenceOutputs" in project "GRUNT.aiproj".: (TargetId:8)
Target "CreateOutputDir: (TargetId:9)" in file "C:\Program Files (x86)\MSBuild\Caphyon\Advanced Installer\AdvInstExtTasks.Targets" from project "C:\Builds\49\LEA\SpecializedProducts.FormPrep.Main\Sources\Source\Installers\GRUNT.aiproj" (target "Build" depends on it):
Using "ConvertToAbsolutePath" task from assembly "Microsoft.Build.Tasks.v4.0, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a".
Task "ConvertToAbsolutePath" (TaskId:6)
Task Parameter:Paths=C:\Builds\49\LEA\SpecializedProducts.FormPrep.Main\Binaries\ (TaskId:6)
Done executing task "ConvertToAbsolutePath". (TaskId:6)
Using "MakeDir" task from assembly "Microsoft.Build.Tasks, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a".
Task "MakeDir" (TaskId:7)
Task Parameter:Directories=C:\Builds\49\LEA\SpecializedProducts.FormPrep.Main\Binaries\ (TaskId:7)
Done executing task "MakeDir". (TaskId:7)
Done building target "CreateOutputDir" in project "GRUNT.aiproj".: (TargetId:9)
Target "_CollectProjectPrimaryOutput: (TargetId:10)" in file "C:\Program Files (x86)\MSBuild\Caphyon\Advanced Installer\AdvInstExtTasks.Targets" from project "C:\Builds\49\LEA\SpecializedProducts.FormPrep.Main\Sources\Source\Installers\GRUNT.aiproj" (target "Build" depends on it):
Task "MSBuild" skipped, due to false condition; ( '%(_ProjectReferences.Identity)' != '' ) was evaluated as ( '' != '' ).
Task "MSBuild" skipped, due to false condition; ( '%(PrimaryOutputWithLocation.Identity)' != '' ) was evaluated as ( '' != '' ).
Done building target "_CollectProjectPrimaryOutput" in project "GRUNT.aiproj".: (TargetId:10)
Target "Build: (TargetId:11)" in file "C:\Program Files (x86)\MSBuild\Caphyon\Advanced Installer\AdvInstExtTasks.Targets" from project "C:\Builds\49\LEA\SpecializedProducts.FormPrep.Main\Sources\Source\Installers\GRUNT.aiproj" (entry point):
Using "AdvInst" task from assembly "C:\Program Files (x86)\MSBuild\Caphyon\Advanced Installer\AdvInstExtTasks.dll".
Task "AdvInst" (TaskId:8)
Task Parameter:Project=GRUNT.aip (TaskId:8)
Task Parameter:Configuration=All (TaskId:8)
Task Parameter:OutputDir=C:\Builds\49\LEA\SpecializedProducts.FormPrep.Main\Binaries\ (TaskId:8)
C:\Program Files (x86)\MSBuild\Caphyon\Advanced Installer\AdvInstExtTasks.Targets(132,5): error : IsVsixCmd [C:\Builds\49\LEA\SpecializedProducts.FormPrep.Main\Sources\Source\Installers\GRUNT.aiproj]
C:\Program Files (x86)\MSBuild\Caphyon\Advanced Installer\AdvInstExtTasks.Targets(132,5): error : SetOutputLocation -buildname "" -path "C:\Builds\49\LEA\SpecializedProducts.FormPrep.Main\Binaries\" [C:\Builds\49\LEA\SpecializedProducts.FormPrep.Main\Sources\Source\Installers\GRUNT.aiproj]
C:\Program Files (x86)\MSBuild\Caphyon\Advanced Installer\AdvInstExtTasks.Targets(132,5): error : save [C:\Builds\49\LEA\SpecializedProducts.FormPrep.Main\Sources\Source\Installers\GRUNT.aiproj]
C:\Program Files (x86)\MSBuild\Caphyon\Advanced Installer\AdvInstExtTasks.Targets(132,5): error : Error opening file: "C:\Builds\49\LEA\SpecializedProducts.FormPrep.Main\Sources\Source\Installers\GRUNT.aip". [C:\Builds\49\LEA\SpecializedProducts.FormPrep.Main\Sources\Source\Installers\GRUNT.aiproj]
C:\Program Files (x86)\MSBuild\Caphyon\Advanced Installer\AdvInstExtTasks.Targets(132,5): error : [C:\Builds\49\LEA\SpecializedProducts.FormPrep.Main\Sources\Source\Installers\GRUNT.aiproj]
Done executing task "AdvInst" -- FAILED. (TaskId:8)
Done building target "Build" in project "GRUNT.aiproj" -- FAILED.: (TargetId:11)
Done Building Project "C:\Builds\49\LEA\SpecializedProducts.FormPrep.Main\Sources\Source\Installers\GRUNT.aiproj" (default targets) -- FAILED.
Done executing task "MSBuild" -- FAILED. (TaskId:3)
Done building target "Build" in project "GRUNT.sln" -- FAILED.: (TargetId:5)
Done Building Project "C:\Builds\49\LEA\SpecializedProducts.FormPrep.Main\Sources\Source\Installers\GRUNT.sln" (default targets) -- FAILED.
I would very much appreciate any hints on what to try next.
Thank you,
Serena
FOLLOW US
Get the latest news in Application Packaging