Hi,
I am trying to create shortcut in the startmenu but I noticed that the icon was not showing.
This is my code
startMenuFolder = Shell.GetFolder(SHF_STARTMENUPROGRAMS_COMMON) .. "\\MyApp";
Shell.CreateShortcut(startMenuFolder, "my app", SessionVar.Expand("%ProgramFilesFolder%").."\\myap p.exe, "", SessionVar.Expand("%AppFolder%"), SessionVar.Expand("%AppFolder%\\myapp.exe"), 0, SW_SHOWNORMAL, nil, ProductName);
it seems to have problems with the icon path. When I click on the icon path, it show
"Windows can't find the file %programfiles%\myapp.exe".
I believe that the it is using the wrong icon path.
I am trying to create shortcut in the startmenu but I noticed that the icon was not showing.
This is my code
startMenuFolder = Shell.GetFolder(SHF_STARTMENUPROGRAMS_COMMON) .. "\\MyApp";
Shell.CreateShortcut(startMenuFolder, "my app", SessionVar.Expand("%ProgramFilesFolder%").."\\myap p.exe, "", SessionVar.Expand("%AppFolder%"), SessionVar.Expand("%AppFolder%\\myapp.exe"), 0, SW_SHOWNORMAL, nil, ProductName);
it seems to have problems with the icon path. When I click on the icon path, it show
"Windows can't find the file %programfiles%\myapp.exe".
I believe that the it is using the wrong icon path.
Comment