Old 13th January 2005, 15:56   #1
MoRon
Junior Member
 
Join Date: Jan 2005
Posts: 2
System clock and current user info

Hello,
I'm a newbie to the forum and NSIS program. I'm trying to use NSIS for work issues. I was wondering if it is possible to check or verify that the current user isn't logged in as an administrator before an install is ran. If the person is logged in as admin. to abort installation. Also, is it possible to hide the clock in the taskbar using NSIS? I tried creating a Reg key "HideClock", but I can't get it to work. I search all over the internet and checked through the examples, and I'm not having any luck with either! Any suggestions? Thanks in advance!
MoRon is offline   Reply With Quote
Old 13th January 2005, 19:11   #2
kichik
M.I.A.
[NSIS Dev, Mod]
 
kichik's Avatar
 
Join Date: Oct 2001
Location: Israel
Posts: 11,343
Use the UserInfo plug-in to get the user's account type. There's an example in Contrib\UserInfo\UserInfo.nsi. As for the registry key, did you make sure it's created?

NSIS FAQ | NSIS Home Page | Donate $
"I hear and I forget. I see and I remember. I do and I understand." -- Confucius
kichik is offline   Reply With Quote
Old 13th January 2005, 19:59   #3
MoRon
Junior Member
 
Join Date: Jan 2005
Posts: 2
Thanks for the info kichik! I never looked in the Contrib folder. This will work out great! And yes the registry key is created and the value doesn't change after restart, but the clock remains in the taskbar. The reg. that I used was HKEY_CURRENT_USER\Software\Microsoft\Windows\Currentversion\Policies\Explorer "HideClock" dword 0x00000001.
MoRon is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

Forum Jump