
30-03-2022, 21:47
|
 |
Registered User
|
|
Join Date: Sep 2012
Location: Brasil
Posts: 126
Thanks: 102
Thanked 16 Times in 13 Posts
|
|
Quote:
Originally Posted by Cesar82
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;
|
Now yes Solved
A small modification
Quote:
procedure CurStepChanged(CurStep: TSetupStep);
begin
if CurStep = ssDone then begin
if task then
//if userappdata.Checked then
PinToTaskbar(ExpandConstant('{group}\{#AppName}.ln k'), true);
//PinToTaskbar(ExpandConstant('{app}\{#AppExec}'), true);
end;
|
|