Access Denied

Ashish Pancholi

New member
Local time
11:35 AM
Messages
2
When any USER ( logged IN with any user Account) installed our setup file using option "Installed Only for Me", executable has been installed in C:\Program Files (x86), with one text file say "init.property".

Installer sets USER_DIR and TEMP path in this text file and we usually read "init.property" file, when user used to run our application. We keep related user data over USER_DIR and we keep LOGS over TEMP path.

The issue is when our program is going to read "init.property" it has "Access Denied" and our program would not get right path to download user related data i.e. over USER_DIR.

How can we read "init.property" logged IN with any user Account because user has no privilege to access file in C:\Program Files (x86) ? Please suggest me what is the standard criteria in such cases ?
 

My Computer

OS
Window 7 Professional 64 bit
Don't store anything in "Program Files" when the user does "Install only for me" The "AppData" folder exists for this reason.
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Alienware Aurora ALX R4
OS
Windows 10 Pro (x64)
CPU
Intel Core i7-3930K (3.2GHz - 4.5GHz)
Motherboard
Alienware Aurora-R4 x79
Memory
4x Samsung 4GB PC3-12800 DDR3 (16GB 1600MHz)
Graphics Card(s)
Nvidia Geforce GTX 690
Sound Card
SteelSeries Siberia Elite
Monitor(s) Displays
Dell UltraSharp U3011
Screen Resolution
2560x1600
Hard Drives
Samsung 850 Pro 256 GB, Seagate 1TB Desktop Hybrid HDD, 2x Western Digital 4TB Green HDD
PSU
875W Some Dell PSU <.<
Case
Alienware Aurora ALX
Cooling
Custom Liquid Cooling (EK CPU & GPU blocks) dual EK 480RAD
Keyboard
Logitech G710+ Mechanical
Mouse
Logitech G700s
Internet Speed
Verizon Fios (50 mbps average)
Other Info
Server: Intel NUC D54250WYK: i5-4250U, 16GB, 256 GB mSATA, Windows Server 2012 R2
Thanks for the reply. Can you suggest where else we can allow to install executable other then "Program Files" ? Setup files always used to installed software executable in "Program Files" this is standard follow by all setup files. If user has no privilege to access "Program Files" in windows 7 then where we allow to installed executable ? Do we need to restrict user that he/she has no privilege? What standard criteria that has been followed by all vendors ?
 

My Computer

OS
Window 7 Professional 64 bit
You can install and run software any where the user has permissions to do so.
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Alienware Aurora ALX R4
OS
Windows 10 Pro (x64)
CPU
Intel Core i7-3930K (3.2GHz - 4.5GHz)
Motherboard
Alienware Aurora-R4 x79
Memory
4x Samsung 4GB PC3-12800 DDR3 (16GB 1600MHz)
Graphics Card(s)
Nvidia Geforce GTX 690
Sound Card
SteelSeries Siberia Elite
Monitor(s) Displays
Dell UltraSharp U3011
Screen Resolution
2560x1600
Hard Drives
Samsung 850 Pro 256 GB, Seagate 1TB Desktop Hybrid HDD, 2x Western Digital 4TB Green HDD
PSU
875W Some Dell PSU <.<
Case
Alienware Aurora ALX
Cooling
Custom Liquid Cooling (EK CPU & GPU blocks) dual EK 480RAD
Keyboard
Logitech G710+ Mechanical
Mouse
Logitech G700s
Internet Speed
Verizon Fios (50 mbps average)
Other Info
Server: Intel NUC D54250WYK: i5-4250U, 16GB, 256 GB mSATA, Windows Server 2012 R2
Back
Top