Jump to content


This is a ready-only archive of the InstallSite Forum. You cannot post any new content here. / Dies ist ein Archiv des InstallSite Forums. Hier können keine neuen Beiträge veröffentlicht werden.
Photo

Log in user


2 replies to this topic

lakshmanjh

lakshmanjh
  • Full Members
  • 8 posts

Posted 28 November 2008 - 13:28

Hi,

Is there any possibility to check the previlege of login user in Basic MSI installer...

--laxman

N Thomas

N Thomas
  • Full Members
  • 9 posts

Posted 01 December 2008 - 11:18

Hi,

I doubt if this check can be done in a basic MSI.But you can use a Custom Action (might be a VBScript) to read the variable USERNAME using ExpandEnvironmentStrings("%USERNAME%")and check if the user is an Administrator or Power User or so on..

Zweitze

Zweitze
  • Full Members
  • 522 posts

Posted 02 December 2008 - 14:27

To test for privileges like SeBackupPrivilege, SeShutdownPrivilege, SeSecurityPrivilege etc. you'll need to write a DLL doing all the work, and call that DLL.

Edited by Zweitze, 02 December 2008 - 14:28.