In a Visual Studio installation project, how do I update the registry in a check box?

I am currently using registry settings in an installation project to set file associations and an icon for related files for my application.

Registry settings

In the general VS Setup project, registry updates are always performed. How to make the registry update conditional depending on the state of the dialog box ?

alt text

+5
source share
1 answer

The key is to attach the condition to the checkbox, and then perform the update based on the condition.

.

Open ui designer

.

Add a dialog

. , .

Select a checkbox dialog

. .

new dialog

"". 1, , - 1 ( ), .

checkbox property

, , . , , . , :

Registry designer

CONDITION = 1 , CONDITION - , .

Specify the condition

+12

All Articles