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

Check if user account is existing


3 replies to this topic

Barbara

Barbara
  • Members
  • 89 posts

Posted 05 November 2001 - 18:56

I like to install a NT service running on a special user account. I ask for the user account / password in a special dialog. Whats the best way to check if the user account is existing on the local machine  ?

Thank You
Barbara


Irina

Irina
  • Members
  • 227 posts

Posted 05 November 2001 - 21:37

Hi,
You can write C code to call NetUserGetInfo function to detect the user account on the local computer. See information about this function in MSDN.
Good luck!

Barbara

Barbara
  • Members
  • 89 posts

Posted 06 November 2001 - 16:54

Thank You for Your response. I hoped that I could avoid writing C-code for the setup, but it seems to be the only possibilty.

Barbara


matthiasm

matthiasm
  • Members
  • 1 posts

Posted 14 November 2001 - 17:04

Hi,

I've written a utility for this issue. It is a commandline-app you can call:

authenticate.exe DOMAIN user pass

It will return OK or an Error-message. I currently call it using a VB-Script custom action. Mail me and I will send it to you!

Best regards,