PDA

View Full Version : To Find if Standard user after Elevation



sammathew
11-21-2008, 12:17 AM
HI All,

I am Using InstallScript(InstallShield 2008).

My product Installation Setup.exe requires administrative privileges to run.If the Standard user is going to intsall my product then the user as to give UserName and Password of Admin inorder to install since the manifest file is embeded with the Setup.exe.

Thats fine till now.

But after the Standard user as given the UserName and Password of Admin now he gets elevated.Since he gets elevated i cant find is the User is a Standard user or not.

Is there a way to find the user is a Standard user if the Standard user installs the Setup.exe even if gets elevated.

Because i need to dispalay the SdCustomer Dialog accordingly.

My Advance Thanks.

RobertDickau
11-21-2008, 03:05 PM
I haven't tried it, but does Is(USER_INADMINGROUP, "") do something like what you want?

bryanwolf
11-21-2008, 03:40 PM
The user who launched your application is the user who provided OTS credentials. So, in effect, any knowledge that the user who originally attempted to launch your application without permissions is lost.

See this article for more information:
http://windowsitpro.com/article/articleid/95231/psexec-user-account-control-and-security-boundaries.html