我正在构建一个 WiX 项目来安装自定义包。我的产品看起来像这样:
<Product
Name="My custom project"
... />
因此,当我使用 WiX 安装程序时,我可以在屏幕上以及 Wix 使用该名称显示时看到 Selected name
。
在添加/删除 程序下,我可以看到在Name
标签下指定了相同的名称。但我希望它看起来不一样,因为:
My custom project v1.0
据我所知,正如 Rob Menching 提到的 here ,这样做的方法是修改我的 .wxs 屏幕文件以修改 [ProductName]
标签并将其替换为我自己的选择。
我想知道是否有更简单和更短的方法,例如,使用我的自定义 ARPINFO
配置,就像发布的那些 here修改显示在添加/删除程序列表下的名称。
有人知道怎么解决吗?
最佳答案
我已经找到了解决方法。可能您会发现它在您的场景中也很有用。
对于这种方法,您必须编辑 wixproject 文件,即 YOURPROJECT.wixproj。
编辑 PropertyGroup
标签下的 Name
属性。
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<OutputName>YOURAPP.$(ProductVersion)</OutputName>
<OutputType>Package</OutputType>
<WixTargetsPath Condition=" '$(WixTargetsPath)' == '' AND '$(MSBuildExtensionsPath32)' != '' ">$(MSBuildExtensionsPath32)\Microsoft\WiX\v3.x\Wix.targets</WixTargetsPath>
<WixTargetsPath Condition=" '$(WixTargetsPath)' == '' ">$(MSBuildExtensionsPath)\Microsoft\WiX\v3.x\Wix.targets</WixTargetsPath>
<!--<This name will be displayed under your add remove program.>-->
<Name>YOURAPP</Name>
<!--<This is used for Product Display Name.>-->
<Cultures>;</Cultures>
</PropertyGroup>
关于wix - 如何使用 WiX Installer 更改添加/删除程序名称?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26156405/