Bug in shortcuts on windows seven? - Change icon not working

Mark S

New member
Local time
2:02 AM
Messages
1
[Note: windows 7 ultimate 64 bits]

For example, when I click "change icon" in the firefox shortcut properties, I get the message "Windows can't find the file %programfiles%\Mozilla Firefox\firefox.exe.

I think this is because %programfiles% resolves to c:\program files and not to C:\Program Files (x86). The question is, what to do about it?
 

My Computer My Computer

At a glance

windows 7Intel Core 2 Duo E67504GBNVIDIA GeForce 8600GT
Computer Manufacturer/Model Number
Home Built
OS
windows 7
CPU
Intel Core 2 Duo E6750
Motherboard
Asus P5K
Memory
4GB
Graphics Card(s)
NVIDIA GeForce 8600GT
Sound Card
NA

My Computer My Computer

At a glance

64-bit Windows 11 Pro for WorkstationsIntel i7-8700K OC'd to 5 GHz64 GB (4x16GB) G.SKILL TridentZ RGB DDR4 3600...ASUS ROG-STRIX-GTX1080TI-O11G-GAMING
Computer type
PC/Desktop
Computer Manufacturer/Model Number
Self built custom
OS
64-bit Windows 11 Pro for Workstations
CPU
Intel i7-8700K OC'd to 5 GHz
Motherboard
ASUS ROG Maximus XI Formula Z390
Memory
64 GB (4x16GB) G.SKILL TridentZ RGB DDR4 3600 MHz
Graphics Card(s)
ASUS ROG-STRIX-GTX1080TI-O11G-GAMING
Sound Card
Integrated
Monitor(s) Displays
2 x Samsung Odyssey G7 27"
Screen Resolution
2560x1440
Hard Drives
1TB Samsung 990 PRO M.2,
4TB Samsung 990 PRO PRO M.2,
TerraMaster F8 SSD Plus NAS
PSU
Seasonic Prime Titanium 850W
Case
Thermaltake Core P3
Cooling
Corsair Hydro H115i
Keyboard
Logitech wireless K800
Mouse
Logitech MX Master 4
Internet Speed
2 Gb/s Download and 100 Mb/s Upload
Antivirus
Malwarebyte Anti-Malware Premium
Browser
Google Chrome
Other Info
Logitech Z625 speaker system,
Logitech BRIO 4K Pro webcam,
HP Color LaserJet Pro MFP M477fdn,
APC SMART-UPS RT 1000 XL - SURT1000XLI,
Galaxy S23 Plus phone
Same problem here

This problem seems common as a a simple Google for "Change Icon Windows 64 can't find the file %ProgramFiles%" reveals. Alas a not a single solution have I found yet., and Mark alas no, it is not possible to browse to the correct location of the exe file and select the correct icon and have it stick. That is, I can set the correct icon like this but it's lost immediately and the icon in the Windows task bar is again the generic "not found" icon.

This happens with only one of the programs I'm using of a great many, Sage ACT! but it isn't per se the fault of ACT! given how many others find this happening with other software. It does of course appear to be related to particular thing many software writers have done in past that stopped working on Windows 7 64 bit.

What is clear is that my exe is under C:\Program Files (x86) and whenever I set it to the exe there, and close when I try again I see it's pointing to the same path under C:\Program Files.

Something is awry in the expansion of %AppFolder% according to kraigyb here:

Wrong icon path for shortcuts in 64bit os

and I am guessing individual software vendors can fix it, or Microsoft can fix it with a Windows update but in the mean time is there a work around to help afflicted souls?
 

My Computer My Computer

At a glance

Professional x64
OS
Professional x64
Twitchy

Did you reboot your PC after changing the icon?

Occasionally I have experienced something similar to the problem you describe.

I have changed an icon and it appears in the "Properties" window, but the actual icon doesn't change.
Re-checking the "Properties" window, the correct icon is shown.
After a reboot, the icon appears correctly (on my PC).

Example
I have created a batch file that points to a VB script.
The script creates a selection menu for my Firefox Profiles.
It also runs CCleaner when I close Firefox (before returning to the menu).
FF_Batch_File.png
Attaching a shortcut to the Taskbar was a battle.
When I added my custom icon, it wouldn't appear on the Taskbar.
After a reboot it started behaving itself.

Have you tried the "Icon Cache - Rebuild" tutorial?
http://www.sevenforums.com/tutorials/49819-icon-cache-rebuild.html

For example, when I click "change icon" in the firefox shortcut properties, I get the message "Windows can't find the file %programfiles%\Mozilla Firefox\firefox.exe.

I think this is because %programfiles% resolves to c:\program files and not to C:\Program Files (x86). The question is, what to do about it?

Have you tried reinstalling Firefox?
On my PC, the path shows correctly and the Firefox icon set appears.
 
Last edited:

My Computer My Computer

At a glance

W7 Ultimate SP1, LM19.2 MATE, W10 Home 1703, ...AMD Phenom II x6 1100T, 3.3 GHz12GB DDR3 1333 G-Skill (4GB x 2), G-Skill (2G...NVIDIA GeForce GTX 660
Computer type
PC/Desktop
Computer Manufacturer/Model Number
n/a
OS
W7 Ultimate SP1, LM19.2 MATE, W10 Home 1703, W10 Pro 1703 VM, #All 64 bit
CPU
AMD Phenom II x6 1100T, 3.3 GHz
Motherboard
ASUS M4A88T-M/USB3 (AM3)
Memory
12GB DDR3 1333 G-Skill (4GB x 2), G-Skill (2GB x 2)
Graphics Card(s)
NVIDIA GeForce GTX 660
Sound Card
Realtek?
Monitor(s) Displays
Samsung S23B350
Screen Resolution
1920x1080
Hard Drives
WD Green 2TB (SATA), WD Green 3TB (SATA), WD Blue 4TB (SATA), WD Blue 6TB (SATA)
PSU
Cooler Master
Case
Antec GX300 Tower
Cooling
3x Antec TRICOOL 120mm Fans
Mouse
Wired Optical
Internet Speed
DSL
Antivirus
Avast
Browser
Pale Moon (64 bit)
Other Info
2018-12-27 Upgraded HDDs
2015-12-10 Upgraded case, graphics card, storage
2015-08-15 Upgraded motherboard & RAM
2015-07-15 Upgraded LM17.1 to LM17.2
Back
Top