I would like to create restricted user account in my setup script for a kiosk application. Is this possible?
您可以直接从(Unicode)Inno Setup调用NetUserAdd()
或编写一个小型包装DLL /程序来为您执行此操作。
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
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.