Go Back   Winamp Forums > Developer Center > NSIS Discussion

Reply
Thread Tools Search this Thread Display Modes
Old 18th June 2007, 18:58   #1
darora2
Junior Member
 
Join Date: Mar 2007
Posts: 12
Password Never Expires

While installing my application using NSIS installer, I am creating a local admin user for the application for whom I want to set the password to never expire.
Is there any API that I can use to set the 'Password Never Expires' option in NSIS.
Any help is greatly appreciated.

Thanks
darora2
darora2 is offline   Reply With Quote
Old 18th June 2007, 19:17   #2
CancerFace
Senior Member
 
Join Date: Apr 2006
Posts: 289
Send a message via ICQ to CancerFace
I translated a bunch of API calls to system plugin commands which can be found on the wiki.

If you have already created the user, you can call NetUserSetInfo from advapi32, using a USER_INFO_1008 structure which contains the UF_DONT_EXPIRE_PASSWD attribute.
Hope this helps
CF
CancerFace is offline   Reply With Quote
Reply
Go Back   Winamp 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