Thread: Icon TaskBar
View Single Post
  #8  
Old 30-03-2022, 20:36
Cesar82's Avatar
Cesar82 Cesar82 is offline
Registered User
 
Join Date: May 2011
Location: Brazil
Posts: 1,074
Thanks: 1,814
Thanked 2,304 Times in 787 Posts
Cesar82 is on a distinguished road
Quote:
Originally Posted by buttignol View Post
Thank you but it did not work.
Code:
procedure CurStepChanged(CurStep: TSetupStep);
begin
  if CurStep = ssDone then
  begin
    if userappdata.Checked then
      PinToTaskbar(ExpandConstant('{group}\{#MyAppName}.lnk'), true);
    PinToStartMenu(ExpandConstant('{group}\{#MyAppName}.lnk'), true);
  end;
end;

procedure CurUninstallStepChanged(CurUninstallStep: TUninstallStep);
begin
  if CurUninstallStep = usUninstall then
  begin
    PinToTaskbar(ExpandConstant('{group}\{#MyAppName}.lnk'), false);
    PinToStartMenu(ExpandConstant('{group}\{#MyAppName}.lnk'), false);
  end;
end;
Reply With Quote
The Following User Says Thank You to Cesar82 For This Useful Post:
buttignol (30-03-2022)