|
|
#1 |
|
Junior Member
Join Date: Oct 2005
Posts: 1
|
changing the default icon for a directory
I am trying to create a directory and use a different icon for the folder - is this possible?
This is the code for creating the directory - what would be the next step? CreateDirectory "$Desktop\Primary Applications" |
|
|
|
|
|
#2 |
|
M.I.A.
[NSIS Dev, Mod] Join Date: Oct 2001
Location: Israel
Posts: 11,343
|
If you create a file named Desktop.ini in the folder, you can put this in it to change the icon:
You can use WriteINIStr to write INI files. Note that this feature was not available on all Windows versions.code: NSIS FAQ | NSIS Home Page | Donate $ "I hear and I forget. I see and I remember. I do and I understand." -- Confucius |
|
|
|
|
|
#3 |
|
Moderator
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,449
|
it works on 98 and up (should work on 95+ie4 shellupdate)
just remember to make the desktop.ini file hidden+system+read-only and the folder should be read-only+system IntOp $PostCount $PostCount + 1 |
|
|
|
|
|
#4 |
|
Major Dude
|
this macro prepares any given folder to apply desktop.ini
i used it with success. code: call it that way: code: hand by comm@nder21 ---------- WiKi pages:CreateInternetShortcut|Enhanced FindWindow|Parse CSV-Data|Open/Close CD-Drive|Installer without Icon|Vista application compatibility |
|
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|