Quote:
Originally Posted by -NORO-
You need to create a checkbox like "create a desktop icon" , this is this same principle , also look at CreateShortcuts function in your .iss , you will understand.
StartMenuIcon:=CheckBoxCreate(WizardForm,x,x,x,x,' Create Start Menu Icons');
CheckBoxSetChecked(StartMenuIcon,True);
It creates a checkbox but you need to declare first StartMenuIcon as variable and add it in procedures as CheckBoxOnUp,CheckBoxOnUpdown , .. etc.
|
Ok. I add these function lines, only have a problem with this code. When try to add the function, this not compile because says duplicate.
I try to copy this same function and replace the 'DesktopChk' with 'StartMenuIcon', but dont worked. Can you help me?
Code:
function CreateShortcuts:Boolean;
begin
if ISDoneError then
Result:=False
else
Result:=CheckBoxGetChecked(DesktopChk);
end;