Jump to content


This is a ready-only archive of the InstallSite Forum. You cannot post any new content here. / Dies ist ein Archiv des InstallSite Forums. Hier können keine neuen Beiträge veröffentlicht werden.
Photo

Read registry then set the checkbox


1 reply to this topic

Teddy

Teddy
  • Members
  • 8 posts

Posted 20 January 2005 - 03:02

When loading my setup, I want it read a registry value "test" if the value of test = 0 then the checkbox (I put the checkbox in ReadyToRemove dialog) will be disabled otherwise it will be enabled..so:

1. How to programatically (using InstallScript) disable my checkbox based on the above
condition?

2. How to programatically (using InstallScript) set value of my checkbox base on the above condition? (if the value = 0 then the checkbox's value is unchecked otherwise the state is checked) ..

please advise and thanks a lot in advance

Regards
Teddy


Jochen

Jochen
  • Members
  • 40 posts

Posted 20 January 2005 - 09:57

Hi Teddy,

1) you could do it like this:
_WinSubEnableControl(hwndDlg, YOUR_CHECKBOX, SW_HIDE);
There you can switch between SW_HIDE and SW_SHOW in the last variable if your registry key exists or not.

2) Look at the function CtrlSetState to set your checkbox checked or not.

Hope it helps.

Regards
Jochen