Posted 14 March 2002 - 17:35
I used AddFolderIcon in my ISWI5 install, and I am using it again in Developer, simply because is is so much easier for me than the GUI in the IDE. Here is a sample script for creating a icon:
AddFolderIcon ( FOLDER_PROGRAMS, "My Application",
INSTALLDIR ^ "Myapp.EXE", INSTALLDIR,
INSTALLDIR ^ "Myapp.EXE" , 0
, "" , REPLACE );
It is interesting to note that if the folder does not exist, it will be created automatically, so don't worry about creating the folder, just the icons. The line formatting is just for convenience so it is easier to see. Line 2 contains the path followed by the working directory, and line 3 contains the path to the file containing the icon that should be used, and the number of that icon in the file. In my case, I am using the first icon icluded in my executable, so the path is the same and the index is 0. Finally, I am not using a shortcut key, thus the null string, and I want the icon to replace any other icon of the same name found in that folder, so that the icon will be updated with any subsequent installations.
Between this and the help files, you should have averything you need. Good luck.