Solved Rights issue within the Program Files / Program Files (x86) folders


Jose Hidalgo

Member
Local time
11:38 AM
Posts
78
OS
Windows 11
Hi everybody. I should start by stating that I'm the Admin of my own home computer.

I'm currently encountering the following issue with several apps, if I run them from within the Program Files / Program Files (x86) folders.

Example 1 : foobar2000

I have several portable installations of foobar2000.​
On my old Win 7 rig, I could run such installations directly from within the Program Files (x86) folder.​
On my new Win 11 rig, there are issues:​
  • If I run the app normally, I get this error on startup: "Cannot access configuration folder: access denied". And the app doesn't start.
  • If I run the app as Admin, it starts normally. But being elevated, drag & drop doesn't work anymore (I can't drag & drop songs on the player which is of course annoying)
If I take the foobar2000 folder out of the Program Files (x86) folder (for example on the Desktop), everything runs normally, no more errors on startup.

Example 2 : JDownloader (Java app)
On my old Win 7 rig, I could run the app directly from within the Program Files (x86) folder​
On my new Win 11 rig, the app launches but it's buggy and unusable (graphic bugs, non-working tabs, updates don't work, etc)​
If I take the JDownloader out of the Program Files (x86) folder (for example on the Desktop), everything runs normally.

I guess other apps have similar errors, I'm just unaware of them for the moment.
These issues are most certainly rights issues from within the Program Files / Program Files (x86) folders.

For the record, about foobar2000 and JDownloader, I have just copied their folders directly from my old Win 7 rig, in order to keep all settings. There was no installation process, they are portable apps.

Is there an easy way to modify the rights (of these apps and maybe other apps) within the Program Files and Program Files (x86) folders, in order to allow these apps to run normally, and without compromising the security of my rig? What would you do? Should I modify the rights of these apps folders, or should I modify the rights of the Program Files and Program Files (x86) folders directly?

I'm not good at all with right issues, so if somebody could walk me through this, it would be most appreciated.
Here's what the Security tab is currently showing for foobar2000 and JDownloader folders :
  • All app packages : Read and Execute, Show folder contents, Read
  • All restricted app packages : Read and Execute, Show folder contents, Read
  • Creator and Owner : Special authorizations (and nothing else, everytying else is unchecked)
  • System : Full Control (everything checked except Special authorizations)
  • Admins : Full Control (everything checked except Special authorizations)
  • Users : Read and Execute, Show folder contents, Read
  • TrustedInstaller : Show folder contents, Special authorizations (and nothing else)

Thanks in advance! :-)
 

My Computer

System One

  • OS
    Windows 11
    Computer type
    PC/Desktop
    Manufacturer/Model
    Personal build
    CPU
    AMD Ryzen 7700
    Motherboard
    Asus TUF Gaming B650M-Plus WiFi
    Memory
    32 GB (2x16) Corsair Dominator DDR5 RGB 6000 MT/s
    Graphics Card(s)
    Not yet
    Sound Card
    No
    Monitor(s) Displays
    Philips BDM3270QP2
    Screen Resolution
    2560x1440
    Hard Drives
    2 TB Samsung 990 Pro
    12 TB Western Digital Red (WD120EFAX, SATA, 5400 rpm)
    PSU
    850W Corsair RM850e (2023, ATX 3.0)
    Case
    Corsair Crystal 280X RGB White
    Cooling
    Aerocool Mirage L240 AIO
    Keyboard
    Corsair K55
    Mouse
    Vertical mouse from AliExpress
    Internet Speed
    Fiber
    Browser
    Firefox, Brave, Tor
    Antivirus
    Windows Defender
    Other Info
    1000VA UPS (Nitram PB1000 LCD) for PC + Screen + Speakers
EDIT :
I understand that maybe protected folders like Program Files and Program Files (x86) aren't the best location for portable apps.
What would be the right location then? AppData\Local\Programs? Can somebody confirm?

Not very user-friendly I guess, given that AppData is supposed to be invisible.
Plus I have to admit that I hate having my apps distributed among different folders.
But if that's the way Windows works... 😕
 

My Computer

