title: How do I get my Inno Setup custom icon to consistently display in Windows like it does in programs not included in Windows?
body: <p>I have created several setup aka installer exe files using Inno Setup. When I have done my testing I have created my installer files on my Desktop. Most of my icons display properly but it appears a bit sporadic when displaying the icon on the setup installer file. When I use a program not included in Windows to open a folder that contains the setup installer files it consistently displays the icons. However when I do the same thing using a program included in Windows they do not consistently display. The images below are two examples.</p>
  
  <p><a href="https://i.stack.imgur.com/k7ZWv.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/k7ZWv.jpg" alt=""></a></p>
  
  <p>The window on the left is Inno Setup. You can see that all the icons display as expected. I also tried this with another program that I have since deleted and the three icons displayed. The window on the right is WordPad. Only one of the icons displays for the Basic Cubic Puzzles Setup file.</p>
  
  <p><a href="https://i.stack.imgur.com/d00yw.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/d00yw.jpg" alt="enter image description here"></a></p>
  
  <p>This image shows the three setup files on my desktop. As you see none of them show the custom icons that consistently appear in programs that are not included in Windows.</p>
  
  <p>Here is my code in my iss file.</p>
  
  <pre><code>#define MyIconFile "ThePathForMyCustomIcon"
  
  [Setup]
  
  SetupIconFile={#MyIconFile}   
  
  [Icons]
  
  Name: "{group}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"; IconFilename: "{#MyIconFile}"
  Name: "{group}\{cm:ProgramOnTheWeb,{#MyAppName}}"; Filename: "{#MyAppURL}"; IconFilename: "{#MyIconFile}"
  Name: "{group}\{cm:UninstallProgram,{#MyAppName}}"; Filename: "{uninstallexe}"; IconFilename: "{#MyIconFile}"
  Name: "{commonprograms}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"; IconFilename: "{#MyIconFile}"
  Name: "{commondesktop}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"; Tasks: desktopicon; IconFilename: "{#MyIconFile}"
  Name: "{userappdata}\Microsoft\Internet Explorer\Quick Launch\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"; Tasks: quicklaunchicon; IconFilename: "{#MyIconFile}"
  </code></pre>
  
  <p>Is there a Inno Setup parameter that I can set specifically for Windows to get my custom icon to consistently display when I use programs within Windows?</p>
  
  <p>This is the first time I have used Windows in almost ten years. I purchased a Windows 10 touchscreen laptop not quite two weeks ago. My last experience with Windows was with XP. I have already done a Disk Cleanup before my last attempt at recreating my setup files. I'm not sure what the next step is.</p>