I want to create shortcuts with CreateShellLink function, it works for {commondesktop} but not for {group} nor {userstartmenu} / {commonstartmenu}. Why?
I read the information directly from INI file.
Code:
if IniKeyNotEmpty('Executable', 'Exe') then
begin
CreateShellLink(
ExpandConstant('{commonstartmenu}\' + GetIniString('Executable', 'ExeName', '', ExpandConstant('{tmp}\Settings.ini')) + '.lnk'),
GetIniString('Executable','ExeName','',ExpandConstant('{tmp}\Settings.ini')),
GetIniString('Executable','Exe','',ExpandConstant('{tmp}\Settings.ini')),
GetIniString('Executable','ExeParam','',ExpandConstant('{tmp}\Settings.ini')),
'',
'',
0,
SW_SHOWNORMAL
);
end;