Browse to Dialogs view, right-click an existing dialog, click Clone and rename the cloned dialog.

When you make following changes to the cloned dialog, the original dialog will also be changed.

1> Change the text associated with the controls

2> Delete the controls that you don’t need.

As for the first one, try the following solution provided by DebbieL's Avatar:

1. Select the control in the cloned dialog that you want to edit.

2. Select the Text property that is displayed in the right pane, and click the ellipsis button (...). The String Table dialog box opens.

3. Click the Add button. The String Entry dialog box opens.

4. In the ID field, enter a unique ID. In the Text field, enter the text that you want to be used for the selected control. Click OK.

5. In the list of strings, select the string that you just created, and click the Select button.

---------------------------------------------------------------------------------------------------------------------------------------------

Note: Following content is reprinted from the Original article: The One Thing You Absolutely Must Know When Cloning a Dialog

Only for knowledge sharing. ^^

You need a custom dialog and you are taking your first step to creating your first one in a Basic MSI project. You right-click an existing dialog in the Dialogs view, and click Clone. You rename the cloned dialog and then start changing it according to your needs. You have all the controls in place, the only thing left is to edit the text associated with the controls. No problem, right?

Well, actually there is a problem. In InstallShield, when you create a dialog, the text you see in a dialog control is actually associated with a string in the String Table. When you change the text in the control, you are actually changing the string in the String Table. Here’s where a problem can occur when you clone an existing dialog.

Let’s say you clone the DestinationFolder dialog. After cloning, you rename it to be UninstallOptions, delete a few controls, and add some new ones. Now, there are Text Areas on the dialog that are still on the original DestinationFolder dialog, because you haven’t deleted those controls. When you click on one of these controls in the cloned dialog, let’s say the Dialog Title, then go to the Text property and change the text to “Uninstall Options”, you are actually changing the string associated with that control in the original dialog. So, what happens?

The DestinationFolder dialog now has a new title. It’s no longer “Destination Folder”, it’s “Uninstall Options”. But, don’t despair. There is a cure.

After you clone a dialog and keep some of the original controls, click on each of those controls, go to the Text property, click the ellipsis, create a new string, then select that string for the control. When you do that, your cloned dialog will have a string that belongs only to it, and the original dialog will remain unaltered.

最新文章

  1. MEF入门之不求甚解,但力求简单能讲明白(二)
  2. 网络图片下载缓存库SDWebImage的使用
  3. mongodb use db show dbs
  4. 《UNIX环境高级编程》笔记--UNIX标准化及实现
  5. LightOJ 1033 Generating Palindromes(dp)
  6. HDU 5855 Less Time, More profit
  7. CentOS7像外部163邮箱发送邮件
  8. Spring 使用 feign时设置header信息
  9. IMDb、烂番茄、MTC、各种电影行业评分名字整理
  10. nginx-1.13.12 源码配置清单
  11. c#帮助文档chm打不开的问题
  12. C#让应用程序只运行一个实例的几种方法
  13. js 滚动条滚动到底部触发事件
  14. 从主机系统向虚拟机系统里面copy 文件
  15. 【剑指offer】07重建二叉树,C++实现
  16. 手写html表格熟练度练习
  17. 【BZOJ4499】线性函数 线段树
  18. 【ARC069F】Flags 2-sat+线段树优化建图+二分
  19. 使用Vue CLI3开发多页面应用
  20. C语言之基本算法34—分解质因数(方法一)

热门文章

  1. java基础三种循环的使用及区别
  2. SQLite使用教程9 Select 语句
  3. SQLite使用教程4 附加数据库
  4. 实战:ORACLE SQL Performance Analyzer
  5. [Java][Android][Process] 暴力的服务能够解决一切,暴力的方式运行命令行语句
  6. URL是否有效
  7. Windows下python环境变量配置
  8. QT5中如何自定义窗口部件
  9. js中的preventDefault和stopPropagation
  10. 深入理解计算机系统第二版习题解答CSAPP 2.19