如何在Kiosk模式下运行C#程序?

Lev*_*vin -1 c# windows wpf tablet kiosk-mode

我有一个ac#和WPF程序,我想安装在Windows平板电脑上,我希望我的程序是平板电脑上运行的唯一程序,它应该在用户打开平板电脑时自动开始运行.有解决方案吗

Voi*_*ker 9

永远不要使用Windows原始信息亭模式 - 它没用.使用shell替换.

要配置Windows自助服务终端模式,您需要执行后续步骤:

  • 为kiosk模式创建用户
  • 为此用户设置下一个注册表项作为应用程序的路径:

Windows XP/7:

Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\Winlogon]
"Shell"="C:\\full\\path\\to\\your\\application.exe>"
Run Code Online (Sandbox Code Playgroud)

Windows 8及更高版本:

Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\System]
"Shell"="C:\\full\\path\\to\\your\\application.exe>"
Run Code Online (Sandbox Code Playgroud)

自助服务终端用户的自动登录:

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\Winlogon] 
"AutoAdminLogon"="1"
"ForceAutoLogon"="1"
"DefaultUserName"="kiosk"
"DefaultDomainName"="<place here pc hostname>"
"DefaultPassword"=""
Run Code Online (Sandbox Code Playgroud)

[选项]如果您需要禁用Ctrl + Alt + Del,则使用此注册表项值("")或者您可以放置​​自己的应用程序:

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\taskmgr.exe]
"Debugger"="\"\""
Run Code Online (Sandbox Code Playgroud)

使用此应用程序作为shell创建kiosk用户,并使用密码创建/激活admin.使用自动加载作为管理员按下移动窗口加载时,自动登录或登出时 - 窗口将不会自动登录并显示用户列表.或者,您不能设置自动登录,Windows将显示2个用户:admin和kiosk用户使用此软件.