Changing product name with mage.exe
Asked Answered
P

1

10

I need to update the application's manifest with a new value for 'product'. With mage.exe I can update the name and publisher but NOT the product. In MageUI you can do this, but I need to do it on the commandline.

Is there a solution or workaround for this?

Particle answered 6/7, 2011 at 10:59 Comment(0)
O
7

I played around and it seems the command line tool indeed lacks this capability. I guess it was done for keeping it lightweight (or maybe cost issues).

Alternative would be to use the GenerateApplicationManifest MSBuild task:

Example:

<Target Name="Build">
    <GenerateApplicationManifest
        AssemblyName="myapp.exe"
        Product="My Product"
        ...
        OutputManifest="SimpleWinApp.exe.manifest">
        <Output
            ItemName="ApplicationManifest"
            TaskParameter="OutputManifest"/>
    </GenerateApplicationManifest>
</Target>

This gives you lot more options (in fact everything that you can do through MageUI, can be done from here) and you bypass mage.exe (and its limitations) totally.

You should be able to use it anywhere MSBuild is supported (csproj files, TFS Build proj files etc).

Owades answered 15/8, 2011 at 19:38 Comment(4)
Yes you can. Check out this excellent post here: Integrating MSBuild with CruiseControl.NETOwades
@Martin: Don't forget to award the bounty!Owades
This doesn't seem right. I've been trying to change the name of the app (in the start menu and when installing), and finally got it to work by specifying the -Name option when creating the deployment manifest (this is in a .Net 4 environment so may be different now?). The relevant part of the deployment manifest is the 'product' attribute on the 'description' element.Drusy
can this also change the assemblynameColossian

© 2022 - 2024 — McMap. All rights reserved.