Page 1 of 1

Create or check for account

Posted: Thu Aug 19, 2010 11:00 am
by sdolan
My installer installs a windows service that must run from a local user account. Ideally I would like the installer to check if this account exists and if it does not, it should create it.

Is this possible with InstallAware. At the very least, can I check if a specific local account exists on the PC?

Re: Create or check for account

Posted: Thu Aug 19, 2010 6:05 pm
by mills
Are you referring to LSA?

Re: Create or check for account

Posted: Fri Aug 20, 2010 3:34 am
by sdolan
I'm sorry, I don't know what LSA is. I'm using InstallAware Studio Admin to build my installer, which is targeted at windows XP, Vista and 7, 32-bit editions.

I need a way to check if a specific local user account is present on the PC during the install and to create it if its not there. I've used windows installers before that do this, I just haven't been able to figure out how to do it using InstallAware.

Thanks for your help,
Stephen

Re: Create or check for account

Posted: Fri Aug 20, 2010 8:36 pm
by mills
This functionality isn't provided directly by InstallAware.

I tried looking into using the command net use, however, it seems to be generating the same return value regardless of what's passed to it.
http://articles.techrepublic.com.com/51 ... 31577.html

You'll probably be best off developing a DLL to call with Call DLL Function to provide yourself with this functionality.