PDA

View Full Version : User Account Management?



NewsArchive
11-06-2009, 03:06 AM
Hello all and Friedrich in particular.... ;-)

I upgraded recently because I have a complex install to make. I
thought SB 7 was having that feature already, but I see it's in the
"future versions" chapter.. I have a lot to learn/relearn about SB, so
it's not like I needed that for tomorrow, but I am a little nervous as
a big part of the script depend on my ability to create a new user
account, and have a couple of command line utilities run on that
account, immediatly after installing some binaries, during the
install.

So, in waiting for that feature, what are my options? Can I write some
script, and/or .net utility, to create a user?

Also, if I run a command line utility from inside SB script, how do I
know when the job is done?

Where is that famous paper from Jane, so that I start directly in the
right track?

Thanks, and take care,

Bernard.

PS- Was impressed by the very fast answer from "Sales" on a Sunday...
You guys need to take a break from times to time.... ;-)

NewsArchive
11-06-2009, 03:07 AM
>Also, if I run a command line utility from inside SB script, how do I
>know when the job is done?

Already have an answer to that: check box "wait for program" in the
Run programs dialog! Cool... Now if I know how to impersonate a user I
just create to run that.... Looks like there a few examples on how to
create a windows user with a few lines of C#, so that should not be a
biggy...

Bernard

NewsArchive
11-06-2009, 03:07 AM
The "famous paper" is the "Learning Setupbuilder" CHM file that installs
with the example projects (download from the Lindersoft website).

I haven't created user accounts within SB. But you could use a batch file
or Run Command Line and mark the "wait for program" check box.

This command will create a local user account named Betty with a password of
swordfish
NET USER Betty swordfish /ADD

Jane Fleming

NewsArchive
11-06-2009, 03:08 AM
>This command will create a local user account named Betty with a password of
>swordfish
> NET USER Betty swordfish /ADD

Thanks Jane, I had no idea you could do that with the command line...
How do I set Betty as the user creating a new directory and running a
command?

Well, NET HELP USER | MORE is telling me everything I did not dare to
ask.... <g>

Thanks again!

Bernard

NewsArchive
11-06-2009, 03:08 AM
Bernard,

There's the RUNAS command, but I'm not aware of a way to pass the password
to it automatically (MS security feature...)

Jane

NewsArchive
11-06-2009, 03:09 AM
>The "famous paper" is the "Learning Setupbuilder" CHM file that installs
>with the example projects (download from the Lindersoft website).

I downloaded the examples, thanks, will check out your help
file/book... ;-)

Bernard

NewsArchive
11-07-2009, 02:36 AM
>There's the RUNAS command, but I'm not aware of a way to pass the password
>to it automatically (MS security feature...)

Thanks so much! I am going to experiment with some batches today, i'll
let you know how it goes.

Bernard

NewsArchive
11-07-2009, 02:37 AM
Bernard,

If I am not mistaken you can run a script (vbs) from inside SetupBuilder.
If thatis the case, you can create an account without any problems.
If you go to www.activexperts.com/admin/vbscript/ you can find scripts which
will probably be close to what you need to do so you can modify them to meet
your needs.

Benjamin Krajmalnik

NewsArchive
11-08-2009, 03:30 AM
>If I am not mistaken you can run a script (vbs) from inside SetupBuilder.
>If thatis the case, you can create an account without any problems.
>If you go to www.activexperts.com/admin/vbscript/ you can find scripts which
>will probably be close to what you need to do so you can modify them to meet
>your needs.

Thanks for the help, Benjamin, I'll check on this.

Bernard