关于installshield的自定义对话框

时间:2022-10-14 22:40:34

Currently I use basic msi project in installshield. I modify the destinaton dialog and add one checkbox on this dialog. I want to use this checkbox's value in other place. So how should I do?

目前我在installshield中使用基本的msi项目。我修改了destinaton对话框并在此对话框中添加了一个复选框。我想在其他地方使用此复选框的值。那我该怎么办?

1 个解决方案

#1


1  

Click on the checkbox you created in the dialog and you'll notice it has a Property and Value attribute. The Property is the name of the property that gets set when you check/uncheck the checkbox. The Property name should be in ALL CAPS to make it Public. It should also be listed in the SecureCustomProperties property to make it secure. ( Can pass from UI to Execute sequence during UAC/Elevated installation scenarios ) . The Value attribute says what the value of the Property is when it's checked. The unchecked value is always null/empty/unset.

单击您在对话框中创建的复选框,您会发现它具有属性和值属性。属性是选中/取消选中复选框时设置的属性的名称。属性名称应该在ALL CAPS中以使其成为公共名称。它还应该在SecureCustomProperties属性中列出,以使其安全。 (可以在UAC / Elevated安装方案期间从UI传递到执行序列)。 Value属性说明在检查Property时它的值。未选中的值始终为null / empty / unset。

If you need a different unchecked value you'll have to write a Set Property custom action that gives it a value when it doesn't have a value.

如果您需要一个不同的未选中值,则必须编写一个Set Property自定义操作,在没有值时为其提供值。

From there you can use it in other places ( such as Registry or XML changes ) by typing [PROPERTYNAME].

从那里,您可以通过键入[PROPERTYNAME]在其他地方(例如注册表或XML更改)中使用它。

#1


1  

Click on the checkbox you created in the dialog and you'll notice it has a Property and Value attribute. The Property is the name of the property that gets set when you check/uncheck the checkbox. The Property name should be in ALL CAPS to make it Public. It should also be listed in the SecureCustomProperties property to make it secure. ( Can pass from UI to Execute sequence during UAC/Elevated installation scenarios ) . The Value attribute says what the value of the Property is when it's checked. The unchecked value is always null/empty/unset.

单击您在对话框中创建的复选框,您会发现它具有属性和值属性。属性是选中/取消选中复选框时设置的属性的名称。属性名称应该在ALL CAPS中以使其成为公共名称。它还应该在SecureCustomProperties属性中列出,以使其安全。 (可以在UAC / Elevated安装方案期间从UI传递到执行序列)。 Value属性说明在检查Property时它的值。未选中的值始终为null / empty / unset。

If you need a different unchecked value you'll have to write a Set Property custom action that gives it a value when it doesn't have a value.

如果您需要一个不同的未选中值,则必须编写一个Set Property自定义操作,在没有值时为其提供值。

From there you can use it in other places ( such as Registry or XML changes ) by typing [PROPERTYNAME].

从那里,您可以通过键入[PROPERTYNAME]在其他地方(例如注册表或XML更改)中使用它。