I made a custom page using NSIS and I created in it a CheckBox to set the homepage of Internet Explorer. I combined these codes which I collected from different sources
To create the CheckBox:
${NSD_CreateCheckbox} 8 80 10 10 "CheckBox1"
Pop $Custom_Page1_CheckBox1
GetFunctionAddress $0 OnCheckbox
nsDialogs::OnClick $Custom_Page1_CheckBox1 $0
ans this is the function I used to set the home page of Internet Explorer:
Function OnCheckbox
WriteRegStr HKCU "Software\Microsoft\Internet Explorer\Main" "Start Page" "http://www/homepage.com/"
FunctionEnd
The problem is there is no management of the selection which the user may choose.
How to solve this problem?