Create or check for account

Got a problem you cannot solve? Try here.
Post Reply
sdolan
Posts: 8
Joined: Tue May 04, 2010 8:14 am
Location: Dublin, Ireland

Create or check for account

Post 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?
mills
Posts: 814
Joined: Tue Jul 06, 2010 7:10 pm
Location: Honolulu, HI

Re: Create or check for account

Post by mills »

Are you referring to LSA?
Andy Mills
InstallAware
Other Help:
White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Product Guides - http://www.installaware.com/publication ... guides.htm
InstallAware Help - Press F1 in the InstallAware IDE.
sdolan
Posts: 8
Joined: Tue May 04, 2010 8:14 am
Location: Dublin, Ireland

Re: Create or check for account

Post 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
mills
Posts: 814
Joined: Tue Jul 06, 2010 7:10 pm
Location: Honolulu, HI

Re: Create or check for account

Post 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.
Andy Mills
InstallAware
Other Help:
White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Product Guides - http://www.installaware.com/publication ... guides.htm
InstallAware Help - Press F1 in the InstallAware IDE.
Post Reply