在 WIX 中在运行时为快捷方式动态分配名称 [英] Dynamically assigning name to shortcut at run time in WIX
本文介绍了在 WIX 中在运行时为快捷方式动态分配名称的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想根据用户输入为快捷方式指定不同的名称.使用 WiX 工具集是否可行?我曾尝试将属性值分配给 Shortcut
元素的 Name
属性,但它不起作用.
I want to assign different names to a shortcut based on user input. Is this feasible using the WiX toolset? I have tried assigning value of property to Name
attribute of Shortcut
element but it does not work.
推荐答案
快捷方式表 不是 已格式化,因此无法在运行时使用 [PROPERTY] 对其进行变异.
The Name column of the Shortcut Table isn't of type Formatted therefore it isn't possible to use [PROPERTY] to mutate it at runtime.
我知道的唯一方法是:
- 跳过快捷方式表并编写自定义操作来自己处理.
- 编写自定义操作以在运行时使用 SQL TEMPORARY 语法动态创建 ShortCut 表.
- 可能有一个扩展已经实现了 #2.
这篇关于在 WIX 中在运行时为快捷方式动态分配名称的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文