System One

  • OS
    Windows 11
    Computer type
    PC/Desktop
    Manufacturer/Model
    Personal build
    CPU
    AMD Ryzen 7700
    Motherboard
    Asus TUF Gaming B650M-Plus WiFi
    Memory
    32 GB (2x16) Corsair Dominator DDR5 RGB 6000 MT/s
    Graphics Card(s)
    Not yet
    Sound Card
    No
    Monitor(s) Displays
    Philips BDM3270QP2
    Screen Resolution
    2560x1440
    Hard Drives
    2 TB Samsung 990 Pro
    12 TB Western Digital Red (WD120EFAX, SATA, 5400 rpm)
    PSU
    850W Corsair RM850e (2023, ATX 3.0)
    Case
    Corsair Crystal 280X RGB White
    Cooling
    Aerocool Mirage L240 AIO
    Keyboard
    Corsair K55
    Mouse
    Vertical mouse from AliExpress
    Internet Speed
    Fiber
    Browser
    Firefox, Brave, Tor
    Antivirus
    Windows Defender
    Other Info
    1000VA UPS (Nitram PB1000 LCD) for PC + Screen + Speakers
EDIT :
I understand that maybe protected folders like Program Files and Program Files (x86) aren't the best location for portable apps.
What would be the right location then? AppData\Local\Programs? Can somebody confirm?

Not very user-friendly I guess, given that AppData is supposed to be invisible.
Plus I have to admit that I hate having my apps distributed among different folders.
But if that's the way Windows works... 😕
I have the portable version of HWInfo in my Program Files folder, and it works fine
 

My Computer

System One

  • OS
    Windows 11 Pro 23H2 (RP channel)
    Computer type
    PC/Desktop
    Manufacturer/Model
    Gigabyte
    CPU
    AMD Ryzen 5900X 12-core
    Motherboard
    X570 Aorus Xtreme
    Memory
    64GB Corsair Platinum RGB 3600MHz CL16
    Graphics Card(s)
    MSI Suprim X 3080 Ti
    Sound Card
    Soundblaster AE-5 Plus
    Monitor(s) Displays
    ASUS TUF Gaming VG289Q
    Screen Resolution
    3840x2160
    Hard Drives
    Samsung 990 Pro 2TB
    Samsung 980 Pro 2TB
    Samsung 970 Evo Plus 1TB
    Samsung 870 Evo 4TB
    Samsung T7 Touch 1TB
    PSU
    Asus ROG Strix 1000W
    Case
    Corsair D750 Airflow
    Cooling
    Noctua NH-D15S
    Keyboard
    Asus ROG Flare
    Mouse
    Logitech G903 with PowerPlay charger
    Internet Speed
    500Mb/sec
    Browser
    Microsoft Edge
    Antivirus
    Windows Defender
EDIT :
I understand that maybe protected folders like Program Files and Program Files (x86) aren't the best location for portable apps.
What would be the right location then? AppData\Local\Programs? Can somebody confirm?

Not very user-friendly I guess, given that AppData is supposed to be invisible.
Plus I have to admit that I hate having my apps distributed among different folders.
But if that's the way Windows works... 😕
One needs to differentiate between user configuration of any given program and the programs themselves.
For convenience, I would recommend designating a partition for portable programs or apps.
 

My Computers

