My Inno app installer requires admin privileges and installs into program files by default with shortcut icons (app and user manual) on the common desktop. At times it's convenient to install the shortcuts onto the user desktop or not at all so I'd like to give 3 options: Public desktop, User desktop or No shortcuts. However I don't know how/where to do the shortcut creation after the selection is made.
[Code]
var
OptionPage: TInputOptionWizardPage;
procedure InitializeWizard();
begin
OptionPage :=
CreateInputOptionPage(
wpWelcome,
'Choose shortcuts option', 'Where would you like the application and user manual shortcuts?',
'Please select an option below.',
True, False);
OptionPage.Add('&Public desktop');
OptionPage.Add('&User desktop only');
OptionPage.Add('&No shortcuts');
OptionPage.Values[0] := True;
end;
function NextButtonClick(CurPageID: Integer): Boolean;
begin
if CurPageID = OptionPage.ID then
begin
if OptionPage.Values[0] then
begin
{ copy shortcuts to public desktop? }
end;
if OptionPage.Values[1] then
begin
{ copy shortcuts to user desktop only? }
end;
if OptionPage.Values[2] then
{ do nothing? }
end;
Result := True;
end;
Can anyone point me in the right direction?