-1

I have a wix project that generates an output msi, inside the project i have set the output name using the tag. But the msi get's built with the project name instead. The msi name also changes when i change the project name.

What could be the reason for this? I need to include the $(Platform) with the output name.

1 Answer 1

0

This is hard to answer without seeing your wixproj file. Most likely you set the OutputName too early in your targets execution path.

What would definitely work is (Wix5):

<Target Name="SetOutputFileName" BeforeTargets="AssignTargetPaths">
<PropertyGroup>
  <TargetName>Yourname$(Platform)</TargetName>
  <TargetFileName>$(TargetName)$(TargetExt)</TargetFileName>
  <TargetPath>$(TargetDir)$(TargetFileName)</TargetPath>
</PropertyGroup>
</Target>

or (Wix3x)

<Target Name="SetOutputFileName" BeforeTargets="BeforeBuild">
<PropertyGroup>
  <TargetName>Yourname$(Platform)$(TargetExt)</TargetName>
</PropertyGroup>
</Target>
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.