Why does my application requires admin priviliges when placed in C:\\Program Files on windows 10 but not on windows 7?

自古美人都是妖i 提交于 2019-12-02 01:37:26

Basically, the programs files directory is always protected.

You should check the WIN 7 users privileges and the user's UAC settings.

Meanwhile....


You might want to reconsider where to store your data.

There is a SO post about that here

To put it straight, ProgramData contains application data that is not user specific.This data which will be available to all users on the computer. Any global data should be put in here.

AppData folder contains configuration settings, downloaded information/files for a particular user. So, for example any user specific preferences and profile configurations can be stored in the AppData folder. The AppData folder is further divided into three subfolders
Roaming - This folder contains data that can move with your user profile from a computer to another.
Local - This folder contains data that will not move with your user profile.
LocalLow - You can put in lowlevel access information such as information related to web browser running in a protected mode in this folder.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!