cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Aleksandar_Mija
Level 2

AddFolderIcon

Can somebody help me about AddFolderIcon.
I simple can not get Icons, even return value is correct.
What is wrong here ?

szProgram=TARGETDIR^"MyEXE.exe";
szP1=szProgram;
LongPathToQuote (szProgram, TRUE);

AddFolderIcon (FOLDER_PROGRAMS,"myIcon Name" , szProgram, TARGETDIR,
szP1,2, "", REPLACE);


I tried some variation of the last command ( to put "" for szP1 ), but nothing works.

Any idea ?
Labels (1)
0 Kudos
(1) Reply
J_anitha
Level 8

I guess if you have to get the icon of the exe getting installed, give IconPath = "", and nIcon= 0.
You need to give path to .ico file if your nIcon is 2.
0 Kudos