View Single Post
  #534  
Old 27-08-2017, 13:18
Sebazz Sebazz is offline
Registered User
 
Join Date: Mar 2016
Location: Terra
Posts: 60
Thanks: 24
Thanked 7 Times in 6 Posts
Sebazz is on a distinguished road
Quote:
Originally Posted by -NORO- View Post
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;

Last edited by Sebazz; 27-08-2017 at 15:49.
Reply With Quote