如何使用WiX安装程序更改添加/删除程序名?
我正在构建一个WiX项目来安装一个定制包。我的产品如下所示:如何使用WiX安装程序更改添加/删除程序名?,wix,wix3.6,wix3.7,Wix,Wix3.6,Wix3.7,我正在构建一个WiX项目来安装一个定制包。我的产品如下所示: <Product Name="My custom project" ... /> 据我所知,正如Rob Menching所提到的,这样做的方法是修改我的.wxs屏幕文件,修改[ProductName]标记,并用我自己的选择替换它 我想知道是否有一种更简单、更简短的方法,例如,使用我的自定义ARPINFO配置,比如发布的修改添加/删除程序列表下显示的名称的配置 有人知道如何解决这个问题吗? 我已经找到了解决
<Product
Name="My custom project"
... />
据我所知,正如Rob Menching所提到的,这样做的方法是修改我的.wxs屏幕文件,修改[ProductName]
标记,并用我自己的选择替换它
我想知道是否有一种更简单、更简短的方法,例如,使用我的自定义ARPINFO
配置,比如发布的修改添加/删除程序列表下显示的名称的配置
有人知道如何解决这个问题吗?我已经找到了解决这个问题的办法。您可能会发现它在您的场景中也很有用。 对于这种方法,您必须编辑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>
YOURAPP.$(产品版本)
包裹
$(MSBuildExtensionsPath32)\Microsoft\WiX\v3.x\WiX.targets
$(MSBuildExtensionsPath)\Microsoft\WiX\v3.x\WiX.targets
你的应用程序
;
比修改产品名称更短的方法?现在还不清楚这里的问题是什么。ProductName是您使用的,其余ARP信息是链接处的属性集。这是Windows Installer的标准行为,与WiX创建的表或WiX提供的操作无关。您可以使用隐藏整个条目并单独创建自己的条目。但是你确定这是一个经过验证的需求吗?这基本上是你的项目名称。当.wxi文件中的产品
标记的名称
属性动态更新时,在这种情况下,应用程序名称将不会来自产品标记,因此这是在添加/删除程序中更新产品名称的左选项。如果您需要任何帮助或更多解释,请发表评论。
<?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>