InstallShield output redirection using MSBuild

I am trying to use the InstallShield MSBuild task to create an installer on our build machine and put the output in a folder for removal. I can create an installer, but it remains in the source tree.

I tried to use OutDirin the task. This worked on my local machine, but it changes the actual .ism file; therefore, a crash on the build machine.

Next, I tried to use TaggedOutputsItemGroup. I'm just not sure how to make it work. I do not see any changes in my release. Here is my script:

    <ItemGroup>
  <!-- The TaggedOutputs items allow you to explicitly add extra files to output groups. Each item must include both Name and OutputGroup, as well as TargetPath metadata values. -->
  <TaggedOutputs Include="P:\">
          <Name>AvApp</Name>
          <OutputGroup>Primary output</OutputGroup>
          <TargetPath>My Test Exe.exe</TargetPath>
      </TaggedOutputs> 
</ItemGroup>

<!-- Run interactive InstallShield on the developer machine -->
<InstallShield Project="R:\src\Setup\AvSetup\AvSetup.ism" 
               ProductConfiguration="Product Configuration 1" 
               ReleaseConfiguration="Release 1" 
               OutputGroups="$(TaggedOutputs)"
               />

where P is mapped to the target location.

Is my syntax incorrect or is there another tag that I can use? InstallShield Version 2012.

+3
1

InstallShield Targets , , .

:

1) ISM, ISBUILDDIR,

<ISProjectDataFolder>    

2) " " " " " " "ProductName"

, , .

3) .ISPROJ(MSBuild) :

<ItemGroup>
    <InstallShieldPathVariableOverrides Include="$(OutDir)">
        <PathVariable>ISBUILDDIR</PathVariable>
    </InstallShieldPathVariableOverrides>
</ItemGroup>

$(OutDir) ISBUILD, / $(OutDir)\ProductName. , TFS Builds $(OutDir) $(BinariesRoot), .

+3

All Articles