View Single Post
  #8  
Old 24-04-2020, 06:46
KaktoR's Avatar
KaktoR KaktoR is offline
Lame User
 
Join Date: Jan 2012
Location: From outer space
Posts: 4,689
Thanks: 1,106
Thanked 7,336 Times in 2,838 Posts
KaktoR is on a distinguished road
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;
__________________
Haters gonna hate
Reply With Quote