wix - 如何使用 WiX Installer 更改添加/删除程序名称?

标签 wix wix3.6 wix3.7

我正在构建一个 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/

相关文章:

wix - 在 Wix 中更改 WixUI_Minimal 的对话框顺序

WiX Bootstrap 主题文件?

wix - 如何判断WIX Bootstrapper中是否安装了dotnet和VSTORuntime

wix - 在 Wix 安装程序中以管理员模式在 customAction 中运行 ExeCommand

windows - 在 Windows 上执行互斥安装?

wix - 我可以使用 Microsoft ClickOnce 技术部署 WiX 设置吗?

wix - 为什么 setup.exe 不显示 ARPCOMMENTS & WIXUIBanner.bmp 但 setup.msi 显示这些东西?

WIX : Substitution in 'C:\Program Files (x86)\XXX' folder had been blocked by the 1 mask argument (the folder pair's iSwapAttrib member = 0)

c++ - 静默接受 .pfx 证书

visual-studio-2010 - 如何在 WiX 3.6 中包含依赖于配置的项目输出