Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [Tasks]
- Name: pintotaskbar; Description: "&Pin to taskbar"; GroupDescription: "Other tasks:"; Flags: unchecked
- [Code]
- procedure CurStepChanged(CurStep: TSetupStep);
- begin
- // if the installation just finished and the user selected our 'pintotaskbar'
- // task, then try to pin the app. to taskbar (there's no error handling shown
- // here because you can't do anything when this attempt fails)
- if (CurStep = ssPostInstall) and IsTaskSelected('pintotaskbar') then
- PinAppTo(ExpandConstant('{app}\MyApp.exe'), pdTaskbar);
- end;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement