User Account Run Setup Catch 22

Posted: 01-09-2008, 06:27 PM
Greetings,

Does anyone know a workaround for the following catch 22:

* From a Standard User Account under Vista, a user runs a setup
program to install an application.

* The setup program requires Administrator Privileges in order to run
and displays the admin password dialog. The admin types in the
password and the setup program proceeds with installation.

* During the installation, the setup program queries for the
CSIDL_LOCAL_APPDATA folder location in order to create folders and
install per-user files there. Since the setup program is running with
administrator privileges, the folder location returned is the
administrator's CSIDL_LOCAL_APPDATA folder, not the user's.

TIA

User Account Run Setup Catch 22


Responses to "User Account Run Setup Catch 22"

Victek
Guest
Posts: n/a
 
Re: User Account Run Setup Catch 22
Posted: 01-09-2008, 09:24 PM
> Does anyone know a workaround for the following catch 22:
>
> * From a Standard User Account under Vista, a user runs a setup
> program to install an application.
>
> * The setup program requires Administrator Privileges in order to run
> and displays the admin password dialog. The admin types in the
> password and the setup program proceeds with installation.
>
> * During the installation, the setup program queries for the
> CSIDL_LOCAL_APPDATA folder location in order to create folders and
> install per-user files there. Since the setup program is running with
> administrator privileges, the folder location returned is the
> administrator's CSIDL_LOCAL_APPDATA folder, not the user's.
>
> TIA
One workaround would be to log in with an Admin account and temporarily make
the Standard User a local admin. Log in with that account, install the
software, and when you're done reduce to user's privileges. I used to do
this on XP because it was common for software installs to fail when using
the "Run As" option with Admin credentials.

Max Plank
Guest
Posts: n/a
 
Re: User Account Run Setup Catch 22
Posted: 01-10-2008, 05:40 PM
On Jan 9, 4:24 pm, "Victek" <Vic...@invalid.invalid> wrote:
> > Does anyone know a workaround for the following catch 22:
>
> > * From a Standard User Account under Vista, a user runs a setup
> > program to install an application.
>
> > * The setup program requires Administrator Privileges in order to run
> > and displays the admin password dialog. The admin types in the
> > password and the setup program proceeds with installation.
>
> > * During the installation, the setup program queries for the
> > CSIDL_LOCAL_APPDATA folder location in order to create folders and
> > install per-user files there. Since the setup program is running with
> > administrator privileges, the folder location returned is the
> > administrator's CSIDL_LOCAL_APPDATA folder, not the user's.
>
> > TIA
>
> One workaround would be to log in with an Admin account and temporarily make
> the Standard User a local admin. Log in with that account, install the
> software, and when you're done reduce to user's privileges. I used to do
> this on XP because it was common for software installs to fail when using
> the "Run As" option with Admin credentials.
Thanks - I guess I wasn't really looking for a workaround - poor
choice of words on my account.

Further research has edged me closer to a solution, but not there
yet. Here's what I've got so far:

When testing from a Standard User account, I find that folders and
files created under Vista by an installer running with administrator
privileges cannot be accessed (not even copied) by a program running
"asInvoker" from a Standard User account.

From what I (poorly) understand at this moment, the key is for the
installer to grant ACL permissions to any folders/files created during
the setup process so they can be accessed later by the program running
asInvoker under a standard user account. I'm hoping it's merely a
question of the installer calling SHGetFolderPath() with the proper
htoken:

http://msdn2.microsoft.com/en-us/lib...81(VS.85).aspx
htoken: An access token used to represent a particular user. This
parameter is usually set to NULL, in which case the function tries to
access the current user's instance of the folder. However, you may
need to assign a value to hToken for those folders that can have
multiple users but are treated as belonging to a single user. The most
commonly used folder of this type is Documents.

Some references to the problem and potential solution:

http://www.msdner.com/dev-archive/89/24-113-898420.shtm
http://forums.microsoft.com/MSDN/Sho...76841&SiteID=1
http://msdn2.microsoft.com/en-us/lib...98(VS.85).aspx
http://technet2.microsoft.com/window....mspx?mfr=true

###
dialntone
Guest
Posts: n/a
 
Re: User Account Run Setup Catch 22
Posted: 03-12-2008, 06:13 PM

Ubuntu 7.1
Transgamming transgamin
cedeg

command and conquer the first decad

error proble
" administrator privileges in order to install this product

go in the cedega program and go in global settings and pick eithe
windowsxp or windows 200

Because windows 98 is set to defaul

and thats' about it :

My Question

how do you install Ubuntu to the ram

--
dialntone
 
LinkBack Thread Tools Display Modes
 


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


Similar Threads
Thread Thread Starter Forum Replies Last Post
Standard User Setup Catch 22 Max Plank Windows Vista Administration 8 01-13-2008 08:54 PM
User Account Setup Tom Crooze Windows Vista Security 2 07-30-2007 04:05 PM
User Account Setup 101 Emilou Windows Vista Administration 0 05-06-2007 05:14 AM
How Do i setup a domain user account Mike K Windows Vista Administration 1 02-13-2007 11:40 PM
User Account setup steve Windows XP New Users 0 07-12-2003 11:41 PM