User permission problem with MFC
-
Dear All, I have developed an application in MFC and it is working fine and creating directories and file in the program files directory when the program is run as administrator. But when the program is run as limited user account, the program cannot write any files in the program files directory. The same application developed in JAVA seems to be working fine in both Admin user and limited user. When I googled, all articles recommends to create the files under Application Data for all users. But, for me changing this will be a huge task. Is there any other alternative to grant access to the limitied account user from my application. Many thanks in advance. Bhanu
-
Dear All, I have developed an application in MFC and it is working fine and creating directories and file in the program files directory when the program is run as administrator. But when the program is run as limited user account, the program cannot write any files in the program files directory. The same application developed in JAVA seems to be working fine in both Admin user and limited user. When I googled, all articles recommends to create the files under Application Data for all users. But, for me changing this will be a huge task. Is there any other alternative to grant access to the limitied account user from my application. Many thanks in advance. Bhanu
bhanu_8509 wrote:
The same application developed in JAVA seems to be working fine in both Admin user and limited user.
So, why don't you use that one (just kidding...)? :-D This may be useful [^]. :)
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
[My articles] -
Dear All, I have developed an application in MFC and it is working fine and creating directories and file in the program files directory when the program is run as administrator. But when the program is run as limited user account, the program cannot write any files in the program files directory. The same application developed in JAVA seems to be working fine in both Admin user and limited user. When I googled, all articles recommends to create the files under Application Data for all users. But, for me changing this will be a huge task. Is there any other alternative to grant access to the limitied account user from my application. Many thanks in advance. Bhanu
-
check that the work of the Java-App isnt virtualized. It isnt the right way to create some directories in the prog dir, if it isnt a installation. Better use the user-dirs
Press F1 for help or google it. Greetings from Germany
If I use the All Users/Application Data/ directory then the files created by Administrator cannot be overwrite by the Limited account user. Please help me.
-
If I use the All Users/Application Data/ directory then the files created by Administrator cannot be overwrite by the Limited account user. Please help me.
-
Dear All, I have developed an application in MFC and it is working fine and creating directories and file in the program files directory when the program is run as administrator. But when the program is run as limited user account, the program cannot write any files in the program files directory. The same application developed in JAVA seems to be working fine in both Admin user and limited user. When I googled, all articles recommends to create the files under Application Data for all users. But, for me changing this will be a huge task. Is there any other alternative to grant access to the limitied account user from my application. Many thanks in advance. Bhanu
A dirty hack could be to create an installer for your application, that grants access to everyone to the application folder. One have to be an administrator to install the application, but then any user can use it.