Cannot create a folder in Limited User Account


G

Guest

Hello

This is what I want to do:

1. Install an application((say in C:\Program Files\MyApp) in the
Administrator mode
2. This application should work in the 'Limited User Account' mode as well.

Currently the Application does not work in 'Limited User Account' mode
because it creates a Folder (and some files in this folder) in its target
folder (ie C:\Program Files\MyApp). This folder creation fails in the Limited
User Account mode.

How can I create the folder from my application in Limited User Account mode.

Is this possible by changing Security Privileges using Windows API?

(I have tried a hand this way also using functions like 'OpenProcess Token'
, 'LookupPrivilegeValue', 'AdjustTokenPrivileges','LookupAccountName',
'InitializeSecurityDescriptor, 'SetSecurityDescriptorOwner',
'SetFileSecurity'.
But I did not succeed).

Team
 
Ad

Advertisements

A

Allan

Team said:
Hello

This is what I want to do:

1. Install an application((say in C:\Program Files\MyApp) in the
Administrator mode
2. This application should work in the 'Limited User Account' mode as
well.

Currently the Application does not work in 'Limited User Account' mode
because it creates a Folder (and some files in this folder) in its target
folder (ie C:\Program Files\MyApp). This folder creation fails in the
Limited
User Account mode.

How can I create the folder from my application in Limited User Account
mode.

Is this possible by changing Security Privileges using Windows API?

(I have tried a hand this way also using functions like 'OpenProcess
Token'
, 'LookupPrivilegeValue', 'AdjustTokenPrivileges','LookupAccountName',
'InitializeSecurityDescriptor, 'SetSecurityDescriptorOwner',
'SetFileSecurity'.
But I did not succeed).

Team
If the application does not work with restricted privileges it needs to be
rewritten. Contact the developer and uninstall for now. The MS website
contains a list of programs that don't work in limited user accounts
including RealPlayer.
 
G

Guest

Thank you Allan for the reply.

Actually I was referring about a program written by myself.
If you know about any web page links or any other source, that describes the
things one need to be taken care of while writing a program for restricted
privilege, would you please let me know?
 
Ad

Advertisements

A

Allan

Team said:
Thank you Allan for the reply.

Actually I was referring about a program written by myself.
If you know about any web page links or any other source, that describes
the
things one need to be taken care of while writing a program for restricted
privilege, would you please let me know?
I have never written Windows software but I would stay clear of writing to
folders such as "\Windows","\Program Files\...", etc.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top