Tamás Szelei
Tamás Szelei

Reputation: 23951

Creating a restricted user from Inno Setup

I would like to create restricted user account in my setup script for a kiosk application. Is this possible?

Upvotes: 8

Views: 1180

Answers (2)

Gringo Suave
Gringo Suave

Reputation: 31900

Using the code above is probably best, but I like the command-line since it can go easily under the [run] section without needing to write a method and hook it all up, etc. It does have limitations though.

[Run]
Filename: {sys}\net.exe Parameters: user UserName Pwd /add

Upvotes: 1

Deanna
Deanna

Reputation: 24283

You can call the NetUserAdd() direct from (Unicode) Inno Setup or write a small wrapper DLL/program that does it for you.

Upvotes: 4

Related Questions