在安装过程中更改程序名称和快捷方式标题 [英] Change Program Name and Shortcut Title during installation

查看:145
本文介绍了在安装过程中更改程序名称和快捷方式标题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我通过Install Shield 2013进行了基本的MSI安装,并且我们有大约20种不同的会员发布版本.实际上,这些版本之间的唯一区别是程序名称和桌面上安装的快捷方式.我们正在尝试构建一个发行版,而不是一遍又一遍地构建具有相同细微差异的相同程序.

I have a Basic MSI Install with Install Shield 2013 and we have about 20 different affiliate releases. Really the only difference between these releases is the Program Name and the shortcut that is installed on the desktop. We are trying to have one release build instead of building the same program over and over with these minor differences.

我一直在尝试找到一种在安装时更改这些项目的方法,但是没有成功.以前有没有人做过此事,或者对我在哪里可以找到有关此类事情的信息有任何建议.

I have been trying to find a way to change those items at install time but have not been successful. Has anyone out there done this before or have any suggestions of where I could find some information about things like this.

我对安装期间用户体验的目标如下:

My goal for the user experience during install time would be the following:

  • 出现通用欢迎屏幕
  • 提示用户输入会员代码
  • MSI将程序名称和快捷方式信息更改为分配给该代码的标题

提前感谢大家!

推荐答案

我认为我会使用 transform ,因为更改很小.转换用于向MSI添加多语言支持,因此,只需对父数据库进行几处更改,这肯定会更容易.

I think I would just use a transform for this, since the changes are so minimal. Transforms are used for adding multi-language support to an MSI, so this should certainly be easier with just a couple of changes to the parent database.

您创建自己的 setup.exe启动器(有很多可用的模板-我认为甚至Installshield都有一个可以使用的模板). setup.exe询问附属代码,然后应用适当的转换(或默认转换)并开始安装.这将是推荐的方法.

You create your own setup.exe launcher (there are many templates available - I think even Installshield has one you can use). The setup.exe asks for the affiliate code and then applies the appropriate transform (or the default one) and kicks off the install. This would be the recommended approach.

您甚至可以将转换合并为构建步骤,并根据需要吐出尽可能多的已转换" MSI文件.然后,启动中的杂音"会减少,但是听起来您需要根据关联代码来切换行为,然后setup.exe将很有效,因为它可以包含必要的逻辑来选择要应用的转换,具体取决于用户输入.

You can even merge the transforms as a build step and spit out as many "transformed" MSI files as you need. Then there is less "clunk" in the launching, but it sounds like you need to switch behavior based on the affiliate code, and then your setup.exe would be effective since it can contain the logic necessary to chose the transform to apply depending on the user input.

如果您不熟悉转换,则本质上就像是一个小事务"或应用于MSI的数据库片段,用于用新数据添加,替换和/或更新行.您可以通过任何MSI工具(包括Windows SDK中的Orca)创建一个.

If you are not familiar with a transform, it is essentially like a little "transaction" or a database fragment that is applied to your MSI adding, replacing and / or updating rows with new data. You can create one via any MSI tool, including Orca from the Windows SDK.

转换适用于 msiexec.exe 的命令行.这是一个示例命令行,其中包含用于说明的截断路径.这是无提示安装,具有详细的日志和两个转换(一个是语言转换):

Transforms are applied at the command line for msiexec.exe. Here is a sample command line with truncated paths for illustration. This is silent installation, with verbose log and two transforms applied (one is the language transform):

msiexec.exe/I"IsWiX.msi"/QN/L * V"C:\ msilog.log" TRANSFORMS ="C:\ IsWix.mst; C:\ 1031.mst"

msiexec.exe /I "IsWiX.msi" /QN /L*V "C:\msilog.log" TRANSFORMS="C:\IsWix.mst;C:\1031.mst"

这是应用于父数据库的样本转换:

Here is a sample transform applied to a parent database:

这篇关于在安装过程中更改程序名称和快捷方式标题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