Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8497251
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T00:04:51+00:00 2026-06-11T00:04:51+00:00

I have modified some folder icons and I am including these folders in my

  • 0

I have modified some folder icons and I am including these folders in my InnoSetup installation. The problem is that once my program is installed, my customized folder icons are gone and what I see is just the oldfashioned “yellow” Windows folder icons.

EDIT

The answer was provided by the user TLama. It worked in my computer at first. I had some problems with different Windows versions at different computers. I will write now my working code after having tried sucessfully in several computer systems.

Icons used:

  • Ico1.ico
  • Ico2.ico
  • Ico3.ico

Modified folder icons:

  • c:\FDR1
  • c:\FDR2\FDR3

Step 1:

I have used the software “Folder icon changer” to have my icon in place for the three folders I wanted changed. You may use any other free software too. After execution, a desktop.ini appeared in each of the newly changed icon folders. For instance, the FDR1 has the content:

[.Shellclassinfo]
Iconfile=F:\Resource\Icons\Ico1.ico
Iconindex= 0

Step 2:

I have then erased the path above and saved “Ico1.ico” into the directory “c:\FDR1” I had just modified :

[.Shellclassinfo]
Iconfile=Ico1.ico
Iconindex= 0

I did the same for the Ico2.ico (inside the FDR2) and the Ico3.ico (inside the FDR3). The “Icon1, 2 and 3” and “desktop.ini” file attributes were all set to hidden. But, it is important NOT to set the icon properties to “read only”.

Step 3:

Inside Inno repeat TLama’s suggestion.

#define OutputDirectory_1 "c:\FDR1"
#define OutputDirectory_2 "c:\FDR2"
#define OutputDirectory_3 "c:\FDR2\FDR3"

[Dirs]
Name: {#OutputDirectory_1}; Attribs: system
Name: {#OutputDirectory_2}; Attribs: system
Name: {#OutputDirectory_3}; Attribs: system

[Files]
Source: "c:\FDR1\Ico1.ico"; DestDir: {#OutputDirectory_1}; Attribs: hidden system
Source: "c:\FDR2\Ico2.ico"; DestDir: {#OutputDirectory_2}; Attribs: hidden system
Source: "c:\FDR2\FDR3\Ico3.ico"; DestDir: {#OutputDirectory_3}; Attribs: hidden system

Step 4:

Compile !

Now, your folder icons will permanently work in any computer and system !!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T00:04:53+00:00Added an answer on June 11, 2026 at 12:04 am

    Your target folder should have either read only or system attribute configured. To create such folder you can use, like Miral mentioned, [Dirs] section and its attributes. This will have an advantage, that after you run the installation process, InnoSetup automatically notifies Shell about changes, so the folder icon will be changed without an extra notification function call.

    ; this is a defined preprocessor variable used to simplify the script
    ; management; this variable contains the path, where the icon will be 
    ; applied (it's used twice in a script, so it's easier to manage that
    ; from one place)
    #define OutputDirectory "d:\TargetDirectory"
    
    [Setup]
    AppName=My Program
    AppVersion=1.5
    DefaultDirName={pf}\My Program
    OutputDir=userdocs:Inno Setup Examples Output
    
    [Files]
    ; here you need to use "hidden" and "system" values in Attribs parameter
    ; to include into the Desktop.ini file hidden and system file attributes
    Source: "Desktop.ini"; DestDir: {#OutputDirectory}; Attribs: hidden system
    
    [Dirs]
    ; here you need to use either "readonly" or "system" value in Attribs parameter
    ; to setup to the output directory read only or system file directory attribute
    Name: {#OutputDirectory}; Attribs: readonly
    

    Important:

    Don’t forget that you have to compile the script using CTRL + F9 before running, whenever you change the content of your input Desktop.ini file as well as when you change the value of the preprocessor path variable (I’ve been missing this few times and then wondering about the setup package content).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a folder which contains some files that I want to deleted after
I have modified some files present in various folders in my webroot. This was
I have modified and edited some project files in a folder targeted at a
I create a working repository in HG. And I have modified some files. How
I have modified a working Windows service that had always been starting beforehand. After
I have local folder that is branch from formal_versions. My workflow is: Mkae changes
I have developed a HTTP resource, that uses the Last-Modified header, and it should
I wrote some code to tackle a work-related problem. The idea is that the
I have a vs.net project, and after some refactoring, have modified the name of
I've got an ASP.net project with a folder containing some dll's. I have referenced

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.