Hello all,
My question for NSIS scripting is:
Is there a way to specify the icon for a folder that you create with CreateDirectory (via an NSIS command or a system registry key or some kind of system command)? My desired result is similar to right-clicking on a folder icon in Windows XP, clicking "Properties", going to the "Customize" tab, and then clicking the "Change Icon..." button. I only want to change only the folder icon for the installed application, not other ones.
I have got icons everywhere I want them (via CreateShortcut and Icon and UninstallIcon), I just can't figure this one out.
Any help would be appreciated.
Change Folder Icon --- Not Shortcut or File Icon
3 posts
You need to create a desktop.ini file within the folder you want to have a custom icon for (it's best to give this file the SYSTEM attribute). Look at this MSDN page.
EDIT: You must give this file the SYSTEM and HIDDEN attributes.
EDIT: You must give this file the SYSTEM and HIDDEN attributes.
Thanks! This is exactly the answer I was looking for.
I also learned about the purpose of the Folder.htt file from this web page. I didn't know customizing the look of a folder had this many options...
I also learned about the purpose of the Folder.htt file from this web page. I didn't know customizing the look of a folder had this many options...