Creating a restricted user from Inno Setup
Asked Answered
P

2

8

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

Peon answered 8/3, 2012 at 9:29 Comment(0)
M
4

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

Mob answered 8/3, 2012 at 9:36 Comment(0)
L
1

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
Labial answered 10/11, 2012 at 22:7 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.