System One System Two

  • OS
    Win11 All /Debian/Arch
    Computer type
    Laptop
    Manufacturer/Model
    ASUSTeK COMPUTER INC. TUF Gaming FX705GM
    CPU
    2.20 gigahertz Intel i7-8750H Hyper-threaded 12 cores
    Motherboard
    ASUSTeK COMPUTER INC. FX705GM 1.0
    Memory
    24428 Megabytes
    Graphics Card(s)
    Intel(R) UHD Graphics 630 / NVIDIA GeForce GTX 1060
    Sound Card
    Intel(R) Display Audio / Realtek(R) Audio
    Monitor(s) Displays
    Integrated Monitor (17.3"vis)
    Screen Resolution
    FHD 1920X1080 16:9
    Hard Drives
    2 SSD SATA/NVM Express 1.3
    WDS500G2B0A-00SM50 500.1 GB
    WDCSDAPNUW-1002 256 GB
    PSU
    19V DC 6.32 A 120 W
    Cooling
    Dual Fans
    Mouse
    MS Bluetooth
    Internet Speed
    Fiber 1GB Cox -us & ADSL Bouygues -fr
    Browser
    Edge Canary- Firefox Nightly
    Antivirus
    Windows Defender
    Other Info
    VMs of Windows 11 stable/Beta/Dev/Canary
    VM of XeroLinux- Arch based & Debian 12
  • Operating System
    Windows 11 Insider Canary
    Computer type
    Laptop
    Manufacturer/Model
    ASUS X751BP
    CPU
    AMD Dual Core A6-9220
    Motherboard
    ASUS
    Memory
    8 GB
    Graphics card(s)
    AMD Radeon R5 M420
    Sound Card
    Realtek
    Monitor(s) Displays
    17.3
    Screen Resolution
    1600X900 16:9
    Hard Drives
    1TB 5400RPM
Portable Apps can work fine when stored on the internal drive but I keep mine on a USB Thumb drive for the named purpose, Portable. For the 'old-timers' I even have Claris Works 5 from '97 working without having to install it.
 

My Computers

System One System Two

  • OS
    Win11 Pro RTM
    Computer type
    Laptop
    Manufacturer/Model
    Dell Vostro 3400
    CPU
    Intel Core i5 11th Gen. 2.40GHz
    Memory
    12GB
    Hard Drives
    256GB SSD NVMe
  • Operating System
    Windows 11 Pro RTM x64
    Computer type
    PC/Desktop
    Manufacturer/Model
    Dell Vostro 5890
    CPU
    Intel Core i5 10th Gen. 2.90GHz
    Memory
    16GB
    Graphics card(s)
    Onboard, no VGA, using a DisplayPort-to-VGA adapter
    Monitor(s) Displays
    24" Dell
    Hard Drives
    512GB SSD NVMe, 2TB WDC HDD
    Browser
    Firefox, Edge
    Antivirus
    Windows Defender/Microsoft Security
I have NEVER heard of anyone trying to run portable apps from Program files and Program Files (x86). These folders store data for INSTALLED Programs which also populate non-user specific data in Programdata, user specific data in the user appdata folder, and all the necessary registry entries to run the apps as well as user rights to the apps.
You can pin a portable app's executable to the start menu if that helps. I have all my portable apps in one folder on a secondary drive with a shortcut to the folder on my desktop as well as in my poor man's quick access on my taskbar.
 

My Computers

System One System Two

  • OS
    Windows 11 Pro 23H2 22631.3447
    Computer type
    PC/Desktop
    Manufacturer/Model
    Dell Optiplex 7080
    CPU
    i9-10900 10 core 20 threads
    Motherboard
    DELL 0J37VM
    Memory
    32 gb
    Graphics Card(s)
    none-Intel UHD Graphics 630
    Sound Card
    Integrated Realtek
    Monitor(s) Displays
    Benq 27
    Screen Resolution
    2560x1440
    Hard Drives
    1tb Solidigm m.2 +256gb ssd+512 gb usb m.2 sata
    PSU
    500w
    Case
    MT
    Cooling
    Dell Premium
    Keyboard
    Logitech wired
    Mouse
    Logitech wireless
    Internet Speed
    so slow I'm too embarrassed to tell
    Browser
    Firefox
    Antivirus
    Defender+MWB Premium
  • Operating System
    Windows 10 Pro 22H2 19045.3930
    Computer type
    PC/Desktop
    Manufacturer/Model
    Dell Optiplex 9020
    CPU
    i7-4770
    Memory
    24 gb
    Monitor(s) Displays
    Benq 27
    Screen Resolution
    2560x1440
    Hard Drives
    256 gb Toshiba BG4 M.2 NVE SSB and 1 tb hdd
    PSU
    500w
    Case
    MT
    Cooling
    Dell factory
    Mouse
    Logitech wireless
    Keyboard
    Logitech wired
    Internet Speed
    still not telling
    Browser
    Firefox
    Antivirus
    Defender+MWB Premium
I made a special folder in the root of the system partition and named it: Program Files Portable.
That's where I 'install' all my portable programs.
So it's situated directly below Program Files and Program Files (x86).

A copy of that folder I made to my document partition (which is automatically backupped every day).
 

My Computer

System One

  • OS
    Windows 11 Pro 23H2 22631.3447
    Computer type
    PC/Desktop
    Manufacturer/Model
    Build by vendor to my specs
    CPU
    AMD Ryzen 7 5700G
    Motherboard
    MSI PRO B550M-P Gen3
    Memory
    Kingston FURY Beast 2x16GB DIMM DDR4 2666 CL16
    Graphics Card(s)
    MSI GeForce GT 730 2GB LP V1
    Sound Card
    Creative Sound Blaster Audigy FX
    Monitor(s) Displays
    Samsung S24E450F 24"
    Screen Resolution
    1920 x 1080
    Hard Drives
    1. SSD Kingston NV2 - 500 GB
    2. SSD-SATA Crucial MX500-2TB
    PSU
    Corsair CV650W
    Case
    Cooler Master Silencio S400
    Cooling
    Cooler Master Hyper H412R
    Keyboard
    Cherry Stream (wired, scissor keys)
    Mouse
    Asus WT465 (wireless)
    Internet Speed
    70 Mbps down / 80 Mbps up
    Browser
    Firefox 115.7.0 ESR
    Antivirus
    F-secure via Internet provider
    Other Info
    Oracle VirtualBox 7 for testing software on Win 10 or 11
Thanks for your replies. Problem solved.
I don't like Microsoft's way of handling things, but it is what it is. 🤷‍♂️

For the record, some programs are portable but don't say it. They may have an installer, and then all the installer does is copy files inside the Program Files folder, and there are no other files involved.

It's hard to know for sure which programs:
  • NEED to be inside Program Files (or Program Files (x86)) folder,
  • CAN be inside one of those folders but can also be elsewhere,
  • CAN NOT be inside one of those folders.
 

My Computer

System One

  • OS
    Windows 11
    Computer type
    PC/Desktop
    Manufacturer/Model
    Personal build
    CPU
    AMD Ryzen 7700
    Motherboard
    Asus TUF Gaming B650M-Plus WiFi
    Memory
    32 GB (2x16) Corsair Dominator DDR5 RGB 6000 MT/s
    Graphics Card(s)
    Not yet
    Sound Card
    No
    Monitor(s) Displays
    Philips BDM3270QP2
    Screen Resolution
    2560x1440
    Hard Drives
    2 TB Samsung 990 Pro
    12 TB Western Digital Red (WD120EFAX, SATA, 5400 rpm)
    PSU
    850W Corsair RM850e (2023, ATX 3.0)
    Case
    Corsair Crystal 280X RGB White
    Cooling
    Aerocool Mirage L240 AIO
    Keyboard
    Corsair K55
    Mouse
    Vertical mouse from AliExpress
    Internet Speed
    Fiber
    Browser
    Firefox, Brave, Tor
    Antivirus
    Windows Defender
    Other Info
    1000VA UPS (Nitram PB1000 LCD) for PC + Screen + Speakers
They may have an installer, and then all the installer does is copy files inside the Program Files folder...
In that case I consider the programs as installer versions, because Windows marks them as installed and I can de-install them by the built-in Windows uninstall app (or by Revo).
They will have an installer extension .exe or .msi (or others if modern apps).
I would not even know if such a program just copies the files or does more.

Portable programs I only consider as such if they come (mostly with more than just one file) within a ZIP file and I only need to unpack them.

PS. In a lot of programs that have to be installed, you can choose in what folder they have to be installed. In that case you could install the program in a totally different folder from just Program Files or Program Files (x86). Could even be on a different partition.
 

My Computer

System One

  • OS
    Windows 11 Pro 23H2 22631.3447
    Computer type
    PC/Desktop
    Manufacturer/Model
    Build by vendor to my specs
    CPU
    AMD Ryzen 7 5700G
    Motherboard
    MSI PRO B550M-P Gen3
    Memory
    Kingston FURY Beast 2x16GB DIMM DDR4 2666 CL16
    Graphics Card(s)
    MSI GeForce GT 730 2GB LP V1
    Sound Card
    Creative Sound Blaster Audigy FX
    Monitor(s) Displays
    Samsung S24E450F 24"
    Screen Resolution
    1920 x 1080
    Hard Drives
    1. SSD Kingston NV2 - 500 GB
    2. SSD-SATA Crucial MX500-2TB
    PSU
    Corsair CV650W
    Case
    Cooler Master Silencio S400
    Cooling
    Cooler Master Hyper H412R
    Keyboard
    Cherry Stream (wired, scissor keys)
    Mouse
    Asus WT465 (wireless)
    Internet Speed
    70 Mbps down / 80 Mbps up
    Browser
    Firefox 115.7.0 ESR
    Antivirus
    F-secure via Internet provider
    Other Info
    Oracle VirtualBox 7 for testing software on Win 10 or 11
General good approach: Make yourself a folder off the root of C: and name it something like "Programs" or "Portable" or "Tools". Put your portable programs there. Any configuration file will then stay with the program.

If you put portable programs in Program Files (or Program Files (x86)) their config files should normally still work, but will get redirected to the localappdata virtualstore folder.
 

My Computer

System One

  • OS
    Windows 10/11
    Computer type
    Laptop
    Manufacturer/Model
    Acer
If I take the foobar2000 folder out of the Program Files (x86) folder (for example on the Desktop), everything runs normally, no more errors on startup
Jose,

You ought to be able to stick portable apps wherever you want so I suggest you move them out of that problematic folder permanently.
All mine are within C:\Tools, a folder I created with the same protections against changes as Program files etc. My scripts are all in there as well.
Set up my Tools folder ditty - TenForums

Despite being within that protected folder, I can run apps & scripts within it as a Standard user. The protection applies to changes not to mere access.

Denis
 

My Computer

System One

  • OS
    Windows 11 Home x64 Version 23H2 Build 22631.3447
I have just copied their folders directly from my old Win 7 rig
I have seen copying folders from other OSes cause weird combinations of Permissions and suppose that this might be at the heart of your problems.
I didn't happen with every folder but did with some.
- Moving rather than copying generally caused more problems because Windows tries to retain existing Permissions with a moved folder.
- When copying, you can expect Windows to apply the Permissions of the destination folder.
It might have been folders that had originally had explicit Permissions applied that were problematic.
If your original Permissions included references to user account names then they might also lead to problems.
I learnt to avoid problems by copying across using RoboCopy and setting its parameters to avoid copying security properties.
Change Permissions of File, Folder, Drive, or Registry Keys - TenForums-ElevenForumTutorials


Best of luck,
Denis
 

My Computer

System One

  • OS
    Windows 11 Home x64 Version 23H2 Build 22631.3447
I understand that maybe protected folders like Program Files and Program Files (x86) aren't the best location for portable apps.
What would be the right location then? AppData\Local\Programs?
Anywhere but those two Program Files folders. I keep all mine in a 'C:\Portable Apps' folder.
 

My Computers

System One System Two

  • OS
    Windows 11 Home
    Computer type
    Laptop
    Manufacturer/Model
    Acer Aspire 3 A315-23
    CPU
    AMD Athlon Silver 3050U
    Memory
    8GB
    Graphics Card(s)
    Radeon Graphics
    Monitor(s) Displays
    laptop screen
    Screen Resolution
    1366x768 native resolution, up to 2560x1440 with Radeon Virtual Super Resolution
    Hard Drives
    1TB Samsung EVO 870 SSD
    Internet Speed
    50 Mbps
    Browser
    Edge, Firefox
    Antivirus
    Defender
    Other Info
    fully 'Windows 11 ready' laptop. Windows 10 C: partition migrated from my old unsupported 'main machine' then upgraded to 11. A test migration ran Insider builds for 2 months. When 11 was released on 5th October it was re-imaged back to 10 and was offered the upgrade in Windows Update on 20th October. Windows Update offered the 22H2 Feature Update on 20th September 2022. It got the 23H2 Feature Update on 4th November 2023 through Windows Update.

    My SYSTEM THREE is a Dell Latitude 5410, i7-10610U, 32GB RAM, 512GB NVMe ssd, supported device running Windows 11 Pro (and all my Hyper-V VMs).

    My SYSTEM FOUR is a 2-in-1 convertible Lenovo Yoga 11e 20DA, Celeron N2930, 8GB RAM, 256GB ssd. Unsupported device: currently running Win10 Pro, plus Win11 Pro RTM and Insider Beta as native boot vhdx.

    My SYSTEM FIVE is a Dell Latitude 3190 2-in-1, Pentium Silver N5030, 4GB RAM, 512GB NVMe ssd, supported device running Windows 11 Pro, plus the Insider Beta, Dev, and Canary builds as a native boot .vhdx.
  • Operating System
    Windows 11 Pro
    Computer type
    Laptop
    Manufacturer/Model
    Dell Lattitude E4310
    CPU
    Intel® Core™ i5-520M
    Motherboard
    0T6M8G
    Memory
    8GB
    Graphics card(s)
    (integrated graphics) Intel HD Graphics
    Screen Resolution
    1366x768
    Hard Drives
    500GB Crucial MX500 SSD
    Browser
    Firefox, Edge
    Antivirus
    Defender
    Other Info
    unsupported machine: Legacy bios, MBR, TPM 1.2, upgraded from W10 to W11 using W10/W11 hybrid install media workaround. In-place upgrade to 22H2 using ISO and a workaround. Feature Update to 23H2 by manually installing the Enablement Package. Also running Insider Beta, Dev, and Canary builds as a native boot .vhdx.

    My SYSTEM THREE is a Dell Latitude 5410, i7-10610U, 32GB RAM, 512GB NVMe ssd, supported device running Windows 11 Pro (and all my Hyper-V VMs).

    My SYSTEM FOUR is a 2-in-1 convertible Lenovo Yoga 11e 20DA, Celeron N2930, 8GB RAM, 256GB ssd. Unsupported device: currently running Win10 Pro, plus Win11 Pro RTM and Insider Beta as native boot vhdx.

    My SYSTEM FIVE is a Dell Latitude 3190 2-in-1, Pentium Silver N5030, 4GB RAM, 512GB NVMe ssd, supported device running Windows 11 Pro, plus the Insider Beta, Dev, and Canary builds as a native boot .vhdx.

Latest Support Threads

Back
Top Bottom