Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 928
Tamás Szelei Avatar asked Mar 08 '12 09:03

Tamás Szelei


2 Answers

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

like image 128
Deanna Avatar answered Oct 28 '22 20:10

Deanna


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
like image 1
Gringo Suave Avatar answered Oct 28 '22 20:10

Gringo Suave